Skip to the content
Documentation

[TranslationSettings]

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

The group [TranslationSettings] of settings/i18n.ini.

File

settings/i18n.ini; override it in settings/override/i18n.ini.append.php, in a siteaccess or in an extension.

Settings

Setting Default Description
FallbackRules[] (empty array) FallbackLanguages defines the available translation fallbacks of the QT ( .ts ) translation files. If the this no translation available for e.g. ger-CH the ger-DE translation file will be requested for the translation. It is looked up for the kernel and for every extension on its own: esl-MX has a kernel translation of its own, and takes esl-ES only for the extensions that have no esl-MX one. Every country of a language with a translation falls back to it, so its administration is in that language (tested in expUISwitchLanguageProviderTest). A fallback can have a fallback of its own: FallbackLanguages[esl-AR]=esl-MX with FallbackLanguages[esl-MX]=esl-ES makes the chain esl-AR, esl-MX, esl-ES, tried in that order for each translation root. eng-GB and untranslated mean the source texts and end a chain. ./console exp:i18n fallbacks shows every chain, and ./console exp:i18n check finds cycles and missing targets (doc/eng-us/languages.md). FallbackLanguages[] always decides first. Then the classes of FallbackRules[] (implementing expI18nFallbackRuleInterface, for extensions), then, when enabled, the automatic fallback.
AutomaticLanguageFallback enabled AutomaticLanguageFallback: a locale with no translation of its own and no FallbackLanguages[] entry falls back to the most complete translation of the same language (fre-NC to fre-FR), so a new country locale needs no line here. enabled (default) or disabled.
AutomaticFallbackExclude[] eng Languages (eng) or locales (chi-MO) that never fall back automatically. English is the language of the source texts.
FallbackMaxDepth 4 The most steps of a chain (1 to 16); a longer one is cut and reported.
FallbackMode first first (default): each translation root loads the first file of the chain it has. merge: it loads every file of the chain, the most general first, so the messages a translation lacks (esl-MX) are taken from the next one (esl-ES).
FallbackLanguages[<key>] ger-CH=ger-DE; ger-AT=ger-DE; eng-US=eng-GB; eng-CA=eng-GB; fre-CA=fre-FR; fre-BE=fre-FR; hin-IN=untranslated; hun-HU=untranslated; kor-KR=untranslated; por-MZ=por-PT; slk-SK=untranslated; tur-TR=untranslated; ukr-UA=untranslated; fre-CD=fre-FR; fre-CH=fre-FR; fre-CI=fre-FR; fre-CM=fre-FR; fre-MA=fre-FR; fre-SN=fre-FR; esl-AR=esl-ES; esl-BO=esl-ES; esl-CL=esl-ES; esl-CO=esl-ES; esl-CU=esl-ES; ...  

See also

Generated example: i18n.ini [TranslationSettings]

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/i18n.ini.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.