| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
These rules supersede grammar forms that thus far have been defined in
WikimediaMessages extension. Additionally these rules target some more
Wikimedia sitenames that previously weren't declined.
Change-Id: Ic1827eed04bcc61be8f5053c61f47610bc0c842a
|
|
|
|
|
|
|
| |
To be merged after the following change has been deployed: https://gerrit.wikimedia.org/r/1060893
Bug: T366271
Change-Id: I1dd9a91bc37e32bde15f52271fbea2580943ab99
|
|
|
|
|
|
|
|
| |
Add file for (Northern) Kurdish [ku] to enable
{{GRAMMAR:oblique}} for sitenames.
Bug: T335036
Change-Id: Ia7458d5795d618eafa6b38bf06eadbcb98cfb5a7
|
|
|
|
|
|
|
|
| |
If the input for the {{GRAMMAR:genitive}} is a [[link]],
ignore the final ]s when deciding which case to use for
the genitive.
Change-Id: I3dedfac88c0dce73040b461f0e2047e386ca0ef8
|
|
|
|
|
|
|
|
|
| |
First step towards resolving bug T307207.
Other cases will be added in subsequent patches.
Bug: T307207
Change-Id: I7ae6c05cd2eca6031da29aa3c203341b70ebb1b1
|
|
|
|
|
|
|
|
|
|
| |
Autonym verified with
Руско-сербски словнїк, Юлиян Рамач,
Филозофски факултет Нови Сад – Одсек за русинистику,
Завод за културу войводянских руснацох Нови Сад, 2010
Bug: T302556
Change-Id: I8d70c3e0073e360eb6a4291576caac530b96a6cc
|
|
|
|
|
| |
Bug: T257500
Change-Id: I30a892a936c0ed9247bc6b63be747697cb9f3e26
|
|
|
|
|
|
|
|
| |
Prepending a default preposition to locative GRAMMAR forms
in Ukrainian language
Bug: T149550
Change-Id: I4649549dc3c722e53c7ea3accb6747df420e56f7
|
|
|
|
|
|
| |
Add file for Swedish (sv) to enable {{GRAMMAR:genitive}} in that language.
Change-Id: I6175b53a882f8fe6a9ed88e16c7464593c5ce5d3
|
|
|
|
|
|
|
| |
Add files for Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) to enable
{{GRAMMAR:genitive}} for those two languages. Tested in Vagrant.
Change-Id: Ib8d84fa24daffde023203df4e8fa1148b52ea975
|
|
|
|
| |
Change-Id: I70fcb03db62307116ec96d4c242e6796534b57a1
|
|
|
|
| |
Change-Id: I2a18acee6a1c4a7462953477da50d57239994f37
|
|
|
|
|
|
| |
It must only be transformed in the beginning of the word.
Change-Id: Iec6e2032775b9efd92cc2d649944f4892f813b24
|
|
|
|
|
| |
Bug: T115217
Change-Id: I15a06b07e381cc9074e64e746d22ec51e9e638c4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This makes the code for processing JSON files with
grammar transformations reusable by different languages
and applies the same logic to Russian and Hebrew.
It will be done to other languages in further patches.
This patch is not supposed to change any functionality,
and the tests are intact (except a comment in the test
for Hebrew - the class doesn't exist any longer).
PHP:
* Move the JSON grammar transformation data processing logic
from LanguageRu.php to convertGrammar() in Language.php.
By default all these data files are supposed to be
processed identically, so the code should be common.
If there is no JSON data file, nothing new happens.
* LanguageRu's own convertGrammar() method is removed.
* The LanguageHe class is removed, now that all its functionality
is handled by generic JSON data processing in the Language class.
LanguageHe.php file is removed from the repo and from autoloading.
JavaScript:
* Move the JSON grammar transformation data processing logic
from ru.js to mediawiki.language.js.
* JavaScript grammar code files he.js and ru.js are removed
from the repo and from Resources.php, because all the data
is in JSON, and the default logic in mediawiki.language.js
works for both languages.
Bug: T115217
Change-Id: I5e75467121c3d791bb84f9e6fdfcf07c1840f81a
|
|
* Load the data of this variable from a JSON file to the same
data structure that ResourceLoader uses for digitTransformTable,
pluralRules, etc.
* Change the JSON structure to ensure the order of the rules.
Otherwise JavaScript processes the keys in a random order.
* Delete the grammar code from JS and replace it with
the same logic that is used in PHP for processing the data.
For now this is done only for Russian.
The next step will be to make the PHP and JS
data processing logic reusable.
Bug: T115217
Change-Id: I6b9b29b7017f958d62611671be017f97cee73415
|