Page MenuHomePhabricator

Serbian Latin (sr-el) magic words aren't available on Serbian Wikipedia
Closed, ResolvedPublic

Description

Users on Serbian Wikipedia are constantly reporting that Serbian Latin magic words aren't available.

Via VPS-project-Codesearch I found in operations/puppet API query, from which I've removed unnecessary stuff, in order to have an output which is actually needed (see https://sr.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=magicwords&format=json&formatversion=2), and it shows me that MediaWiki doesn't even load Serbian Latin magic words, only English + Serbian Cyrillic.

In mediawiki/core (see https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/messages/MessagesSr_ec.php and https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/messages/MessagesSr_el.php) you can see that for Serbian Cyrillic and Serbian Latin, magic words are actually added.

Is there something more that we need to do, in order to have Serbian Latin magic words available as well? I found https://www.mediawiki.org/wiki/Manual:$wgDefaultLanguageVariant, but I don't think that it will work, since we don't want to change the default language variant, but to have Serbian Latin magic words available as well.

Event Timeline

I know about that task, but the point is that magic words with Cyrillic letters are working, with Latin not. Both should work.

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

And empty wiki without my patch in 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 added a subscriber: srishakatux.

This should be solved now, but let's wait for the next MediaWiki train, to see this live in Serbian (Wikipedia, Wiktionary...)

I'm unsure if we will have to run some maintenance scripts (Wikimedia-maintenance-script-run), but I think that databases will be much happier, because MediaWiki will now understand better what is alias/magic word, what isn't. :)

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

It's working! \o/

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

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