Page MenuHomePhabricator

Allow the use of Latin and Ijekavian magic words and special page aliases on the Serbian Wikipedia
Open, Needs TriagePublic

Description

Right now it's impossible to use the magic words and special page aliases in the Latin script on the Serbian Wikipedia.

For example, some of the localized magic words (according to MessagesSr_ec.php) for #REDIRECT are #ПРЕУСМЕРИ, #преусмери, #ПРЕУСМЈЕРИ, #преусмјери, and those work fine. However, their Latin counterparts found in MessagesSr_el.php (#PREUSMERI, #preusmeri, #PREUSMJERI, #preusmjeri) don't work at all. They should all be usable. The Latin magic words for image options are also treated as 'bogus-image-options'.

Also, many of these items are missing the Ijekavian variant that's a part of the Serbian standard. For example, 'img_left' should have лијево as an alias alongside the current ones, 'currentmonth' should have ТРЕНУТНИМЈЕСЕЦ, ТЕКУЋИМЈЕСЕЦ, ТРЕНУТНИ_МЈЕСЕЦ and ТЕКУЋИ_МЈЕСЕЦ, and so on.

Because there's this comment on line 160 of this file, I didn't want to provide all the additional aliases for Ijekavian right away, but instead wait for someone to let me know where all the values are stored if they're not taken from there.

Event Timeline

I guess the latin magic words would need to be added as aliases for the translation to Cyrillic script .

Here's a copy of MessagesSr_el.php (diff) and MessagesSr_ec.php (diff) with the Ijekavijan aliases.

I've also attached a separate file for $specialPageAliases in the Latin script that are missing from Sr_el.

Hopefully someone can work out a way for the sr_el variants and the Latin $specialPageAliases to work alongside the current Cyrillic ones.

IMO, as the ongoing Montenegrin Wikipedia test exists, I don't see how there's benefit to do so.

I don't see how there's benefit to do so.

What are you talking about? Ijekavian is unquestionably a part of the modern Serbian standard. I don't understand why you mentioned the proposed Montenegrin Wikipedia. If that thing ends up being created, their language file will only have Ijekavian forms (presumably both in Latin and Cyrillic) and those will still be unusable on the Serbian Wikipedia. I think you may have misunderstood the point of this request.

Change 707441 had a related patch set uploaded (by Acamicamacaraca; author: Acamicamacaraca):

[mediawiki/core@master] Update and expand special page aliases for Serbian

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

Change 707441 merged by jenkins-bot:

[mediawiki/core@master] Update and expand special page aliases for Serbian

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

will need to create one more patch for fallbacks and magic words

Change 709787 had a related patch set uploaded (by Acamicamacaraca; author: Acamicamacaraca):

[mediawiki/core@master] Update and expand magic word aliases for Serbian etc.

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

[mediawiki/core@master] Update and expand magic word aliases for Serbian etc.

Was there a discussion anywhere about making the two sublocales fall back to each other?