Add new grammar forms for language names in Russian
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Tue, 11 Nov 2014 07:04:48 +0000 (09:04 +0200)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Mon, 28 Sep 2015 12:51:24 +0000 (15:51 +0300)
commit8b0c0b49ce241d2d33cd0dd53d4e78d8a532f37e
treea9b991d1207f12fc1a1b3f57aab2aacafd3ae4e8
parenta74baa198cf96178365216a1c5d8c138903c6f40
Add new grammar forms for language names in Russian

CLDR provides translated language names. They are useful for showing
names by themselves in menus and lists, but it's often problematic to add them
to Russian sentences, because they need to be declined, so a message like
"This page is not available in the $1 language" is hard to localize.

This patch adds new cases for Russian -
"languagegen", "languageprep" and "languageadverb".
(The last one, as its name says, it's not actually a grammatical case,
but a transformation to an adverbial expression.)
This covers most of the needs for language names that MediaWiki supports.

Change-Id: Ib6a0afa5c3736f8b9b2e121cd752c53ee50fad75
languages/classes/LanguageRu.php
resources/src/mediawiki.language/languages/ru.js
tests/phpunit/languages/classes/LanguageRuTest.php
tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js