Feature summary (what you would like to be able to do and where):
Right now, extension settings are scattered between interface messages and LocalSettings.php. It would be very cool to combine them on one setting page.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Renaming categories, links to help pages, moving away from translatewiki.net where it is not needed.
Benefits (why should this be implemented?):
The convenience of fine-tuning the extension for administrators.
Analysis
https://www.mediawiki.org/wiki/Extension:Babel#Configuration
MediaWiki namespace messages:
Name | Desc | Needs to be in CC? | Default |
MediaWiki:babel-template | The format of template names when one is being included. | ✅ | Template:User $1 |
MediaWiki:babel-portal | The format of the target of the link from the language code. | ✅(it should be possible to insert template calls and module) | empty |
MediaWiki:Babel-autocreate-user | Username to be used for autocreation of Babel related categories | ✅(checking for real username) | Babel AutoCreate |
MediaWiki:babel-autocreate-text-levels | Text to insert into auto-created categories for different language levels. You have to change this if you want them to be auto-categorized in the main category of the respective language ($wgBabelMainCategory). | ❓(A lot of translatable text, maybe you just need the ability to edit MediaWiki message from a special page without transferring it to json) | Users in this category indicate they have skill level $1 for language $2. |
MediaWiki:babel-autocreate-text-main | Text to insert into auto-created categories for non-level categories. You have to change this if you want them to be auto-categorized in a parent category for all languages. | ❓(A lot of translatable text, maybe you just need the ability to edit MediaWiki message from a special page without transferring it to json) | Users in this category indicate their knowledge of language $1." |
MediaWiki:babel | The header of the babel box | ❓Translatable text, either merge the message with the next message and allow wikitext, or keep that message and move the bottom one to the config. These messages just create a format link [[MediaWiki:babel-url|MediaWiki:babel]]. It is generally desirable to rename this message to MediaWiki:babel-header. | Babel user information |
MediaWiki:babel-url | The pagename where information on the babel extension can be found | ❓This is an explicit setting, but it goes in conjunction with the previous message, I don’t know what to do with it. | m:User language |
MediaWiki:Babel-footer | The footer of the babel box | ❓Translatable text, either merge the message with the next message and allow wikitext, or keep that message and move the bottom one to the config. These messages just create a format link [[MediaWiki:babel-footer-url|MediaWiki:Babel-footer]]. | empty |
MediaWiki:babel-footer-url | The page to link to in the footer of the babel box | ❓This is an explicit setting, but it goes in conjunction with the previous message, I don’t know what to do with it. | :Category:Babel - Users by language |
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. | ✅ | ? |
$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%'; | ✅ | ? |
$wgBabelDefaultLevel | (string) Default ability level to use when none is specified, should be an index from $wgBabelCategoryNames, that is one of the strings "1", "2", … "5", "N". Default is "N". | ✅ | N |
$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 |
$wgBabelCategoryOverride | Whether to allow Babel categories to be overridden on wiki using MediaWiki:Babel-category-override | ✅ | ? |
$wgBabelAutoCreate | Whether to auto-create categories. | ✅ | ? |