Page MenuHomePhabricator

Grammatical cases for site name for ruwiki
Open, Needs TriagePublic

Description

In order to fully and correctly use the {{GRAMMAR:case | {{SITENAME}} }} magic words on the translatewiki.net, it is need to add all grammatical cases for the "Википедия Wikipedia" site name used in the ru.wikipedia.org in Russian.

https://meta.wikimedia.org/wiki/Help:Magic_words#Language-dependent_word_conversions

casesingularВикипед+
nominativeВикипедияия
genitiveВикипедииии
dativeВикипедииии
accusativeВикипедиюию
instrumentalВикипедиейией
prepositionalВикипедииии

https://en.wiktionary.org/wiki/Википедия

If it is set on the https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/languages/classes/LanguageRu.php then why is the

{{grammar:prepositional|Википедия}}

case=prepositional triggered when it is empty break.

upd: Now the code is in the https://phabricator.wikimedia.org/source/mediawiki/browse/master/languages/data/grammarTransformations/ru.json

Event Timeline

Sunpriat2 created this task.Jul 8 2020, 6:47 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 8 2020, 6:47 PM

I don't know how you landed in a eight year old codebase.

Old links are listed in
https://meta.wikimedia.org/wiki/Help:Magic_words#Language-dependent_word_conversions "LanguageRu.php (Russian)".
And link to the Meta from mediawiki help
https://www.mediawiki.org/wiki/Help:Magic_words#Localization "{{grammar:N|noun}} | (language-dependent). "

@Sunpriat2: Thanks; I have reverted that recent incorrect change to on-wiki docs.

Base added a subscriber: Base.EditedJul 16 2020, 12:48 AM

case=prepositional triggered when it is empty break.

What do you mean? {{grammar:prepositional|Википедия}} outputs Википедии to me.

Sunpriat2 updated the task description. (Show Details)Jul 16 2020, 3:10 AM
Sunpriat2 updated the task description. (Show Details)

What do you mean? {{grammar:prepositional|Википедия}} outputs Википедии to me.

Yes, as Aklapper said, now it works through a grammarTransformations/ru.json page and it has a filled case=prepositional. It was the LanguageRu.php in the meta.wikimedia documentation that referred to the old code where was an empty case=prepositional. I crossed out the sentence in the description now.

putnik added a subscriber: putnik.Aug 31 2020, 12:14 PM

MediaWiki GRAMMAR is simplistic, but I can try fixing this issue if it's broken. However, I'll need to see where exactly do you see broken display or a message that cannot be translated.

Change 633300 had a related patch set uploaded (by Amire80; owner: Amire80):
[mediawiki/core@master] Add accusative case to Russian language GRAMMAR

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

Base added a comment.Sun, Oct 11, 5:43 AM

As a note, I've edited the translation back to a version using accusative, rather than hard-coded "Wikipedia" since I assume it can be used not only on Wikipedia.

Change 633300 merged by jenkins-bot:
[mediawiki/core@master] Add accusative case to Russian language GRAMMAR

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