|
|
|
@ -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/sv", "app/i18n/nl", "app/i18n/el_GR",
|
|
|
|
|
"app/i18n/eo", "app/i18n/pl", "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, 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, pl, sv, nl, el, es, vi, zh, zh_CN, zh_TW) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
@ -45,6 +45,16 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
|
|
|
|
|
return typeof msgs[2] !== "undefined" ? msgs[2] : msgs[1];
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
case "pl":
|
|
|
|
|
return function(msgs, n) {
|
|
|
|
|
if (n === 1) {
|
|
|
|
|
return msgs[0];
|
|
|
|
|
} else if (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)) {
|
|
|
|
|
return msgs[1];
|
|
|
|
|
} else {
|
|
|
|
|
return typeof msgs[2] !== "undefined" ? msgs[2] : msgs[1];
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
@ -73,6 +83,7 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
|
|
|
|
|
it: it,
|
|
|
|
|
hr: hr,
|
|
|
|
|
hu: hu,
|
|
|
|
|
pl: pl,
|
|
|
|
|
ru: ru,
|
|
|
|
|
sv: sv,
|
|
|
|
|
nl: nl,
|
|
|
|
|