|
1 | 1 | define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
|
2 | 2 | "app/i18n/de", "app/i18n/en", "app/i18n/fa", "app/i18n/fi",
|
3 | 3 | "app/i18n/fr", "app/i18n/hr", "app/i18n/hu", "app/i18n/ru", "app/i18n/it",
|
4 |
| - "app/i18n/eo", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", |
| 4 | + "app/i18n/eo", "app/i18n/pl", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", |
5 | 5 | "app/i18n/es", "app/i18n/vi", "app/i18n/zh_CN", "app/i18n/zh_CN", "app/i18n/zh_TW"],
|
6 |
| - 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) { |
| 6 | + 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) { |
7 | 7 |
|
8 | 8 | "use strict";
|
9 | 9 |
|
@@ -45,6 +45,16 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
|
45 | 45 | return typeof msgs[2] !== "undefined" ? msgs[2] : msgs[1];
|
46 | 46 | }
|
47 | 47 | };
|
| 48 | + case "pl": |
| 49 | + return function(msgs, n) { |
| 50 | + if (n === 1) { |
| 51 | + return msgs[0]; |
| 52 | + } else if (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)) { |
| 53 | + return msgs[1]; |
| 54 | + } else { |
| 55 | + return typeof msgs[2] !== "undefined" ? msgs[2] : msgs[1]; |
| 56 | + } |
| 57 | + }; |
48 | 58 | default:
|
49 | 59 | return null;
|
50 | 60 | }
|
@@ -73,6 +83,7 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
|
73 | 83 | it: it,
|
74 | 84 | hr: hr,
|
75 | 85 | hu: hu,
|
| 86 | + pl: pl, |
76 | 87 | ru: ru,
|
77 | 88 | sv: sv,
|
78 | 89 | nl: nl,
|
|
0 commit comments