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.

void SetLocalization(string localizationCode, List<LanguageData> languageData)

Sets the localization, passed as languageData, for the key localizationCode.

void SetLocalization(List<LocalizationData> localizationDates)

Replaces the current localization data in the file with the ones provided in localizationDates.

void SetLocalization(Language[] languages)

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".

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.

LocalizationData Replace(string old, string new)

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.

Help Automatically adds the "OpenLocalization" button to the inspector. In other cases, this class should not be used.

Last updated