Babel has a lot of user-facing configuration in LocalSettings.php, which contributed to having a fairly large ext-Babel.php file in WMF configuration. With MediaWiki-extensions-CommunityConfiguration, we can now move all this configuration to on-wiki relatively easily, giving administrators the ability to adjust them on their own as needed.
Within this task, variables from LocalSettings.php are migrated to on-wiki. Below is analysis of existing config variables:
LocalSettings.php:
Name | Desc | Needs to be in CC? | Default |
$wgBabelLanguageCodesCdb | (string) the path of the language code database file, the default should suffice. | ❌ | ? |
$wgBabelLanguageNamesCdb | (string) the path of the language name database file, the default should suffice. | ❌ | ? |
$wgBabelCategoryNames | (array of string or boolean, indexed by the strings "1", "2", … "5", "N") where each entry is the name of a category for the skill level indicated by its index, possible variable elements are: %code% (language code), %wikiname% (the name of the language in the wiki's content language), and %nativename% (the name of the language in its language). To disable adding a category for a particular level, set the corresponding value to false. | ✅ | '0' => 'User %code%-0', '1' => 'User %code%-1', '2' => 'User %code%-2', '3' => 'User %code%-3', '4' => 'User %code%-4', '5' => 'User %code%-5', 'N' => 'User %code%-N' |
$wgBabelMainCategory | (string) Name of the main (non-level) category for each language, to which all users of that language are added. Set to false to disable; defaults to format "Category:Fr". It accepts the same format as $wgBabelCategoryNames above. Example: $wgBabelMainCategory = 'User %code%'; | ✅ | ? |
$wgBabelUseUserLanguage | (boolean) Whether to use the user interface language for the header and footer message. If false (default), it will be in the page content language. This is because using the user interface language may fragment the parser cache. | ✅ | false |
$wgBabelCategorizeNamespaces | Array of namespaces to only add automatic categorization to. For example, if $wgBabelCategorizeNamespaces = [ NS_USER ];, then Babel will only add categories to pages in the user namespace. The default is null, which means categorize all namespaces. | ✅ | null |
$wgBabelAllowOverride | Whether to allow Babel categories to be overridden on wiki using MediaWiki:Babel-category-override | ❌ | ? |
$wgBabelAutoCreate | Whether to auto-create categories. | ✅ | ? |