summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/select2/select2_locale_pl.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/select2/select2_locale_pl.js')
-rw-r--r--apps/files_external/3rdparty/select2/select2_locale_pl.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/select2/select2_locale_pl.js b/apps/files_external/3rdparty/select2/select2_locale_pl.js
new file mode 100644
index 00000000000..75054e76578
--- /dev/null
+++ b/apps/files_external/3rdparty/select2/select2_locale_pl.js
@@ -0,0 +1,22 @@
+/**
+ * Select2 Polish translation.
+ *
+ * @author Jan Kondratowicz <jan@kondratowicz.pl>
+ * @author Uriy Efremochkin <efremochkin@uriy.me>
+ */
+(function ($) {
+ "use strict";
+
+ $.extend($.fn.select2.defaults, {
+ formatNoMatches: function () { return "Brak wyników"; },
+ formatInputTooShort: function (input, min) { return "Wpisz jeszcze" + character(min - input.length, "znak", "i"); },
+ formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); },
+ formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
+ formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
+ formatSearching: function () { return "Szukanie…"; }
+ });
+
+ function character (n, word, pluralSuffix) {
+ return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów");
+ }
+})(jQuery);