From ae60108692a2c34b0ab474e7d9fa35bb8b689992 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Feb 2015 11:51:36 +0100 Subject: Revert "Correctly fallback to english, if the plural case is not translated" This reverts commit cbad5c998b260040523ac8e6a2797591d0086938. --- tests/lib/l10n.php | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'tests/lib/l10n.php') 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'; -- cgit v1.2.3