From b9e31bf6fe457efabc1085f67d576c8c2d7da2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Sat, 28 Sep 2019 22:56:29 +0200 Subject: [PATCH] [i18n] Adds the Occitan language (#568) * Add the Occitan language * Update i18n.js * Update oc.js --- isso/js/app/i18n.js | 9 +++++++-- isso/js/app/i18n/oc.js | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 isso/js/app/i18n/oc.js diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index 54ec69b..97806bd 100644 --- a/isso/js/app/i18n.js +++ b/isso/js/app/i18n.js @@ -1,9 +1,9 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da", "app/i18n/de", "app/i18n/en", "app/i18n/fa", "app/i18n/fi", "app/i18n/fr", "app/i18n/hr", "app/i18n/hu", "app/i18n/ru", "app/i18n/it", - "app/i18n/eo", "app/i18n/pl", "app/i18n/sk", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", + "app/i18n/eo", "app/i18n/oc" "app/i18n/pl", "app/i18n/sk", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", "app/i18n/es", "app/i18n/vi", "app/i18n/zh_CN", "app/i18n/zh_CN", "app/i18n/zh_TW"], - function(config, bg, cs, da, de, en, fa, fi, fr, hr, hu, ru, it, eo, pl, sk, sv, nl, el, es, vi, zh, zh_CN, zh_TW) { + function(config, bg, cs, da, de, en, fa, fi, fr, hr, hu, ru, it, eo, oc, pl, sk, sv, nl, el, es, vi, zh, zh_CN, zh_TW) { "use strict"; @@ -45,6 +45,10 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da", return typeof msgs[2] !== "undefined" ? msgs[2] : msgs[1]; } }; + case "oc": + return function(msgs, n) { + return msgs[n > 1 ? 1 : 0]; + }; case "pl": return function(msgs, n) { if (n === 1) { @@ -93,6 +97,7 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da", it: it, hr: hr, hu: hu, + oc: oc, pl: pl, ru: ru, sk: sk, diff --git a/isso/js/app/i18n/oc.js b/isso/js/app/i18n/oc.js new file mode 100644 index 0000000..a9bf90d --- /dev/null +++ b/isso/js/app/i18n/oc.js @@ -0,0 +1,34 @@ +define({ + "postbox-text": "Escriure lo comentari aquí (almens 3 caractèrs)", + "postbox-author": "Nom (opcional)", + "postbox-email": "Corrièl (opcional)", + "postbox-website": "Site web (opcional)", + "postbox-preview": "Apercebut", + "postbox-edit": "Modificar", + "postbox-submit": "Enviar", + "postbox-notification": "S'abonar per corrièl a las notificacions de responsas", + + "num-comments": "Un comentari\n{{ n }} comentaris", + "no-comments": "Cap de comentari pel moment", + "atom-feed": "Flux Atom", + + "comment-reply": "Respondre", + "comment-edit": "Modificar", + "comment-save": "Salvar", + "comment-delete": "Suprimir", + "comment-confirm": "Confirmar", + "comment-close": "Tampar", + "comment-cancel": "Anullar", + "comment-deleted": "Comentari suprimit.", + "comment-queued": "Comentari en espèra de moderacion.", + "comment-anonymous": "Anonim", + "comment-hidden": "1 rescondut\n{{ n }} resconduts", + + "date-now": "ara meteis", + "date-minute": "fa una minuta \nfa {{ n }} minutas", + "date-hour": "fa una ora\nfa {{ n }} oras", + "date-day": "Ièr\nfa {{ n }} jorns", + "date-week": "la setmana passada\nfa {{ n }} setmanas", + "date-month": "lo mes passat\nfa {{ n }} meses", + "date-year": "l'an passat\nfa {{ n }} ans" +});