Link Search Menu Expand Document

Constructor: langPackLanguage

Back to constructors index

Identifies a localization pack

Attributes:

NameTypeRequiredDescription
officialBoolOptionalWhether the language pack is official
rtlBoolOptionalIs this a localization pack for an RTL language
betaBoolOptionalIs this a beta localization pack?
namestringYesLanguage name
native_namestringYesLanguage name in the language itself
lang_codestringYesLanguage code (pack identifier)
base_lang_codestringOptionalIdentifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs
plural_codestringYesA language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
strings_countintYesTotal number of non-deleted strings from the language pack
translated_countintYesTotal number of translated strings from the language pack
translations_urlstringYesLink to language translation interface; empty for custom local language packs

Type: LangPackLanguage

Example:

$langPackLanguage = ['_' => 'langPackLanguage', 'official' => Bool, 'rtl' => Bool, 'beta' => Bool, 'name' => 'string', 'native_name' => 'string', 'lang_code' => 'string', 'base_lang_code' => 'string', 'plural_code' => 'string', 'strings_count' => int, 'translated_count' => int, 'translations_url' => 'string'];