Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/templateeditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins for ownCloud <owncloud-bot@tmit.eu>2014-07-04 19:03:23 +0400
committerJenkins for ownCloud <owncloud-bot@tmit.eu>2014-07-04 19:03:23 +0400
commitd742727c2c3f2df54978e468e9d659d2b41ff0d7 (patch)
tree28ff2c123dbe937454e3fd2e988e05aa3ced9852
parent82ed58de79c5b2e8cb835536ebcab00209f010f8 (diff)
[tx-robot] updated from transifex
-rw-r--r--l10n/ar.php6
-rw-r--r--l10n/ast.php11
-rw-r--r--l10n/bg_BG.php5
-rw-r--r--l10n/bn_BD.php5
-rw-r--r--l10n/bs.php5
-rw-r--r--l10n/ca.php7
-rw-r--r--l10n/cs_CZ.php11
-rw-r--r--l10n/cy_GB.php5
-rw-r--r--l10n/da.php11
-rw-r--r--l10n/de.php11
-rw-r--r--l10n/de_AT.php5
-rw-r--r--l10n/de_CH.php6
-rw-r--r--l10n/de_DE.php11
-rw-r--r--l10n/el.php11
-rw-r--r--l10n/en_GB.php11
-rw-r--r--l10n/eo.php6
-rw-r--r--l10n/es.php11
-rw-r--r--l10n/es_AR.php7
-rw-r--r--l10n/es_MX.php6
-rw-r--r--l10n/et_EE.php7
-rw-r--r--l10n/eu.php7
-rw-r--r--l10n/eu_ES.php5
-rw-r--r--l10n/fa.php6
-rw-r--r--l10n/fi_FI.php11
-rw-r--r--l10n/fr.php11
-rw-r--r--l10n/gl.php11
-rw-r--r--l10n/he.php5
-rw-r--r--l10n/hi.php5
-rw-r--r--l10n/hr.php5
-rw-r--r--l10n/hu_HU.php7
-rw-r--r--l10n/hy.php5
-rw-r--r--l10n/ia.php6
-rw-r--r--l10n/id.php7
-rw-r--r--l10n/is.php5
-rw-r--r--l10n/it.php11
-rw-r--r--l10n/ja.php11
-rw-r--r--l10n/ka_GE.php5
-rw-r--r--l10n/km.php6
-rw-r--r--l10n/ko.php7
-rw-r--r--l10n/ku_IQ.php5
-rw-r--r--l10n/l10n.pl169
-rw-r--r--l10n/lb.php6
-rw-r--r--l10n/lt_LT.php6
-rw-r--r--l10n/lv.php5
-rw-r--r--l10n/mk.php11
-rw-r--r--l10n/ms_MY.php5
-rw-r--r--l10n/nb_NO.php11
-rw-r--r--l10n/nl.php11
-rw-r--r--l10n/nn_NO.php5
-rw-r--r--l10n/oc.php5
-rw-r--r--l10n/pl.php11
-rw-r--r--l10n/pt_BR.php11
-rw-r--r--l10n/pt_PT.php7
-rw-r--r--l10n/ro.php7
-rw-r--r--l10n/ru.php9
-rw-r--r--l10n/si_LK.php5
-rw-r--r--l10n/sk.php5
-rw-r--r--l10n/sk_SK.php11
-rw-r--r--l10n/sl.php11
-rw-r--r--l10n/sq.php5
-rw-r--r--l10n/sr.php5
-rw-r--r--l10n/sr@latin.php5
-rw-r--r--l10n/sv.php11
-rw-r--r--l10n/ta_LK.php5
-rw-r--r--l10n/te.php5
-rw-r--r--l10n/th_TH.php5
-rw-r--r--l10n/tr.php11
-rw-r--r--l10n/ug.php5
-rw-r--r--l10n/uk.php6
-rw-r--r--l10n/ur_PK.php6
-rw-r--r--l10n/vi.php6
-rw-r--r--l10n/zh_CN.php7
-rw-r--r--l10n/zh_HK.php5
-rw-r--r--l10n/zh_TW.php7
74 files changed, 704 insertions, 0 deletions
diff --git a/l10n/ar.php b/l10n/ar.php
new file mode 100644
index 0000000..4735d7c
--- /dev/null
+++ b/l10n/ar.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "حفظ",
+"Save" => "حفظ"
+);
+$PLURAL_FORMS = "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;";
diff --git a/l10n/ast.php b/l10n/ast.php
new file mode 100644
index 0000000..d0cf3cc
--- /dev/null
+++ b/l10n/ast.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Nun pudo cargase la plantía",
+"Saved" => "Guardáu",
+"Reset" => "Reaniciar",
+"Mail templates" => "Plantíes de corréu",
+"Theme" => "Tema",
+"Template" => "Plantía",
+"Save" => "Guardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/bg_BG.php b/l10n/bg_BG.php
new file mode 100644
index 0000000..c89bcbb
--- /dev/null
+++ b/l10n/bg_BG.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Запис"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/bn_BD.php b/l10n/bn_BD.php
new file mode 100644
index 0000000..354df7c
--- /dev/null
+++ b/l10n/bn_BD.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "সংরক্ষণ"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/bs.php b/l10n/bs.php
new file mode 100644
index 0000000..2624f90
--- /dev/null
+++ b/l10n/bs.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Spasi"
+);
+$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);";
diff --git a/l10n/ca.php b/l10n/ca.php
new file mode 100644
index 0000000..3103db5
--- /dev/null
+++ b/l10n/ca.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Desat",
+"Reset" => "Estableix de nou",
+"Save" => "Desa"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/cs_CZ.php b/l10n/cs_CZ.php
new file mode 100644
index 0000000..ac09d45
--- /dev/null
+++ b/l10n/cs_CZ.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Šablonu nelze nahrát",
+"Saved" => "Uloženo",
+"Reset" => "Restartovat složku",
+"Mail templates" => "E-mailové šablony",
+"Theme" => "Vzhled",
+"Template" => "Šablona",
+"Save" => "Uložit"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;";
diff --git a/l10n/cy_GB.php b/l10n/cy_GB.php
new file mode 100644
index 0000000..765f844
--- /dev/null
+++ b/l10n/cy_GB.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Cadw"
+);
+$PLURAL_FORMS = "nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3;";
diff --git a/l10n/da.php b/l10n/da.php
new file mode 100644
index 0000000..75430ee
--- /dev/null
+++ b/l10n/da.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Kunne ikke indlæse skabelon",
+"Saved" => "Gemt",
+"Reset" => "Nulstil",
+"Mail templates" => "E-mail skabelon",
+"Theme" => "Tema",
+"Template" => "Skabelon",
+"Save" => "Gem"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/de.php b/l10n/de.php
new file mode 100644
index 0000000..851a605
--- /dev/null
+++ b/l10n/de.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Vorlage kann nicht geladen werden",
+"Saved" => "Gespeichert",
+"Reset" => "Zurücksetzen",
+"Mail templates" => "Mail-Vorlagen",
+"Theme" => "Theme",
+"Template" => "Vorlage",
+"Save" => "Speichern"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/de_AT.php b/l10n/de_AT.php
new file mode 100644
index 0000000..60e8abd
--- /dev/null
+++ b/l10n/de_AT.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Speichern"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/de_CH.php b/l10n/de_CH.php
new file mode 100644
index 0000000..b570bd6
--- /dev/null
+++ b/l10n/de_CH.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Zurücksetzen",
+"Save" => "Speichern"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/de_DE.php b/l10n/de_DE.php
new file mode 100644
index 0000000..851a605
--- /dev/null
+++ b/l10n/de_DE.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Vorlage kann nicht geladen werden",
+"Saved" => "Gespeichert",
+"Reset" => "Zurücksetzen",
+"Mail templates" => "Mail-Vorlagen",
+"Theme" => "Theme",
+"Template" => "Vorlage",
+"Save" => "Speichern"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/el.php b/l10n/el.php
new file mode 100644
index 0000000..20ee438
--- /dev/null
+++ b/l10n/el.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Αδυναμία φόρτωσης προτύπου",
+"Saved" => "Αποθηκεύτηκαν",
+"Reset" => "Επαναφορά",
+"Mail templates" => "Πρότυπα αλληλογραφίας",
+"Theme" => "Θέμα",
+"Template" => "Πρότυπο",
+"Save" => "Αποθήκευση"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/en_GB.php b/l10n/en_GB.php
new file mode 100644
index 0000000..d2db4ce
--- /dev/null
+++ b/l10n/en_GB.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Could not load template",
+"Saved" => "Saved",
+"Reset" => "Reset",
+"Mail templates" => "Mail templates",
+"Theme" => "Theme",
+"Template" => "Template",
+"Save" => "Save"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/eo.php b/l10n/eo.php
new file mode 100644
index 0000000..7918574
--- /dev/null
+++ b/l10n/eo.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Konservita",
+"Save" => "Konservi"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/es.php b/l10n/es.php
new file mode 100644
index 0000000..c8bd6dd
--- /dev/null
+++ b/l10n/es.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "No se cargó la plantilla",
+"Saved" => "Guardado",
+"Reset" => "Reiniciar",
+"Mail templates" => "Plantillas para correo",
+"Theme" => "Tema",
+"Template" => "Plantilla",
+"Save" => "Guardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/es_AR.php b/l10n/es_AR.php
new file mode 100644
index 0000000..0a2362e
--- /dev/null
+++ b/l10n/es_AR.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Guardado",
+"Reset" => "Resetear",
+"Save" => "Guardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/es_MX.php b/l10n/es_MX.php
new file mode 100644
index 0000000..4bbe291
--- /dev/null
+++ b/l10n/es_MX.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Reiniciar",
+"Save" => "Guardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/et_EE.php b/l10n/et_EE.php
new file mode 100644
index 0000000..e4e239f
--- /dev/null
+++ b/l10n/et_EE.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Salvestatud",
+"Reset" => "Algseaded",
+"Save" => "Salvesta"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/eu.php b/l10n/eu.php
new file mode 100644
index 0000000..857cc15
--- /dev/null
+++ b/l10n/eu.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Gordeta",
+"Reset" => "Berrezarri",
+"Save" => "Gorde"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/eu_ES.php b/l10n/eu_ES.php
new file mode 100644
index 0000000..a1d57a9
--- /dev/null
+++ b/l10n/eu_ES.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Gorde"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/fa.php b/l10n/fa.php
new file mode 100644
index 0000000..1a307fc
--- /dev/null
+++ b/l10n/fa.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "تنظیم مجدد",
+"Save" => "ذخیره"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/fi_FI.php b/l10n/fi_FI.php
new file mode 100644
index 0000000..6616566
--- /dev/null
+++ b/l10n/fi_FI.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Mallipohjan lataaminen epäonnistui",
+"Saved" => "Tallennettu",
+"Reset" => "Nollaa salasana",
+"Mail templates" => "Sähköpostimallit",
+"Theme" => "Teema",
+"Template" => "Mallit",
+"Save" => "Tallenna"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/fr.php b/l10n/fr.php
new file mode 100644
index 0000000..4b8fb1e
--- /dev/null
+++ b/l10n/fr.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Impossible de charger le modèle",
+"Saved" => "Sauvegarder",
+"Reset" => "Réinitialiser",
+"Mail templates" => "Modèles de courriels",
+"Theme" => "Thème",
+"Template" => "Modèles",
+"Save" => "Sauvegarder"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n > 1);";
diff --git a/l10n/gl.php b/l10n/gl.php
new file mode 100644
index 0000000..ad0883b
--- /dev/null
+++ b/l10n/gl.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Non foi posíbel cargar o modelo",
+"Saved" => "Gardado",
+"Reset" => "Restabelecer",
+"Mail templates" => "Modelos de correo",
+"Theme" => "Tema",
+"Template" => "Modelo",
+"Save" => "Gardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/he.php b/l10n/he.php
new file mode 100644
index 0000000..b26cf26
--- /dev/null
+++ b/l10n/he.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "שמירה"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/hi.php b/l10n/hi.php
new file mode 100644
index 0000000..d373ff0
--- /dev/null
+++ b/l10n/hi.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "सहेजें"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/hr.php b/l10n/hr.php
new file mode 100644
index 0000000..5df22b3
--- /dev/null
+++ b/l10n/hr.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Snimi"
+);
+$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;";
diff --git a/l10n/hu_HU.php b/l10n/hu_HU.php
new file mode 100644
index 0000000..2085060
--- /dev/null
+++ b/l10n/hu_HU.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Elmentve",
+"Reset" => "Visszaállítás",
+"Save" => "Mentés"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/hy.php b/l10n/hy.php
new file mode 100644
index 0000000..3f79bc3
--- /dev/null
+++ b/l10n/hy.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Պահպանել"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/ia.php b/l10n/ia.php
new file mode 100644
index 0000000..dcdacdc
--- /dev/null
+++ b/l10n/ia.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Re-fixar",
+"Save" => "Salveguardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/id.php b/l10n/id.php
new file mode 100644
index 0000000..bb941d5
--- /dev/null
+++ b/l10n/id.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Disimpan",
+"Reset" => "Atur Ulang",
+"Save" => "Simpan"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/is.php b/l10n/is.php
new file mode 100644
index 0000000..1c223c5
--- /dev/null
+++ b/l10n/is.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Vista"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/it.php b/l10n/it.php
new file mode 100644
index 0000000..ac1a228
--- /dev/null
+++ b/l10n/it.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Impossibile caricare il modello",
+"Saved" => "Salvato",
+"Reset" => "Ripristina",
+"Mail templates" => "Modelli di messaggio",
+"Theme" => "Tema",
+"Template" => "Modello",
+"Save" => "Salva"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/ja.php b/l10n/ja.php
new file mode 100644
index 0000000..2f1f071
--- /dev/null
+++ b/l10n/ja.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "テンプレートを読み出せませんでした",
+"Saved" => "保存されました",
+"Reset" => "リセット",
+"Mail templates" => "メールテンプレート",
+"Theme" => "テーマ",
+"Template" => "テンプレート",
+"Save" => "保存"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/ka_GE.php b/l10n/ka_GE.php
new file mode 100644
index 0000000..0f5396b
--- /dev/null
+++ b/l10n/ka_GE.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "შენახვა"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/km.php b/l10n/km.php
new file mode 100644
index 0000000..f5961df
--- /dev/null
+++ b/l10n/km.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "បាន​រក្សាទុក",
+"Save" => "រក្សាទុក"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/ko.php b/l10n/ko.php
new file mode 100644
index 0000000..d430e6c
--- /dev/null
+++ b/l10n/ko.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "저장됨",
+"Reset" => "재설정",
+"Save" => "저장"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/ku_IQ.php b/l10n/ku_IQ.php
new file mode 100644
index 0000000..4e2be8a
--- /dev/null
+++ b/l10n/ku_IQ.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "پاشکه‌وتکردن"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
new file mode 100644
index 0000000..2716353
--- /dev/null
+++ b/l10n/l10n.pl
@@ -0,0 +1,169 @@
+#!/usr/bin/perl
+use strict;
+use Locale::PO;
+use Cwd;
+use Data::Dumper;
+use File::Path;
+use File::Basename;
+
+sub crawlFiles{
+ my( $dir ) = @_;
+ my @found = ();
+
+ opendir( DIR, $dir );
+ my @files = readdir( DIR );
+ closedir( DIR );
+ @files = sort( @files );
+
+ foreach my $i ( @files ){
+ next if substr( $i, 0, 1 ) eq '.';
+ next if $i eq 'l10n';
+
+ if( -d $dir.'/'.$i ){
+ push( @found, crawlFiles( $dir.'/'.$i ));
+ }
+ else{
+ push(@found,$dir.'/'.$i) if $i =~ /\.js$/ || $i =~ /\.php$/;
+ }
+ }
+
+ return @found;
+}
+
+sub readIgnorelist{
+ return () unless -e 'l10n/ignorelist';
+ my %ignore = ();
+ open(IN,'l10n/ignorelist');
+ while(<IN>){
+ my $line = $_;
+ chomp($line);
+ $ignore{"./$line"}++;
+ }
+ close(IN);
+ return %ignore;
+}
+
+sub getPluralInfo {
+ my( $info ) = @_;
+
+ # get string
+ $info =~ s/.*Plural-Forms: (.+)\\n.*/$1/;
+ $info =~ s/^(.*)\\n.*/$1/g;
+
+ return $info;
+}
+
+my $app = shift( @ARGV );
+my $task = shift( @ARGV );
+
+die( "Usage: l10n.pl app task\ntask: read, write\n" ) unless $task;
+
+# Our current position
+my $whereami = cwd();
+die( "Program must be executed in a l10n-folder called 'l10n'" ) unless $whereami =~ m/\/l10n$/;
+
+# Where are i18n-files?
+my $pwd = dirname(cwd());
+
+my @dirs = ();
+push(@dirs, $pwd);
+
+# Languages
+my @languages = ();
+opendir( DIR, '.' );
+my @files = readdir( DIR );
+closedir( DIR );
+foreach my $i ( @files ){
+ push( @languages, $i ) if -d $i && substr( $i, 0, 1 ) ne '.';
+}
+
+if( $task eq 'read' ){
+ rmtree( 'templates' );
+ mkdir( 'templates' ) unless -d 'templates';
+ print "Mode: reading\n";
+ foreach my $dir ( @dirs ){
+ my @temp = split( /\//, $dir );
+ chdir( $dir );
+ my @totranslate = crawlFiles('.');
+ my %ignore = readIgnorelist();
+ my $output = "${whereami}/templates/$app.pot";
+ my $packageName = "ownCloud $app";
+ print " Processing $app\n";
+
+ foreach my $file ( @totranslate ){
+ next if $ignore{$file};
+ my $keywords = '';
+ if( $file =~ /\.js$/ ){
+ $keywords = '--keyword=t:2 --keyword=n:2,3';
+ }
+ else{
+ $keywords = '--keyword=t --keyword=n:1,2';
+ }
+ my $language = ( $file =~ /\.js$/ ? 'Python' : 'PHP');
+ my $joinexisting = ( -e $output ? '--join-existing' : '');
+ print " Reading $file\n";
+ `xgettext --output="$output" $joinexisting $keywords --language=$language "$file" --add-comments=TRANSLATORS --from-code=UTF-8 --package-version="7.0.0" --package-name="$packageName" --msgid-bugs-address="translations\@owncloud.org"`;
+ }
+ chdir( $whereami );
+ }
+}
+elsif( $task eq 'write' ){
+ print "Mode: write\n";
+ foreach my $dir ( @dirs ){
+ my @temp = split( /\//, $dir );
+ chdir( $dir.'/l10n' );
+ print " Processing $app\n";
+ foreach my $language ( @languages ){
+ next if $language eq 'templates';
+
+ my $input = "${whereami}/$language/$app.po";
+ next unless -e $input;
+
+ print " Language $language\n";
+ my $array = Locale::PO->load_file_asarray( $input );
+ # Create array
+ my @strings = ();
+ my $plurals;
+
+ foreach my $string ( @{$array} ){
+ if( $string->msgid() eq '""' ){
+ # Translator information
+ $plurals = getPluralInfo( $string->msgstr());
+ }
+ elsif( defined( $string->msgstr_n() )){
+ # plural translations
+ my @variants = ();
+ my $identifier = $string->msgid()."::".$string->msgid_plural();
+ $identifier =~ s/"/_/g;
+
+ foreach my $variant ( sort { $a <=> $b} keys( %{$string->msgstr_n()} )){
+ push( @variants, $string->msgstr_n()->{$variant} );
+ }
+
+ push( @strings, "\"$identifier\" => array(".join(",", @variants).")");
+ }
+ else{
+ # singular translations
+ next if $string->msgstr() eq '""';
+ push( @strings, $string->msgid()." => ".$string->msgstr());
+ }
+ }
+ next if $#strings == -1; # Skip empty files
+
+ for (@strings) {
+ s/\$/\\\$/g;
+ }
+
+ # Write PHP file
+ open( OUT, ">$language.php" );
+ print OUT "<?php\n\$TRANSLATIONS = array(\n";
+ print OUT join( ",\n", @strings );
+ print OUT "\n);\n\$PLURAL_FORMS = \"$plurals\";\n";
+ close( OUT );
+ }
+ chdir( $whereami );
+ }
+}
+else{
+ print "unknown task!\n";
+}
diff --git a/l10n/lb.php b/l10n/lb.php
new file mode 100644
index 0000000..1c44a18
--- /dev/null
+++ b/l10n/lb.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Zeréck setzen",
+"Save" => "Späicheren"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/lt_LT.php b/l10n/lt_LT.php
new file mode 100644
index 0000000..4e5cd3e
--- /dev/null
+++ b/l10n/lt_LT.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Atstatyti",
+"Save" => "Išsaugoti"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);";
diff --git a/l10n/lv.php b/l10n/lv.php
new file mode 100644
index 0000000..674a173
--- /dev/null
+++ b/l10n/lv.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Saglabāt"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);";
diff --git a/l10n/mk.php b/l10n/mk.php
new file mode 100644
index 0000000..3ee536d
--- /dev/null
+++ b/l10n/mk.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Не можам да го вчитам шаблонот",
+"Saved" => "Снимено",
+"Reset" => "Поништи",
+"Mail templates" => "Шаблони за електронска пошта",
+"Theme" => "Теми",
+"Template" => "Шаблон",
+"Save" => "Сними"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;";
diff --git a/l10n/ms_MY.php b/l10n/ms_MY.php
new file mode 100644
index 0000000..dde023f
--- /dev/null
+++ b/l10n/ms_MY.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Simpan"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/nb_NO.php b/l10n/nb_NO.php
new file mode 100644
index 0000000..f93fe7b
--- /dev/null
+++ b/l10n/nb_NO.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Klarte ikke å laste mal",
+"Saved" => "Lagret",
+"Reset" => "Tilbakestill",
+"Mail templates" => "Epost-maler",
+"Theme" => "Tema",
+"Template" => "Mal",
+"Save" => "Lagre"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/nl.php b/l10n/nl.php
new file mode 100644
index 0000000..4e1b772
--- /dev/null
+++ b/l10n/nl.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Kon sjabloon niet laden",
+"Saved" => "Bewaard",
+"Reset" => "Reset",
+"Mail templates" => "E-mailsjablonen",
+"Theme" => "Thema",
+"Template" => "Sjabloon",
+"Save" => "Bewaren"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/nn_NO.php b/l10n/nn_NO.php
new file mode 100644
index 0000000..4619c24
--- /dev/null
+++ b/l10n/nn_NO.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Lagra"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/oc.php b/l10n/oc.php
new file mode 100644
index 0000000..42ef978
--- /dev/null
+++ b/l10n/oc.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Enregistra"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n > 1);";
diff --git a/l10n/pl.php b/l10n/pl.php
new file mode 100644
index 0000000..400d92c
--- /dev/null
+++ b/l10n/pl.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Nie można załadować szablonu",
+"Saved" => "Zapisano",
+"Reset" => "Resetuj",
+"Mail templates" => "Szablony maili",
+"Theme" => "Motyw",
+"Template" => "Szablon",
+"Save" => "Zapisz"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);";
diff --git a/l10n/pt_BR.php b/l10n/pt_BR.php
new file mode 100644
index 0000000..98803ab
--- /dev/null
+++ b/l10n/pt_BR.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Não foi possível carregar modelo",
+"Saved" => "Salvo",
+"Reset" => "Resetar",
+"Mail templates" => "Modelo de email",
+"Theme" => "Tema",
+"Template" => "Modelo",
+"Save" => "Salvar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n > 1);";
diff --git a/l10n/pt_PT.php b/l10n/pt_PT.php
new file mode 100644
index 0000000..29ba689
--- /dev/null
+++ b/l10n/pt_PT.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Guardado",
+"Reset" => "Repor",
+"Save" => "Guardar"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/ro.php b/l10n/ro.php
new file mode 100644
index 0000000..305244b
--- /dev/null
+++ b/l10n/ro.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Salvat",
+"Reset" => "Resetare",
+"Save" => "Salvează"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));";
diff --git a/l10n/ru.php b/l10n/ru.php
new file mode 100644
index 0000000..62a5cc3
--- /dev/null
+++ b/l10n/ru.php
@@ -0,0 +1,9 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "Сохранено",
+"Reset" => "Сброс",
+"Theme" => "Тема",
+"Template" => "Шаблон",
+"Save" => "Сохранить"
+);
+$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);";
diff --git a/l10n/si_LK.php b/l10n/si_LK.php
new file mode 100644
index 0000000..661a849
--- /dev/null
+++ b/l10n/si_LK.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "සුරකින්න"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/sk.php b/l10n/sk.php
new file mode 100644
index 0000000..9efe9fe
--- /dev/null
+++ b/l10n/sk.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Uložiť"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;";
diff --git a/l10n/sk_SK.php b/l10n/sk_SK.php
new file mode 100644
index 0000000..630fc5c
--- /dev/null
+++ b/l10n/sk_SK.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Šablónu nemožno nahrať",
+"Saved" => "Uložené",
+"Reset" => "Resetovať",
+"Mail templates" => "Emailové šablóny",
+"Theme" => "Téma",
+"Template" => "Šablóna",
+"Save" => "Uložiť"
+);
+$PLURAL_FORMS = "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;";
diff --git a/l10n/sl.php b/l10n/sl.php
new file mode 100644
index 0000000..92143e6
--- /dev/null
+++ b/l10n/sl.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Predloge ni bilo mogoče naložiti",
+"Saved" => "Shranjeno",
+"Reset" => "Ponastavi",
+"Mail templates" => "Predloga elektronske pošte",
+"Theme" => "Tema",
+"Template" => "Predloga",
+"Save" => "Shrani"
+);
+$PLURAL_FORMS = "nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);";
diff --git a/l10n/sq.php b/l10n/sq.php
new file mode 100644
index 0000000..66d3b2f
--- /dev/null
+++ b/l10n/sq.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Ruaj"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/sr.php b/l10n/sr.php
new file mode 100644
index 0000000..5a2cca0
--- /dev/null
+++ b/l10n/sr.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Сачувај"
+);
+$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);";
diff --git a/l10n/sr@latin.php b/l10n/sr@latin.php
new file mode 100644
index 0000000..3eb2811
--- /dev/null
+++ b/l10n/sr@latin.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "Snimi"
+);
+$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);";
diff --git a/l10n/sv.php b/l10n/sv.php
new file mode 100644
index 0000000..6c92764
--- /dev/null
+++ b/l10n/sv.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Kunde inte ladda mall",
+"Saved" => "Sparad",
+"Reset" => "Återställ",
+"Mail templates" => "e-postmallar",
+"Theme" => "Teman",
+"Template" => "Mallar",
+"Save" => "Spara"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/ta_LK.php b/l10n/ta_LK.php
new file mode 100644
index 0000000..fdf3ac7
--- /dev/null
+++ b/l10n/ta_LK.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "சேமிக்க "
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/te.php b/l10n/te.php
new file mode 100644
index 0000000..f3bf5e8
--- /dev/null
+++ b/l10n/te.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "భద్రపరచు"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/th_TH.php b/l10n/th_TH.php
new file mode 100644
index 0000000..815c12a
--- /dev/null
+++ b/l10n/th_TH.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "บันทึก"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/tr.php b/l10n/tr.php
new file mode 100644
index 0000000..353d748
--- /dev/null
+++ b/l10n/tr.php
@@ -0,0 +1,11 @@
+<?php
+$TRANSLATIONS = array(
+"Could not load template" => "Şablon yüklenemedi",
+"Saved" => "Kaydedildi",
+"Reset" => "Sıfırla",
+"Mail templates" => "Posta şablonları",
+"Theme" => "Tema",
+"Template" => "Şablon",
+"Save" => "Kaydet"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n > 1);";
diff --git a/l10n/ug.php b/l10n/ug.php
new file mode 100644
index 0000000..16555aa
--- /dev/null
+++ b/l10n/ug.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "ساقلا"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/uk.php b/l10n/uk.php
new file mode 100644
index 0000000..9231821
--- /dev/null
+++ b/l10n/uk.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Перевстановити",
+"Save" => "Зберегти"
+);
+$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);";
diff --git a/l10n/ur_PK.php b/l10n/ur_PK.php
new file mode 100644
index 0000000..f6779d9
--- /dev/null
+++ b/l10n/ur_PK.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "ری سیٹ",
+"Save" => "حفظ"
+);
+$PLURAL_FORMS = "nplurals=2; plural=(n != 1);";
diff --git a/l10n/vi.php b/l10n/vi.php
new file mode 100644
index 0000000..4b92fa2
--- /dev/null
+++ b/l10n/vi.php
@@ -0,0 +1,6 @@
+<?php
+$TRANSLATIONS = array(
+"Reset" => "Khởi động lại",
+"Save" => "Lưu"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/zh_CN.php b/l10n/zh_CN.php
new file mode 100644
index 0000000..e9a5107
--- /dev/null
+++ b/l10n/zh_CN.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "已保存",
+"Reset" => "重置",
+"Save" => "保存"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/zh_HK.php b/l10n/zh_HK.php
new file mode 100644
index 0000000..bac5c64
--- /dev/null
+++ b/l10n/zh_HK.php
@@ -0,0 +1,5 @@
+<?php
+$TRANSLATIONS = array(
+"Save" => "儲存"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";
diff --git a/l10n/zh_TW.php b/l10n/zh_TW.php
new file mode 100644
index 0000000..a82bbf4
--- /dev/null
+++ b/l10n/zh_TW.php
@@ -0,0 +1,7 @@
+<?php
+$TRANSLATIONS = array(
+"Saved" => "已儲存",
+"Reset" => "重設",
+"Save" => "儲存"
+);
+$PLURAL_FORMS = "nplurals=1; plural=0;";