summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-02 23:08:41 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-02 23:08:41 +0200
commite04bf0aaeb92103ef432e56f1d6d712599952cee (patch)
treea56c98211a17812379a85ea76125b47e3616c5d9 /tests/data
parent550b647d8a777c11b74377002d58b4806f9e97e5 (diff)
downloadnextcloud-server-e04bf0aaeb92103ef432e56f1d6d712599952cee.tar.gz
nextcloud-server-e04bf0aaeb92103ef432e56f1d6d712599952cee.zip
unit tests for plural translations added
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/l10n/cs.php5
-rw-r--r--tests/data/l10n/de.php5
-rw-r--r--tests/data/l10n/ru.php5
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/data/l10n/cs.php b/tests/data/l10n/cs.php
new file mode 100644
index 00000000000..1c5907bc148
--- /dev/null
+++ b/tests/data/l10n/cs.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+ "_%n window__%n windows_" => array("%n okno", "%n okna", "%n oken")
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;";
diff --git a/tests/data/l10n/de.php b/tests/data/l10n/de.php
new file mode 100644
index 00000000000..858ec8af49c
--- /dev/null
+++ b/tests/data/l10n/de.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+ "_%n file__%n files_" => array("%n Datei", "%n Dateien")
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/tests/data/l10n/ru.php b/tests/data/l10n/ru.php
new file mode 100644
index 00000000000..dd46293db6c
--- /dev/null
+++ b/tests/data/l10n/ru.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+ "_%n file__%n files_" => array("%n файл", "%n файла", "%n файлов")
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);";