mdlLanguages¶
Language helper module that publishes supported culture constants and builds a localized supported-language list.
Purpose¶
- Define the supported language codes used by this library and expose them as a localized
IEnumerable(Of clsLanguage)collection.
Context¶
- Namespace:
SAIF.Resources - Assembly/package:
SAIF.ResourceFiles
Public members¶
| Member | Signature | Purpose |
|---|---|---|
CULTURE_ENGLISH |
Public Const CULTURE_ENGLISH As String = "en" |
Defines the neutral English culture code. |
CULTURE_SPANISH |
Public Const CULTURE_SPANISH As String = "es" |
Defines the neutral Spanish culture code. |
LANGUAGE_CODE_SPANISH |
Public Const LANGUAGE_CODE_SPANISH As String = "02" |
Defines the Spanish language code used by consumers of this module. |
CULTURE_ENGLISH_US |
Public Const CULTURE_ENGLISH_US As String = "en-US" |
Defines the specific English (United States) culture code. |
CULTURE_SPANISH_MX |
Public Const CULTURE_SPANISH_MX As String = "es-MX" |
Defines the specific Spanish (Mexico) culture code. |
SupportedCultures |
Public Property SupportedCultures As String() |
Gets or sets the ordered culture codes returned by SupportedLanguages. |
SupportedLanguages |
Public ReadOnly Property SupportedLanguages As IEnumerable(Of clsLanguage) |
Builds a localized list of supported languages from SupportedCultures. |
Behavioral notes¶
SupportedLanguagesiteratesSupportedCulturesand mapsestoCommon_UI.Spanish; all other supported cultures map toCommon_UI.English.SupportedCulturesdefaults to the ordered set{CULTURE_ENGLISH, CULTURE_SPANISH}.
Constraints and usage notes¶
- The supported language list is limited to the cultures defined by the constants and
SupportedCulturesproperty.
Sources¶
Resources\SAIF.Resources\mdlLanguages.vbResources\SAIF.Resources\Common\Common_UI.Designer.vbResources\SAIF.Resources\SAIF.BOF.ResourceFiles.vbproj