Manual:$wgTranslationAliasesDirs
Miscellaneous settings: $wgTranslationAliasesDirs | |
---|---|
Message directories containing JSON files for localisation of special page aliases. |
|
Introduced in version: | 1.42.0 (Gerrit change 977085; git #8ddc4ee2) |
Removed in version: | Still in use |
Allowed values: | (array) |
Default value: | [] |
Other settings: Alphabetical | By function |
Details
editMessage 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" ]
}