Page MenuHomePhabricator

Use Community Configuration in Babel extension
Open, Stalled, Needs TriagePublicFeature

Description

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:

NameDescNeeds to be in CC?Default
MediaWiki:babel-templateThe format of template names when one is being included.Template:User $1
MediaWiki:babel-portalThe 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-userUsername to be used for autocreation of Babel related categories✅(checking for real username)Babel AutoCreate
MediaWiki:babel-autocreate-text-levelsText 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-mainText 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:babelThe 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-urlThe 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-footerThe 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-urlThe 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:

NameDescNeeds 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
$wgBabelCategorizeNamespacesArray 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

Related Objects

StatusSubtypeAssignedTask
StalledFeatureNone
OpenNone
ResolvedJFernandez-WMF
ResolvedJFernandez-WMF
ResolvedJFernandez-WMF
ResolvedTrizek-WMF
ResolvedUrbanecm_WMF
ResolvedUrbanecm_WMF
ResolvedSpikeUrbanecm_WMF
ResolvedUrbanecm_WMF
OpenSgs
OpenSpikeSgs
DuplicateNone
OpenNone
ResolvedUrbanecm_WMF
ResolvedUrbanecm_WMF
ResolvedSgs
ResolvedSgs
OpenNone
OpenNone
ResolvedUrbanecm_WMF
ResolvedNov 8 2023Urbanecm_WMF
OpenTrizek-WMF
OpenKStoller-WMF
OpenNone
OpenNone
OpenNone
DuplicateNone
DeclinedNone
OpenNone
OpenNone
ResolvedSgs
DuplicateNone
ResolvedSgs
OpenNone
OpenCyndymediawiksim
OpenSgs
OpenNone
OpenJFernandez-WMF
OpenNone
OpenJFernandez-WMF
OpenSgs
OpenNone
OpenNone
OpenFeatureNone

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It looks like there is another setting wgBabelCategorizeNamespaces. I don't know how it works, not documented.

I've added documentation for the setting.

I've added documentation for the setting.

Thanks a lot!