Page MenuHomePhabricator

Localize Scribunto namespaces for Magahi (mag)
Closed, ResolvedPublic

Description

The Magahi Wikipedia (mag.wikipedia.org) graduated from Incubator recently. Its core
namespace names were localized in T432382, but the Module and Module talk
namespaces were not covered, since those are defined by the Scribunto
extension rather than MediaWiki core and cannot be translated on translatewiki.net.

There is currently no mag entry in Scribunto.namespaces.php, and MessagesMag.php
sets no $fallback, so both namespaces still display under their canonical English
names on magwiki.

The community has requested the following, per the namespace table agreed on the
Incubator talk page:

EnglishMagahi
Moduleघटक
Module talkघटक वार्ता

with मॉड्यूल and मॉड्यूल वार्ता kept as aliases, since that transliteration is in
common use and readers are likely to type it.

Proposed change to Scribunto.namespaces.php in mediawiki/extensions/Scribunto:

$namespaceNames['mag'] = [
	828 => 'घटक',
	829 => 'घटक_वार्ता',
];

$namespaceAliases['mag'] = [
	'मॉड्यूल' => 828,
	'मॉड्यूल_वार्ता' => 829,
];

I am not familiar enough with this codebase to be sure that is the right or complete
approach, so please correct as needed.

Event Timeline

Change #1337588 had a related patch set uploaded (by Peterxy12; author: Peterxy12):

[mediawiki/extensions/Scribunto@master] Localize Scribunto namespaces for Magahi (mag)

https://gerrit.wikimedia.org/r/1337588

I'm currently working on this and expect to submit a patch soon.

Peterxy12 changed the task status from Open to In Progress.Thu, Sep 10, 10:05 AM
Peterxy12 triaged this task as Low priority.

Change #1337588 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Localize Scribunto namespaces for Magahi (mag)

https://gerrit.wikimedia.org/r/1337588