Data
Localization
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
Properties
Guid GUID - unique identifier for the localization.
LocalizationData[] Localizations - array of used localizations.
Language[] Languages - array of used languages.
Methods
LocalizationData GetLocalization(string localizationCode)
Returns the localization data with the same key provided as localizationCode. If nothing is found, it returns null.
Sets the localization, passed as languageData, for the key localizationCode.
Replaces the current localization data in the file with the ones provided in localizationDates.
Replaces the current languages in the file with those provided in languages.
Language
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
Base: LanguageShort.
Properties
string LanguageName - the display name of the language.
LanguageShort
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
IMPORTANT! Comparison operators have been overridden. To return true, it is sufficient that LanguageCode == LanguageCode.
Properties
string LanguageCode - the language identifier.
LocalizationData
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
Properties
string LocalizationCode - the localization identifier.
List<LanguageData> Data - the content of the localization.
Operators
Addition
LocalizationData + LocalizationData
LocalizationData + string
Methods
LanguageData GetTargetLocalization(LanguageShort language)
Returns the translation in the language specified by the language parameter. If the language is not detected, it will return the default translation.
Replaces all occurrences of old with new in all translations.
LanguageData
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
Properties
LanguageShort Language - the language used.
string Localization - translation.
Operators
Addition
LanguageData + LanguageData
LanguageData + string
LocalizationString
Visibility: public.
Assembly: "AD_LocalizationCore".
Namespace: "DGGLocalization.Data".
Properties
string Value - localization key.
Last updated