diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index 289c265..0d53f51 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/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, diff --git a/isso/js/app/i18n/pl.js b/isso/js/app/i18n/pl.js index d1d0994..4b28bd7 100644 --- a/isso/js/app/i18n/pl.js +++ b/isso/js/app/i18n/pl.js @@ -7,11 +7,11 @@ define({ "postbox-edit": "Edytuj", "postbox-submit": "Wyślij", "postbox-notification": "Otrzymuj powiadomienia o odpowiedziach na e-mail", - - "num-comments": "Jeden komentarz\n{{ n }} komentarzy", - "no-comments": "Jeszcze nie ma komentarzy", + + "num-comments": "Jeden komentarz\n{{ n }} komentarze\n{{ n }} komentarzy", + "no-comments": "Nie ma jeszcze komentarzy", "atom-feed": "Kanał Atom", - + "comment-reply": "Odpowiedz", "comment-edit": "Edytuj", "comment-save": "Zapisz", @@ -22,13 +22,13 @@ define({ "comment-deleted": "Komentarz usunięty.", "comment-queued": "Komentarz w kolejce do moderacji.", "comment-anonymous": "Anonim", - "comment-hidden": "{{ n }} ukrytych", - + "comment-hidden": "{{ n }} ukryty\n{{ n }} ukryte\n{{ n }} ukrytych", + "date-now": "teraz", - "date-minute": "minutę temu\n{{ n }} minut temu", - "date-hour": "godzinę temu\n{{ n }} godzin temu", + "date-minute": "minutę temu\n{{ n }} minuty temu\n{{ n }} minut temu", + "date-hour": "godzinę temu\n{{ n }} godziny temu\n{{ n }} godzin temu", "date-day": "wczoraj\n{{ n }} dni temu", - "date-week": "w ubiegłym tygodniu\n{{ n }} tygodni temu", - "date-month": "w ubiegłym miesiącu\n{{ n }} miesięcy temu", - "date-year": "w ubiegłym roku\n{{ n }} lat temu" + "date-week": "w ubiegłym tygodniu\n{{ n }} tygodnie temu\n{{ n }} tygodni temu", + "date-month": "w ubiegłym miesiącu\n{{ n }} miesiące temu\n{{ n }} miesięcy temu", + "date-year": "w ubiegłym roku\n{{ n }} lata temu\n{{ n }} lat temu" });