Help:Extension:Translate/Configuration

Here are most of the configuration variables documented in alphabetical order.

$wgTranslateAddMWExtensionGroups
Wether to add premade groups for all MediaWiki extensions. Check that $wgTranslateExtensionDirectory is correctly set.

$wgTranslateAuthorBlacklist
Two-dimensional array of rules that blacklists certain authors from appearing in the exports. This is useful for keeping bots and people doing maintenance work in translations not to appear besides real translators everywhere.

Rules are arrays, where first element is type: white or black. Whitelisting always overrules blacklisting. Second element should be a valid pattern that can be given a preg_match. It will be matched against string of format "group-id;language;author name", without quotes. As an example by default we have rule that ignores all authors whose name ends in a bot for all languages and all groups.

$wgTranslateBlacklist
Two-dimensional array of languages that cannot be translated. Input can be exact group name, first part before - or * for all. Second dimension should be language code mapped to reason for disabling. Reason is parsed as wikitext. Example:

$wgTranslateCssLocation
This variable contains a webpath to the root of Translate extension installation. It is used for example to link CSS file to the pages that need it. If it is set to false, CSS will be injected to the served pages.

The name of the variable is poor, and may thus be renamed in the future, or deprecated altogether if MediaWiki gets a fileloader support.

$wgTranslateDocumentationLanguageCode
Language code for documentation purposes. Any information put into these translations get special handling and are displayed to the translators. Make sure it doesn't conflict with any existing language code. Suggested value that we use at translatewiki.net is qqq.

$wgTranslateExtensionDirectory
Location of the code for all MediaWiki extensions.

$wgTranslateFuzzyBotName
Name of a bot account, that does maintenance jobs, like fuzzing messages. If the user does not exist, it is created.

$wgTranslateLanguageFallbacks
Two dimensional array of languages that are displayed in edit view to help translators. Example: