From: Jerome Jutteau Date: Fri, 9 Feb 2018 12:18:52 +0000 (+0100) Subject: [TASK] Add translation item for plural X-Git-Tag: 3.4.0~4 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/refs/merge-requests/44/head?ds=sidebyside [TASK] Add translation item for plural Signed-off-by: Jerome Jutteau --- diff --git a/lib/functions.js.php b/lib/functions.js.php index 5455d78..983736f 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -641,14 +641,7 @@ function upload_time_estimation_speed_string() function milliseconds_to_time_string (milliseconds) { function numberEnding (number) { - var currentLanguage = ''; - - if(currentLanguage == 'de') { - return (number > 1) ? 'n' : ''; - } - else { - return (number > 1) ? 's' : ''; - } + return (number > 1) ? translate ('PLURAL_ENDING') : ''; } var temp = Math.floor(milliseconds / 1000); diff --git a/lib/locales/ar.json b/lib/locales/ar.json index 52addae..7d411a9 100644 --- a/lib/locales/ar.json +++ b/lib/locales/ar.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "الدخول محظور", "ACTION": "الأمر", "ACTIONS": "الأوامر", diff --git a/lib/locales/be.json b/lib/locales/be.json index ae23e52..f95d625 100644 --- a/lib/locales/be.json +++ b/lib/locales/be.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau — ваша вэб-сховішча файлаў", "SEL_FILE": "Абраць файл", "SEND": "Адправіць", diff --git a/lib/locales/bn_IN.json b/lib/locales/bn_IN.json index 2019c39..f278a52 100644 --- a/lib/locales/bn_IN.json +++ b/lib/locales/bn_IN.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/bo.json b/lib/locales/bo.json index 7cf3020..86dc0f9 100644 --- a/lib/locales/bo.json +++ b/lib/locales/bo.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/ca.json b/lib/locales/ca.json index c5e78b7..251068a 100644 --- a/lib/locales/ca.json +++ b/lib/locales/ca.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/cs.json b/lib/locales/cs.json index 2fd98d4..7ea4299 100644 --- a/lib/locales/cs.json +++ b/lib/locales/cs.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Přístup zamítnut", "ACTION": "Akce", "ACTIONS": "Akce", diff --git a/lib/locales/da.json b/lib/locales/da.json index 356f19b..9c99fb2 100644 --- a/lib/locales/da.json +++ b/lib/locales/da.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/de.json b/lib/locales/de.json index 63a2d5f..c7bcf03 100644 --- a/lib/locales/de.json +++ b/lib/locales/de.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "n", "ACCESS_KO": "Zugriff verweigert", "ACTION": "Aktion", "ACTIONS": "Aktionen", diff --git a/lib/locales/el.json b/lib/locales/el.json index ed8dfe8..e1a76c3 100644 --- a/lib/locales/el.json +++ b/lib/locales/el.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Χώρος αποθήκευσης των διαδικτυακών σας αρχείων", "SEL_FILE": "Επιλέξτε ένα Αρχείο", "SEND": "Αποστολή", diff --git a/lib/locales/en.json b/lib/locales/en.json index 8706230..9dfe59c 100644 --- a/lib/locales/en.json +++ b/lib/locales/en.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "s", "JI_WEB_RE": "Jirafeau, your web file repository", "SEL_FILE": "Select a file", "SEND": "Send", diff --git a/lib/locales/es.json b/lib/locales/es.json index b2e0a98..96244f8 100644 --- a/lib/locales/es.json +++ b/lib/locales/es.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Acceso denegado", "ACTION": "Acción", "ACTIONS": "Acciones", diff --git a/lib/locales/et.json b/lib/locales/et.json index 52af30e..f245fa8 100644 --- a/lib/locales/et.json +++ b/lib/locales/et.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/fi.json b/lib/locales/fi.json index f9951af..1feaf85 100644 --- a/lib/locales/fi.json +++ b/lib/locales/fi.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Pääsy estetty", "ACTION": "Toiminto", "ACTIONS": "Toiminnot", diff --git a/lib/locales/fr.json b/lib/locales/fr.json index a0de9ed..94c2ae5 100644 --- a/lib/locales/fr.json +++ b/lib/locales/fr.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "s", "ACCESS_KO": "Accès interdit", "ACTION": "Action", "ACTIONS": "Actions", @@ -110,5 +111,4 @@ "HOUR": "heure", "SECOND": "seconde", "LESS_1_SEC": "moins d'une seconde" - } diff --git a/lib/locales/he.json b/lib/locales/he.json index 61690a7..8b4fc4b 100644 --- a/lib/locales/he.json +++ b/lib/locales/he.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau , אתר הקבצים שלך", "SEL_FILE": "בחר קובץ לשתף", "SEND": "שלח", diff --git a/lib/locales/hi.json b/lib/locales/hi.json index 573f586..46fba12 100644 --- a/lib/locales/hi.json +++ b/lib/locales/hi.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/hr.json b/lib/locales/hr.json index a89f10b..3badb39 100644 --- a/lib/locales/hr.json +++ b/lib/locales/hr.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, Vaše mrežno skladište datoteka", "SEL_FILE": "Odaberite datoteku", "SEND": "Pošalji", diff --git a/lib/locales/hu.json b/lib/locales/hu.json index 9ce98da..3ff26d0 100644 --- a/lib/locales/hu.json +++ b/lib/locales/hu.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Hozzáférés megtagadva", "ACTION": "Akció", "ACTIONS": "Akciók", diff --git a/lib/locales/id.json b/lib/locales/id.json index 7cf3020..86dc0f9 100644 --- a/lib/locales/id.json +++ b/lib/locales/id.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/it.json b/lib/locales/it.json index 42af95b..b4aa02d 100644 --- a/lib/locales/it.json +++ b/lib/locales/it.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Accesso negato", "ACTION": "Azione", "ACTIONS": "Azioni", diff --git a/lib/locales/ja.json b/lib/locales/ja.json index 95fc380..7afae82 100644 --- a/lib/locales/ja.json +++ b/lib/locales/ja.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/ko.json b/lib/locales/ko.json index 573f586..46fba12 100644 --- a/lib/locales/ko.json +++ b/lib/locales/ko.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/ku.json b/lib/locales/ku.json index 52af30e..f245fa8 100644 --- a/lib/locales/ku.json +++ b/lib/locales/ku.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/la.json b/lib/locales/la.json index 68dc548..ecaf2e2 100644 --- a/lib/locales/la.json +++ b/lib/locales/la.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, web filibus depositum tuum", "SEL_FILE": "Selegi filum", "SEND": "Mittere", diff --git a/lib/locales/mfe.json b/lib/locales/mfe.json index 52af30e..f245fa8 100644 --- a/lib/locales/mfe.json +++ b/lib/locales/mfe.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/ms.json b/lib/locales/ms.json index 7cf3020..86dc0f9 100644 --- a/lib/locales/ms.json +++ b/lib/locales/ms.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/nb_NO.json b/lib/locales/nb_NO.json index af9fef9..d76f626 100644 --- a/lib/locales/nb_NO.json +++ b/lib/locales/nb_NO.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, din vevfilpakkebrønn", "SEL_FILE": "Velg ei fil", "SEND": "Send", diff --git a/lib/locales/nl.json b/lib/locales/nl.json index 9882bcc..51b173d 100644 --- a/lib/locales/nl.json +++ b/lib/locales/nl.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Toegang geweigerd", "ACTION": "Actie", "ACTIONS": "Acties", diff --git a/lib/locales/pl.json b/lib/locales/pl.json index a634d32..7086c79 100644 --- a/lib/locales/pl.json +++ b/lib/locales/pl.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, twoje internetowe repozytorium plików", "SEL_FILE": "Wybierz plik", "SEND": "Wyślij", diff --git a/lib/locales/ps.json b/lib/locales/ps.json index 52af30e..f245fa8 100644 --- a/lib/locales/ps.json +++ b/lib/locales/ps.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/pt.json b/lib/locales/pt.json index ec8c7dd..047b991 100644 --- a/lib/locales/pt.json +++ b/lib/locales/pt.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Acesso negado", "ACTION": "Acção", "ACTIONS": "Acções", diff --git a/lib/locales/pt_BR.json b/lib/locales/pt_BR.json index a857855..9664420 100644 --- a/lib/locales/pt_BR.json +++ b/lib/locales/pt_BR.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, o seu repositório web de arquivos", "SEL_FILE": "Selecione um arquivo", "SEND": "Enviar", diff --git a/lib/locales/ro.json b/lib/locales/ro.json index 58d3665..4ac8997 100644 --- a/lib/locales/ro.json +++ b/lib/locales/ro.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Acces refuzat", "ACTION": "Acţiune", "ACTIONS": "Acţiuni", diff --git a/lib/locales/ru.json b/lib/locales/ru.json index 1128be3..0756839 100644 --- a/lib/locales/ru.json +++ b/lib/locales/ru.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Доступ запрещён", "ACTION": "Действие", "ACTIONS": "Действия", diff --git a/lib/locales/sh.json b/lib/locales/sh.json index 52af30e..f245fa8 100644 --- a/lib/locales/sh.json +++ b/lib/locales/sh.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/sk.json b/lib/locales/sk.json index 83b104c..99d5a6b 100644 --- a/lib/locales/sk.json +++ b/lib/locales/sk.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Prístup odoprený", "ACTION": "Akcia", "ACTIONS": "Akcie", diff --git a/lib/locales/sl.json b/lib/locales/sl.json index 52af30e..f245fa8 100644 --- a/lib/locales/sl.json +++ b/lib/locales/sl.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/sq.json b/lib/locales/sq.json index 52af30e..f245fa8 100644 --- a/lib/locales/sq.json +++ b/lib/locales/sq.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/sr.json b/lib/locales/sr.json index bcec6d4..6652d40 100644 --- a/lib/locales/sr.json +++ b/lib/locales/sr.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "Приступ одбијен", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/sv.json b/lib/locales/sv.json index 52af30e..f245fa8 100644 --- a/lib/locales/sv.json +++ b/lib/locales/sv.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/ta.json b/lib/locales/ta.json index 52af30e..f245fa8 100644 --- a/lib/locales/ta.json +++ b/lib/locales/ta.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/template.json b/lib/locales/template.json index 7b6c0ae..3b2a7cf 100644 --- a/lib/locales/template.json +++ b/lib/locales/template.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/th.json b/lib/locales/th.json index 52af30e..f245fa8 100644 --- a/lib/locales/th.json +++ b/lib/locales/th.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "", "SEL_FILE": "", "SEND": "", diff --git a/lib/locales/tr.json b/lib/locales/tr.json index 5e0c8eb..30ae866 100644 --- a/lib/locales/tr.json +++ b/lib/locales/tr.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "JI_WEB_RE": "Jirafeau, web dosya deponuz", "SEL_FILE": "Lütfen bir dosya seçiniz", "SEND": "Gönder", diff --git a/lib/locales/vi.json b/lib/locales/vi.json index 95fc380..7afae82 100644 --- a/lib/locales/vi.json +++ b/lib/locales/vi.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "", "ACTION": "", "ACTIONS": "", diff --git a/lib/locales/zh.json b/lib/locales/zh.json index 265fc59..9c211d9 100644 --- a/lib/locales/zh.json +++ b/lib/locales/zh.json @@ -1,4 +1,5 @@ { + "PLURAL_ENDING": "", "ACCESS_KO": "拒绝访问", "ACTION": "操作", "ACTIONS": "操作",