This static class contains localization methods and the current language as defined by a string (e.g., "es" for generic Spanish, "fr-CA" for French - Canadian).
More...
|
static string | language [get, set] |
| Gets or sets the current language.
|
|
static bool | isDefaultLanguage [get] |
| Indicates whether localization is set to use default text instead of localized text.
|
|
static bool | useDefaultIfUndefined [get, set] |
| Gets or sets a value indicating whether to use the default language's field value if a field is undefined for the current language.
|
|
This static class contains localization methods and the current language as defined by a string (e.g., "es" for generic Spanish, "fr-CA" for French - Canadian).
◆ GetCurrentLanguageID()
static int PixelCrushers.DialogueSystem.Localization.GetCurrentLanguageID |
( |
TextTable |
textTable | ) |
|
|
inlinestatic |
◆ GetLanguage()
static string PixelCrushers.DialogueSystem.Localization.GetLanguage |
( |
SystemLanguage |
systemLanguage | ) |
|
|
inlinestatic |
Converts a Unity SystemLanguage enum value to a language string.
- Returns
- The language string representation of the specified systemLanguage.
- Parameters
-
systemLanguage | A Unity SystemLanguage enum value. |
◆ isDefaultLanguage
bool PixelCrushers.DialogueSystem.Localization.isDefaultLanguage |
|
staticget |
Indicates whether localization is set to use default text instead of localized text.
true
if default text should be used. If false
, the language specified by the Language property should be used.
◆ language
string PixelCrushers.DialogueSystem.Localization.language |
|
staticgetset |
Gets or sets the current language.
The language.
◆ useDefaultIfUndefined
bool PixelCrushers.DialogueSystem.Localization.useDefaultIfUndefined |
|
staticgetset |
Gets or sets a value indicating whether to use the default language's field value if a field is undefined for the current language.
true
if use default if undefined; otherwise, false
.
The documentation for this class was generated from the following file:
- C:/Dev/Dialogue System/Dev/Release2/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/Localization.cs