Reinitialize repository... hacked by muscleman...
This commit is contained in:
47
website_example/lang/timeago/jquery.timeago.pl.js
Normal file
47
website_example/lang/timeago/jquery.timeago.pl.js
Normal file
@@ -0,0 +1,47 @@
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function (jQuery) {
|
||||
// Polish
|
||||
function numpf (n, s, t) {
|
||||
// s - 2-4, 22-24, 32-34 ...
|
||||
// t - 5-21, 25-31, ...
|
||||
var n10 = n % 10;
|
||||
if ((n10 > 1) && (n10 < 5) && ((n > 20) || (n < 10))) {
|
||||
return s;
|
||||
} else {
|
||||
return t;
|
||||
}
|
||||
}
|
||||
|
||||
jQuery.timeago.settings.strings = {
|
||||
prefixAgo: null,
|
||||
prefixFromNow: "za",
|
||||
suffixAgo: "temu",
|
||||
suffixFromNow: null,
|
||||
seconds: "mniej niż minutę",
|
||||
minute: "minutę",
|
||||
minutes: function (value) {
|
||||
return numpf(value, "%d minuty", "%d minut");
|
||||
},
|
||||
hour: "godzinę",
|
||||
hours: function (value) {
|
||||
return numpf(value, "%d godziny", "%d godzin");
|
||||
},
|
||||
day: "dzień",
|
||||
days: "%d dni",
|
||||
month: "miesiąc",
|
||||
months: function (value) {
|
||||
return numpf(value, "%d miesiące", "%d miesięcy");
|
||||
},
|
||||
year: "rok",
|
||||
years: function (value) {
|
||||
return numpf(value, "%d lata", "%d lat");
|
||||
}
|
||||
};
|
||||
}));
|
||||
Reference in New Issue
Block a user