Rearrange source.
[turniej.git] / src / core / static / js / jquery.countdown-pl.js
diff --git a/src/core/static/js/jquery.countdown-pl.js b/src/core/static/js/jquery.countdown-pl.js
new file mode 100644 (file)
index 0000000..b94665c
--- /dev/null
@@ -0,0 +1,18 @@
+/* http://keith-wood.name/countdown.html\r
+ * Polish initialisation for the jQuery countdown extension\r
+ * Written by Pawel Lewtak lewtak@gmail.com (2008) */\r
+(function($) {\r
+       $.countdown.regional['pl'] = {\r
+               labels: ['lat', 'miesięcy', 'tygodni', 'dni', 'godzin', 'minut', 'sekund'],\r
+               labels1: ['rok', 'miesiąc', 'tydzień', 'dzień', 'godzina', 'minuta', 'sekunda'],\r
+               labels2: ['lata', 'miesiące', 'tygodnie', 'dni', 'godziny', 'minuty', 'sekundy'],\r
+               compactLabels: ['l', 'm', 't', 'd'], compactLabels1: ['r', 'm', 't', 'd'],\r
+               whichLabels: function(amount) {\r
+                       var units = amount % 10;\r
+                       var tens = Math.floor((amount % 100) / 10);\r
+                       return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 : 0));\r
+               },\r
+               digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],\r
+               timeSeparator: ':', isRTL: false};\r
+       $.countdown.setDefaults($.countdown.regional['pl']);\r
+})(jQuery);\r