Manual:$wgTranslationAliasesDirs
From Linux Web Expert
<translate> Miscellaneous settings</translate>: $wgTranslationAliasesDirs | |
---|---|
Message directories containing JSON files for localisation of special page aliases. |
|
<translate> Introduced in version:</translate> | 1.42.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (array) |
<translate> Default value:</translate> | [] |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
Message directories containing JSON files for localisation of special page aliases.
Associative array mapping extension name to the directory where configurations can be found. The directory is expected to contain JSON files corresponding to each language code.
Variables defined in extensions will override conflicting variables defined in the core. We recommend using this configuration to set variables that require localisation: special page aliases, and in the future namespace aliases and magic words.
Simple example: extension.json
"TranslationAliasesDirs": {
"TranslationNotificationsAlias": "i18n/aliases/"
}
Complex example: extension.json
"TranslationAliasesDirs": {
"TranslationNotificationsAlias": [ "i18n/special-page-aliases", "i18n/magic-words", "i18n/namespaces" ]
}