summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-20 11:51:36 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-20 11:51:36 +0100
commitae60108692a2c34b0ab474e7d9fa35bb8b689992 (patch)
treeac9a5ff605cd17a3f9f738b32afd8ecac7540b18 /tests
parent3ab9ad2d7849c58e3b1048e49d158a1742aa4fd4 (diff)
downloadnextcloud-server-ae60108692a2c34b0ab474e7d9fa35bb8b689992.tar.gz
nextcloud-server-ae60108692a2c34b0ab474e7d9fa35bb8b689992.zip
Revert "Correctly fallback to english, if the plural case is not translated"
This reverts commit cbad5c998b260040523ac8e6a2797591d0086938.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/l10n/ru.json3
-rw-r--r--tests/lib/l10n.php18
2 files changed, 1 insertions, 20 deletions
diff --git a/tests/data/l10n/ru.json b/tests/data/l10n/ru.json
index 7041205e761..177b14a6b20 100644
--- a/tests/data/l10n/ru.json
+++ b/tests/data/l10n/ru.json
@@ -1,7 +1,6 @@
{
"translations" : {
- "_%n file_::_%n files_" : ["%n файл", "%n файла", "%n файлов"],
- "_%n missing plural_::_%n missing plurals_" : ["", "", ""]
+ "_%n file_::_%n files_" : ["%n файл", "%n файла", "%n файлов"]
},
"pluralForm" : "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"
}
diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php
index 2235581add8..68f43b76f51 100644
--- a/tests/lib/l10n.php
+++ b/tests/lib/l10n.php
@@ -42,24 +42,6 @@ class Test_L10n extends \Test\TestCase {
*/
}
- public function russianMissingPluralTranslationsData() {
- return array(
- array(1, '1 missing plural'),
- array(2, '2 missing plurals'),
- array(6, '6 missing plurals'),
- );
- }
-
- /**
- * @dataProvider russianMissingPluralTranslationsData
- */
- public function testRussianMissingPluralTranslations($count, $expected) {
- $l = new OC_L10N('test');
- $l->load(OC::$SERVERROOT.'/tests/data/l10n/ru.json');
-
- $this->assertEquals($expected, (string)$l->n('%n missing plural', '%n missing plurals', $count));
- }
-
public function testCzechPluralTranslations() {
$l = new OC_L10N('test');
$transFile = OC::$SERVERROOT.'/tests/data/l10n/cs.json';