[i18n] Adds the Occitan language (#568)

* Add the Occitan language

* Update i18n.js

* Update oc.js
This commit is contained in:
Quentí 2019-09-28 22:56:29 +02:00 committed by Jelmer Vernooij
parent 78997f4910
commit b9e31bf6fe
2 changed files with 41 additions and 2 deletions

View File

@ -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,

34
isso/js/app/i18n/oc.js Normal file
View File

@ -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"
});