🚀 RELEASE: HESK v3.1.1
Signed-off-by: Luke Tainton <Luke.Tainton@mail.bcu.ac.uk>
This commit is contained in:
committed by
Luke Tainton
parent
d7fc040b1e
commit
e0d6aa511b
42
hesk/js/timeago/locales/jquery.timeago.ky.js
Normal file
42
hesk/js/timeago/locales/jquery.timeago.ky.js
Normal file
@@ -0,0 +1,42 @@
|
||||
(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) {
|
||||
// Russian
|
||||
function numpf(n, f, s, t) {
|
||||
// f - 1, 21, 31, ...
|
||||
// s - 2-4, 22-24, 32-34 ...
|
||||
// t - 5-20, 25-30, ...
|
||||
var n10 = n % 10;
|
||||
if ( (n10 === 1) && ( (n === 1) || (n > 20) ) ) {
|
||||
return f;
|
||||
} else if ( (n10 > 1) && (n10 < 5) && ( (n > 20) || (n < 10) ) ) {
|
||||
return s;
|
||||
} else {
|
||||
return t;
|
||||
}
|
||||
}
|
||||
|
||||
jQuery.timeago.settings.strings = {
|
||||
prefixAgo: null,
|
||||
prefixFromNow: "через",
|
||||
suffixAgo: "мурун",
|
||||
suffixFromNow: null,
|
||||
seconds: "1 минуттан аз",
|
||||
minute: "минута",
|
||||
minutes: function(value) { return numpf(value, "%d минута", "%d минута", "%d минут"); },
|
||||
hour: "саат",
|
||||
hours: function(value) { return numpf(value, "%d саат", "%d саат", "%d саат"); },
|
||||
day: "күн",
|
||||
days: function(value) { return numpf(value, "%d күн", "%d күн", "%d күн"); },
|
||||
month: "ай",
|
||||
months: function(value) { return numpf(value, "%d ай", "%d ай", "%d ай"); },
|
||||
year: "жыл",
|
||||
years: function(value) { return numpf(value, "%d жыл", "%d жыл", "%d жыл"); }
|
||||
};
|
||||
}));
|
||||
Reference in New Issue
Block a user