Page MenuHomePhabricator

Allow the use of Latin and Ijekavian magic words and special page aliases on the Serbian Wikipedia
Closed, ResolvedPublic

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?

Change 709787 merged by jenkins-bot:

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

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

Kizule added a subscriber: Milicevic01.

@Milicevic01 made a report on "technical village pump" in Serbian Wikipedia, so I'm reopening this.

I think that this is a relevant task. Please don't close this right after I make a comment, I haven't opened another one because I'm not sure what I should write, but this is the right task.

Thank you for your understanding!

Simply magic words in Latin dont work (Example).
Back when magic words where translated on Translatewiki i added Latin ones in page for Cyrillic counterparts (MediaWiki:Sp-translate-data-MagicWords/sr-ec) since Cyrillic is default on srwiki; and Latin ones worked fine

Kizule triaged this task as Medium priority.Oct 28 2023, 6:35 AM

Also, our old substituted template for welcoming users is broken, for cases when it's in Serbian Latin.

Example: https://sr.wikipedia.org/wiki/Разговор_с_корисником:SrpskiAnonimac

Files aren't visible, because in Serbian Latin File is Slika or Datoteka. We have aliases in Serbian Cyrillic Слика and Датотека that are working.
MediaWiki thinks that Slika: is the article's name, it should be a namespace alias.

It is defined as an alias in https://gerrit.wikimedia.org/g/mediawiki/core/+/febfc138d2b586d6aa5fe51bff980ccaab19ecb9/languages/messages/MessagesSr_el.php#58

I think that Serbian Latin needs to be added in MessagesSr.php (based on https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/messages/MessagesSh.php).

I'm going to make a patch for that.

Change 969428 had a related patch set uploaded (by Zoranzoki21; author: Zoranzoki21):

[mediawiki/core@master] MessagesSr.php: Use aliases in Serbian Latin as well

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

Test wiki created on Patch demo by Kizule using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/e11902f2c7/w

Slika: now gets redirected to Датотека: how it's supposed to do.

Test wiki created on Patch demo by Kizule using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/e11902f2c7/w

And empty wiki without my patch at https://patchdemo.wmflabs.org/wikis/7c784aee3d

Change 969428 merged by Fomafix:

[mediawiki/core@master] MessagesSr: Use aliases in Serbian Latin script as well

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

Kizule moved this task from Inbox to To deploy on the User-Kizule board.

Solved, if there is still interest for ijekavian, let's open another task for that.

Test wiki on Patch demo by Kizule using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/e11902f2c7/w/