aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/languages/classes/LanguageUkTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move Language subclasses to includes/Timo Tijhof2021-08-041-114/+0
| | | | | | | | | | | | | | | | Depending on which namespace we want these classes to have after T166010 they could either stay in includes/languages/ (plural) in their own MediaWiki\Languages\-namespace dedicated to Language subclasses, or they could go in into a subdirectory like `includes/language/languages/` if we want to keep them in the same top-level namespace as other Language classes and services, but in a more nested namespace. For now, I've made the smaller change and kept the Language subclasses in their own directory directly under includes/, not nested further. Bug: T225756 Change-Id: I01015424707b442853879fd50c97f00215e5c2fa
* Adding default locative rule for UkrainianBase2020-06-121-0/+5
| | | | | | | | Prepending a default preposition to locative GRAMMAR forms in Ukrainian language Bug: T149550 Change-Id: I4649549dc3c722e53c7ea3accb6747df420e56f7
* Generalize non-digit-grouping of four-digit numbersBartosz Dziewoński2018-01-021-3/+0
| | | | | | | | | | | | | | | | | | | In some languages it's conventional not to insert a thousands separator in numbers that are four digits long (1000-9999). Rather than copy-paste the custom code to do this between 13 files, introduce another option and have the base Language class handle it. This also fixes an issue in several languages where this logic previously would not work for negative or fractional numbers. To implement this, a new option is added to MessagesXx.php files, `$minimumGroupingDigits = 2;`, with the meaning as defined in <http://unicode.org/reports/tr35/tr35-numbers.html>. It is a little roundabout, but it could allow us to migrate the number formatting (currently all custom code) to some generic library easily. Bug: T177846 Change-Id: Iedd8de5648cf2de1c94044918626de2f96365d48
* Add @covers tags to languages testsKunal Mehta2017-12-281-1/+3
| | | | | | | | I removed comments that merely repeated the location of the class being tested. There are other tests in this directory that don't have a corresponding class and need further investigation. Change-Id: Ic16f0887b5030ac53fab4382cfaedfb5426cdb08
* Convert all array() syntax to []Kunal Mehta2016-02-171-35/+35
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Update Ukrainian grammar rules and testsAmir E. Aharoni2015-09-271-0/+10
| | | | | | | | | | | * Fix the '-ти' rule to match the name of Wikiquote. * Add tests for '-ти' and '-ник' rules. * Remove the '-ь' and '-ка' rules, which were copied from Russian and are not used in Ukrainian, and remove their tests as well. * Remove non-implemented ("stub") cases. * Cleanup the code of commafy(). Change-Id: I98647ceb8806d845f3c8150b92a5d9f7fe5866f2
* Update grammar rules and test for UkrainianAmir E. Aharoni2015-09-271-0/+28
| | | | | | | | | | | | | The grammar rules for Ukrainian have several mistakes. This is the first in a series of commits that fix this. * Add grammar tests for PHP. There weren't any tests at all, and now there are some. Not tests are added for rules that are wrong and irrelevant and will be removed in subsequent commits. * Add tests for JavaScript, and update a grammar rule that was incorrectly copied from Russian. Change-Id: I6de4581e2908eba39b33a13b07d048a34a3bd803
* Move Test files under same folder structure where class is (/languages/)umherirrender2015-01-101-0/+72
Change-Id: I25c99272a1c2e318e6c61b4a497bf04886430e9b