From acc390f6ef5c2b946bf005e4f786d8fca0821086 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 14 Jan 2014 11:13:58 -0500 Subject: [PATCH] added timeago locales, fixed timeago template error in ACP. --- public/src/forum/footer.js | 1 + public/src/translator.js | 21 ++++ public/templates/admin/header.tpl | 2 +- .../vendor/jquery/timeago/locales/README.md | 27 ++++++ .../timeago/locales/jquery.timeago.ar.js | 96 +++++++++++++++++++ .../timeago/locales/jquery.timeago.bg.js | 18 ++++ .../timeago/locales/jquery.timeago.bs.js | 49 ++++++++++ .../timeago/locales/jquery.timeago.ca.js | 18 ++++ .../timeago/locales/jquery.timeago.cy.js | 20 ++++ .../timeago/locales/jquery.timeago.cz.js | 18 ++++ .../timeago/locales/jquery.timeago.da.js | 18 ++++ .../timeago/locales/jquery.timeago.de.js | 18 ++++ .../timeago/locales/jquery.timeago.el.js | 18 ++++ .../locales/jquery.timeago.en-short.js | 20 ++++ .../timeago/locales/jquery.timeago.en.js | 20 ++++ .../timeago/locales/jquery.timeago.es.js | 18 ++++ .../timeago/locales/jquery.timeago.et.js | 18 ++++ .../timeago/locales/jquery.timeago.fa.js | 22 +++++ .../timeago/locales/jquery.timeago.fi.js | 28 ++++++ .../locales/jquery.timeago.fr-short.js | 16 ++++ .../timeago/locales/jquery.timeago.fr.js | 17 ++++ .../timeago/locales/jquery.timeago.gl.js | 18 ++++ .../timeago/locales/jquery.timeago.he.js | 18 ++++ .../timeago/locales/jquery.timeago.hr.js | 49 ++++++++++ .../timeago/locales/jquery.timeago.hu.js | 18 ++++ .../timeago/locales/jquery.timeago.hy.js | 18 ++++ .../timeago/locales/jquery.timeago.id.js | 18 ++++ .../timeago/locales/jquery.timeago.is.js | 19 ++++ .../timeago/locales/jquery.timeago.it.js | 16 ++++ .../timeago/locales/jquery.timeago.ja.js | 19 ++++ .../timeago/locales/jquery.timeago.jv.js | 18 ++++ .../timeago/locales/jquery.timeago.ko.js | 17 ++++ .../timeago/locales/jquery.timeago.lt.js | 20 ++++ .../timeago/locales/jquery.timeago.mk.js | 20 ++++ .../timeago/locales/jquery.timeago.nl.js | 20 ++++ .../timeago/locales/jquery.timeago.no.js | 18 ++++ .../timeago/locales/jquery.timeago.pl.js | 31 ++++++ .../timeago/locales/jquery.timeago.pt-br.js | 18 ++++ .../timeago/locales/jquery.timeago.pt.js | 16 ++++ .../timeago/locales/jquery.timeago.ro.js | 18 ++++ .../timeago/locales/jquery.timeago.rs.js | 49 ++++++++++ .../timeago/locales/jquery.timeago.ru.js | 34 +++++++ .../timeago/locales/jquery.timeago.sk.js | 18 ++++ .../timeago/locales/jquery.timeago.sl.js | 44 +++++++++ .../timeago/locales/jquery.timeago.sv.js | 18 ++++ .../timeago/locales/jquery.timeago.th.js | 20 ++++ .../timeago/locales/jquery.timeago.tr.js | 16 ++++ .../timeago/locales/jquery.timeago.uk.js | 34 +++++++ .../timeago/locales/jquery.timeago.uz.js | 19 ++++ .../timeago/locales/jquery.timeago.vi.js | 20 ++++ .../timeago/locales/jquery.timeago.zh-CN.js | 20 ++++ .../timeago/locales/jquery.timeago.zh-TW.js | 20 ++++ 52 files changed, 1183 insertions(+), 1 deletion(-) create mode 100644 public/vendor/jquery/timeago/locales/README.md create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ar.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.bg.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.bs.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ca.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.cy.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.cz.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.da.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.de.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.el.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.en-short.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.en.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.es.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.et.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.fa.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.fi.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.fr-short.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.fr.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.gl.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.he.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.hr.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.hu.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.hy.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.id.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.is.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.it.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ja.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.jv.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ko.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.lt.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.mk.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.nl.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.no.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.pl.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.pt-br.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.pt.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ro.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.rs.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.ru.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.sk.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.sl.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.sv.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.th.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.tr.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.uk.js create mode 100755 public/vendor/jquery/timeago/locales/jquery.timeago.uz.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.vi.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.zh-CN.js create mode 100644 public/vendor/jquery/timeago/locales/jquery.timeago.zh-TW.js diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js index 99c7d8aad7..766d56f0dc 100644 --- a/public/src/forum/footer.js +++ b/public/src/forum/footer.js @@ -6,6 +6,7 @@ define(['notifications', 'chat'], function(Notifications, Chat) { Notifications.prepareDOM(); Chat.prepareDOM(); + translator.prepareDOM(); function updateUnreadCount(count) { $('#unread-count').toggleClass('unread-count', count > 0); diff --git a/public/src/translator.js b/public/src/translator.js index 67bdd0cc6a..8dd8671599 100644 --- a/public/src/translator.js +++ b/public/src/translator.js @@ -29,6 +29,27 @@ return config.defaultLang; }; + translator.prepareDOM = function() { + // Load the appropriate timeago locale file + if (config.defaultLang !== 'en') { + // Correct NodeBB language codes to timeago codes, if necessary + var languageCode; + switch(config.defaultLang) { + case 'cs': + languageCode = 'cz'; + break; + + default: + languageCode = config.defaultLang; + break; + } + + $.getScript(RELATIVE_PATH + '/vendor/jquery/timeago/locales/jquery.timeago.' + languageCode + '.js').fail(function() { + $.getScript(RELATIVE_PATH + '/vendor/jquery/timeago/locales/jquery.timeago.en.js'); + }); + } + } + translator.get = function (key, callback) { var parsedKey = key.split(':'), languageFile = parsedKey[0]; diff --git a/public/templates/admin/header.tpl b/public/templates/admin/header.tpl index 71dbdad29a..c9103c96fd 100644 --- a/public/templates/admin/header.tpl +++ b/public/templates/admin/header.tpl @@ -18,7 +18,7 @@ - + diff --git a/public/vendor/jquery/timeago/locales/README.md b/public/vendor/jquery/timeago/locales/README.md new file mode 100644 index 0000000000..7557112da6 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/README.md @@ -0,0 +1,27 @@ +# Locale override examples for timeago + +You can represent time statements in most western languages where +a prefix and/or suffix is used. + +The default case is to use suffix only (as in English), which you +do by providing the `suffixAgo` and `suffixFromNow` settings in +the strings hash (earlier versions of timeago used the deprecated +`ago` and `fromNow` options). If present, they are used. + + 2 minutes [suffixAgo] + 2 minutes [suffixFromNow] + +In case you want to use prefix only instead of +suffix (e.g. Greek), you provide the `prefixAgo` and +`prefixFromNow` options in the strings hash and leave `suffixAgo` +and `suffixFromNow` empty or null. + + [prefixAgo] 2 minutes + [prefixFromNow] 2 minutes + +For languages where you want to use a prefix only for future +tense and prefix/suffix for past tense (for example swedish), you +can combine the prefix and suffixes as needed. + + [prefixAgo] 2 minutes [suffixAgo] + [prefixFromNow] 2 minutes diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ar.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ar.js new file mode 100644 index 0000000000..9e73d7455e --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ar.js @@ -0,0 +1,96 @@ +(function() { + function numpf(n, a) { + return a[plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5]; + } + +jQuery.timeago.settings.strings = { + prefixAgo: "منذ", + prefixFromNow: "بعد", + suffixAgo: null, + suffixFromNow: null, // null OR "من الآن" + second: function(value) { return numpf(value, [ + 'أقل من ثانية', + 'ثانية واحدة', + 'ثانيتين', + '%d ثوانٍ', + '%d ثانية', + '%d ثانية']); }, + seconds: function(value) { return numpf(value, [ + 'أقل من ثانية', + 'ثانية واحدة', + 'ثانيتين', + '%d ثوانٍ', + '%d ثانية', + '%d ثانية']); }, + minute: function(value) { return numpf(value, [ + 'أقل من دقيقة', + 'دقيقة واحدة', + 'دقيقتين', + '%d دقائق', + '%d دقيقة', + 'دقيقة']); }, + minutes: function(value) { return numpf(value, [ + 'أقل من دقيقة', + 'دقيقة واحدة', + 'دقيقتين', + '%d دقائق', + '%d دقيقة', + 'دقيقة']); }, + hour: function(value) { return numpf(value, [ + 'أقل من ساعة', + 'ساعة واحدة', + 'ساعتين', + '%d ساعات', + '%d ساعة', + '%d ساعة']); }, + hours: function(value) { return numpf(value, [ + 'أقل من ساعة', + 'ساعة واحدة', + 'ساعتين', + '%d ساعات', + '%d ساعة', + '%d ساعة']); }, + day: function(value) { return numpf(value, [ + 'أقل من يوم', + 'يوم واحد', + 'يومين', + '%d أيام', + '%d يومًا', + '%d يوم']); }, + days: function(value) { return numpf(value, [ + 'أقل من يوم', + 'يوم واحد', + 'يومين', + '%d أيام', + '%d يومًا', + '%d يوم']); }, + month: function(value) { return numpf(value, [ + 'أقل من شهر', + 'شهر واحد', + 'شهرين', + '%d أشهر', + '%d شهرًا', + '%d شهر']); }, + months: function(value) { return numpf(value, [ + 'أقل من شهر', + 'شهر واحد', + 'شهرين', + '%d أشهر', + '%d شهرًا', + '%d شهر']); }, + year: function(value) { return numpf(value, [ + 'أقل من عام', + 'عام واحد', + '%d عامين', + '%d أعوام', + '%d عامًا']); + }, + years: function(value) { return numpf(value, [ + 'أقل من عام', + 'عام واحد', + 'عامين', + '%d أعوام', + '%d عامًا', + '%d عام']);} + }; +})(); diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.bg.js b/public/vendor/jquery/timeago/locales/jquery.timeago.bg.js new file mode 100644 index 0000000000..df6b865ec6 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.bg.js @@ -0,0 +1,18 @@ +// Bulgarian +jQuery.timeago.settings.strings = { + prefixAgo: "преди", + prefixFromNow: "след", + suffixAgo: null, + suffixFromNow: null, + seconds: "по-малко от минута", + minute: "една минута", + minutes: "%d минути", + hour: "един час", + hours: "%d часа", + day: "един ден", + days: "%d дни", + month: "един месец", + months: "%d месеца", + year: "една година", + years: "%d години" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.bs.js b/public/vendor/jquery/timeago/locales/jquery.timeago.bs.js new file mode 100644 index 0000000000..01530feaa2 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.bs.js @@ -0,0 +1,49 @@ +// Bosnian +(function() { + var numpf; + + numpf = function(n, f, s, t) { + var n10; + 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: "prije", + prefixFromNow: "za", + suffixAgo: null, + suffixFromNow: null, + second: "sekund", + seconds: function(value) { + return numpf(value, "%d sekund", "%d sekunde", "%d sekundi"); + }, + minute: "oko minut", + minutes: function(value) { + return numpf(value, "%d minut", "%d minute", "%d minuta"); + }, + hour: "oko sat", + hours: function(value) { + return numpf(value, "%d sat", "%d sata", "%d sati"); + }, + day: "oko jednog dana", + days: function(value) { + return numpf(value, "%d dan", "%d dana", "%d dana"); + }, + month: "mjesec dana", + months: function(value) { + return numpf(value, "%d mjesec", "%d mjeseca", "%d mjeseci"); + }, + year: "prije godinu dana ", + years: function(value) { + return numpf(value, "%d godinu", "%d godine", "%d godina"); + }, + wordSeparator: " " + }; + +}).call(this); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ca.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ca.js new file mode 100644 index 0000000000..59014ea50a --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ca.js @@ -0,0 +1,18 @@ +// Catalan +jQuery.timeago.settings.strings = { + prefixAgo: "fa", + prefixFromNow: "d'aqui a", + suffixAgo: null, + suffixFromNow: null, + seconds: "menys d'1 minut", + minute: "1 minut", + minutes: "uns %d minuts", + hour: "1 hora", + hours: "unes %d hores", + day: "1 dia", + days: "%d dies", + month: "aproximadament un mes", + months: "%d mesos", + year: "aproximadament un any", + years: "%d anys" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.cy.js b/public/vendor/jquery/timeago/locales/jquery.timeago.cy.js new file mode 100644 index 0000000000..a285ff4e84 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.cy.js @@ -0,0 +1,20 @@ +// Welsh +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "yn ôl", + suffixFromNow: "o hyn", + seconds: "llai na munud", + minute: "am funud", + minutes: "%d munud", + hour: "tua awr", + hours: "am %d awr", + day: "y dydd", + days: "%d diwrnod", + month: "tua mis", + months: "%d mis", + year: "am y flwyddyn", + years: "%d blynedd", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.cz.js b/public/vendor/jquery/timeago/locales/jquery.timeago.cz.js new file mode 100644 index 0000000000..b7137384b1 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.cz.js @@ -0,0 +1,18 @@ +// Czech +jQuery.timeago.settings.strings = { + prefixAgo: "před", + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: null, + seconds: "méně než minutou", + minute: "minutou", + minutes: "%d minutami", + hour: "hodinou", + hours: "%d hodinami", + day: "1 dnem", + days: "%d dny", + month: "1 měsícem", + months: "%d měsíci", + year: "1 rokem", + years: "%d roky" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.da.js b/public/vendor/jquery/timeago/locales/jquery.timeago.da.js new file mode 100644 index 0000000000..ff50e873f3 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.da.js @@ -0,0 +1,18 @@ +// Danish +jQuery.timeago.settings.strings = { + prefixAgo: "for", + prefixFromNow: "om", + suffixAgo: "siden", + suffixFromNow: "", + seconds: "mindre end et minut", + minute: "ca. et minut", + minutes: "%d minutter", + hour: "ca. en time", + hours: "ca. %d timer", + day: "en dag", + days: "%d dage", + month: "ca. en måned", + months: "%d måneder", + year: "ca. et år", + years: "%d år" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.de.js b/public/vendor/jquery/timeago/locales/jquery.timeago.de.js new file mode 100644 index 0000000000..f10b06eebb --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.de.js @@ -0,0 +1,18 @@ +// German +jQuery.timeago.settings.strings = { + prefixAgo: "vor", + prefixFromNow: "in", + suffixAgo: "", + suffixFromNow: "", + seconds: "wenigen Sekunden", + minute: "etwa einer Minute", + minutes: "%d Minuten", + hour: "etwa einer Stunde", + hours: "%d Stunden", + day: "etwa einem Tag", + days: "%d Tagen", + month: "etwa einem Monat", + months: "%d Monaten", + year: "etwa einem Jahr", + years: "%d Jahren" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.el.js b/public/vendor/jquery/timeago/locales/jquery.timeago.el.js new file mode 100644 index 0000000000..61aaafe495 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.el.js @@ -0,0 +1,18 @@ +// Greek +jQuery.timeago.settings.strings = { + prefixAgo: "πριν", + prefixFromNow: "σε", + suffixAgo: "", + suffixFromNow: "", + seconds: "λιγότερο από ένα λεπτό", + minute: "περίπου ένα λεπτό", + minutes: "%d λεπτά", + hour: "περίπου μία ώρα", + hours: "περίπου %d ώρες", + day: "μία μέρα", + days: "%d μέρες", + month: "περίπου ένα μήνα", + months: "%d μήνες", + year: "περίπου ένα χρόνο", + years: "%d χρόνια" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.en-short.js b/public/vendor/jquery/timeago/locales/jquery.timeago.en-short.js new file mode 100644 index 0000000000..4cab7ff6ff --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.en-short.js @@ -0,0 +1,20 @@ +// English shortened +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "", + suffixFromNow: "", + seconds: "1m", + minute: "1m", + minutes: "%dm", + hour: "1h", + hours: "%dh", + day: "1d", + days: "%dd", + month: "1mo", + months: "%dmo", + year: "1yr", + years: "%dyr", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.en.js b/public/vendor/jquery/timeago/locales/jquery.timeago.en.js new file mode 100644 index 0000000000..3d6652c230 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.en.js @@ -0,0 +1,20 @@ +// English (Template) +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "ago", + suffixFromNow: "from now", + seconds: "less than a minute", + minute: "about a minute", + minutes: "%d minutes", + hour: "about an hour", + hours: "about %d hours", + day: "a day", + days: "%d days", + month: "about a month", + months: "%d months", + year: "about a year", + years: "%d years", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.es.js b/public/vendor/jquery/timeago/locales/jquery.timeago.es.js new file mode 100644 index 0000000000..00c6d0a6cb --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.es.js @@ -0,0 +1,18 @@ +// Spanish +jQuery.timeago.settings.strings = { + prefixAgo: "hace", + prefixFromNow: "dentro de", + suffixAgo: "", + suffixFromNow: "", + seconds: "menos de un minuto", + minute: "un minuto", + minutes: "unos %d minutos", + hour: "una hora", + hours: "%d horas", + day: "un día", + days: "%d días", + month: "un mes", + months: "%d meses", + year: "un año", + years: "%d años" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.et.js b/public/vendor/jquery/timeago/locales/jquery.timeago.et.js new file mode 100644 index 0000000000..7d17eb5c61 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.et.js @@ -0,0 +1,18 @@ +// Estonian +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "tagasi", + suffixFromNow: "pärast", + seconds: function(n, d) { return d < 0 ? "vähem kui minuti aja" : "vähem kui minut aega" }, + minute: function(n, d) { return d < 0 ? "umbes minuti aja" : "umbes minut aega" }, + minutes: function(n, d) { return d < 0 ? "%d minuti" : "%d minutit" }, + hour: function(n, d) { return d < 0 ? "umbes tunni aja" : "umbes tund aega" }, + hours: function(n, d) { return d < 0 ? "%d tunni" : "%d tundi" }, + day: function(n, d) { return d < 0 ? "umbes päeva" : "umbes päev" }, + days: function(n, d) { return d < 0 ? "%d päeva" : "%d päeva" }, + month: function(n, d) { return d < 0 ? "umbes kuu aja" : "umbes kuu aega" }, + months: function(n, d) { return d < 0 ? "%d kuu" : "%d kuud" }, + year: function(n, d) { return d < 0 ? "umbes aasta aja" : "umbes aasta aega" }, + years: function(n, d) { return d < 0 ? "%d aasta" : "%d aastat" } +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.fa.js b/public/vendor/jquery/timeago/locales/jquery.timeago.fa.js new file mode 100644 index 0000000000..0a70819d44 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.fa.js @@ -0,0 +1,22 @@ + +// Persian +// Use DIR attribute for RTL text in Persian Language for ABBR tag . +// By MB.seifollahi@gmail.com +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "پیش", + suffixFromNow: "از حال", + seconds: "کمتر از یک دقیقه", + minute: "حدود یک دقیقه", + minutes: "%d دقیقه", + hour: "حدود یک ساعت", + hours: "حدود %d ساعت", + day: "یک روز", + days: "%d روز", + month: "حدود یک ماه", + months: "%d ماه", + year: "حدود یک سال", + years: "%d سال", + wordSeparator: " " +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.fi.js b/public/vendor/jquery/timeago/locales/jquery.timeago.fi.js new file mode 100644 index 0000000000..06b12ee0bc --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.fi.js @@ -0,0 +1,28 @@ +// Finnish +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "sitten", + suffixFromNow: "tulevaisuudessa", + seconds: "alle minuutti", + minute: "minuutti", + minutes: "%d minuuttia", + hour: "tunti", + hours: "%d tuntia", + day: "päivä", + days: "%d päivää", + month: "kuukausi", + months: "%d kuukautta", + year: "vuosi", + years: "%d vuotta" +}; + +// The above is not a great localization because one would usually +// write "2 days ago" in Finnish as "2 päivää sitten", however +// one would write "2 days into the future" as "2:n päivän päästä" +// which cannot be achieved with localization support this simple. +// This is because Finnish has word suffixes (attached directly +// to the end of the word). The word "day" is "päivä" in Finnish. +// As workaround, the above localizations will say +// "2 päivää tulevaisuudessa" which is understandable but +// not as fluent. \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.fr-short.js b/public/vendor/jquery/timeago/locales/jquery.timeago.fr-short.js new file mode 100644 index 0000000000..dbfe3bb019 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.fr-short.js @@ -0,0 +1,16 @@ +// French shortened +jQuery.timeago.settings.strings = { + prefixAgo: "il y a", + prefixFromNow: "d'ici", + seconds: "moins d'une minute", + minute: "une minute", + minutes: "%d minutes", + hour: "une heure", + hours: "%d heures", + day: "un jour", + days: "%d jours", + month: "un mois", + months: "%d mois", + year: "un an", + years: "%d ans" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.fr.js b/public/vendor/jquery/timeago/locales/jquery.timeago.fr.js new file mode 100644 index 0000000000..5028342306 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.fr.js @@ -0,0 +1,17 @@ +// French +jQuery.timeago.settings.strings = { + // environ ~= about, it's optional + prefixAgo: "il y a", + prefixFromNow: "d'ici", + seconds: "moins d'une minute", + minute: "environ une minute", + minutes: "environ %d minutes", + hour: "environ une heure", + hours: "environ %d heures", + day: "environ un jour", + days: "environ %d jours", + month: "environ un mois", + months: "environ %d mois", + year: "un an", + years: "%d ans" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.gl.js b/public/vendor/jquery/timeago/locales/jquery.timeago.gl.js new file mode 100644 index 0000000000..14bc56ddc3 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.gl.js @@ -0,0 +1,18 @@ +// Galician +jQuery.timeago.settings.strings = { + prefixAgo: "hai", + prefixFromNow: "dentro de", + suffixAgo: "", + suffixFromNow: "", + seconds: "menos dun minuto", + minute: "un minuto", + minutes: "uns %d minutos", + hour: "unha hora", + hours: "%d horas", + day: "un día", + days: "%d días", + month: "un mes", + months: "%d meses", + year: "un ano", + years: "%d anos" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.he.js b/public/vendor/jquery/timeago/locales/jquery.timeago.he.js new file mode 100644 index 0000000000..9d5b6c6b00 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.he.js @@ -0,0 +1,18 @@ +// Hebrew +jQuery.timeago.settings.strings = { + prefixAgo: "לפני", + prefixFromNow: "מעכשיו", + suffixAgo: "", + suffixFromNow: "", + seconds: "פחות מדקה", + minute: "דקה", + minutes: "%d דקות", + hour: "שעה", + hours: "%d שעות", + day: "יום", + days: "%d ימים", + month: "חודש", + months: "%d חודשים", + year: "שנה", + years: "%d שנים" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.hr.js b/public/vendor/jquery/timeago/locales/jquery.timeago.hr.js new file mode 100644 index 0000000000..a85bd803bc --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.hr.js @@ -0,0 +1,49 @@ +// Croatian +(function () { + var numpf; + + numpf = function (n, f, s, t) { + var n10; + 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: "prije", + prefixFromNow: "za", + suffixAgo: null, + suffixFromNow: null, + second: "sekundu", + seconds: function (value) { + return numpf(value, "%d sekundu", "%d sekunde", "%d sekundi"); + }, + minute: "oko minutu", + minutes: function (value) { + return numpf(value, "%d minutu", "%d minute", "%d minuta"); + }, + hour: "oko jedan sat", + hours: function (value) { + return numpf(value, "%d sat", "%d sata", "%d sati"); + }, + day: "jedan dan", + days: function (value) { + return numpf(value, "%d dan", "%d dana", "%d dana"); + }, + month: "mjesec dana", + months: function (value) { + return numpf(value, "%d mjesec", "%d mjeseca", "%d mjeseci"); + }, + year: "prije godinu dana", + years: function (value) { + return numpf(value, "%d godinu", "%d godine", "%d godina"); + }, + wordSeparator: " " + }; + +}).call(this); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.hu.js b/public/vendor/jquery/timeago/locales/jquery.timeago.hu.js new file mode 100644 index 0000000000..3079c22b72 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.hu.js @@ -0,0 +1,18 @@ +// Hungarian +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: null, + seconds: "kevesebb mint egy perce", + minute: "körülbelül egy perce", + minutes: "%d perce", + hour: "körülbelül egy órája", + hours: "körülbelül %d órája", + day: "körülbelül egy napja", + days: "%d napja", + month: "körülbelül egy hónapja", + months: "%d hónapja", + year: "körülbelül egy éve", + years: "%d éve" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.hy.js b/public/vendor/jquery/timeago/locales/jquery.timeago.hy.js new file mode 100644 index 0000000000..cd6e195e20 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.hy.js @@ -0,0 +1,18 @@ +// Armenian +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "առաջ", + suffixFromNow: "հետո", + seconds: "վայրկյաններ", + minute: "մեկ րոպե", + minutes: "%d րոպե", + hour: "մեկ ժամ", + hours: "%d ժամ", + day: "մեկ օր", + days: "%d օր", + month: "մեկ ամիս", + months: "%d ամիս", + year: "մեկ տարի", + years: "%d տարի" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.id.js b/public/vendor/jquery/timeago/locales/jquery.timeago.id.js new file mode 100644 index 0000000000..296d84e241 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.id.js @@ -0,0 +1,18 @@ +// Indonesian +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "yang lalu", + suffixFromNow: "dari sekarang", + seconds: "kurang dari semenit", + minute: "sekitar satu menit", + minutes: "%d menit", + hour: "sekitar sejam", + hours: "sekitar %d jam", + day: "sehari", + days: "%d hari", + month: "sekitar sebulan", + months: "%d bulan", + year: "sekitar setahun", + years: "%d tahun" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.is.js b/public/vendor/jquery/timeago/locales/jquery.timeago.is.js new file mode 100644 index 0000000000..d8074cf01a --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.is.js @@ -0,0 +1,19 @@ +jQuery.timeago.settings.strings = { + prefixAgo: "fyrir", + prefixFromNow: "eftir", + suffixAgo: "síðan", + suffixFromNow: null, + seconds: "minna en mínútu", + minute: "mínútu", + minutes: "%d mínútum", + hour: "klukkutíma", + hours: "um %d klukkutímum", + day: "degi", + days: "%d dögum", + month: "mánuði", + months: "%d mánuðum", + year: "ári", + years: "%d árum", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.it.js b/public/vendor/jquery/timeago/locales/jquery.timeago.it.js new file mode 100644 index 0000000000..6308dd30cc --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.it.js @@ -0,0 +1,16 @@ +// Italian +jQuery.timeago.settings.strings = { + suffixAgo: "fa", + suffixFromNow: "da ora", + seconds: "meno di un minuto", + minute: "circa un minuto", + minutes: "%d minuti", + hour: "circa un'ora", + hours: "circa %d ore", + day: "un giorno", + days: "%d giorni", + month: "circa un mese", + months: "%d mesi", + year: "circa un anno", + years: "%d anni" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ja.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ja.js new file mode 100644 index 0000000000..fd81f275d0 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ja.js @@ -0,0 +1,19 @@ +// Japanese +jQuery.timeago.settings.strings = { + prefixAgo: "", + prefixFromNow: "今から", + suffixAgo: "前", + suffixFromNow: "後", + seconds: "1 分未満", + minute: "約 1 分", + minutes: "%d 分", + hour: "約 1 時間", + hours: "約 %d 時間", + day: "約 1 日", + days: "約 %d 日", + month: "約 1 月", + months: "約 %d 月", + year: "約 1 年", + years: "約 %d 年", + wordSeparator: "" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.jv.js b/public/vendor/jquery/timeago/locales/jquery.timeago.jv.js new file mode 100644 index 0000000000..98f43ef220 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.jv.js @@ -0,0 +1,18 @@ +// Javanesse (Boso Jowo) +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "kepungkur", + suffixFromNow: "seko saiki", + seconds: "kurang seko sakmenit", + minute: "kurang luwih sakmenit", + minutes: "%d menit", + hour: "kurang luwih sakjam", + hours: "kurang luwih %d jam", + day: "sedina", + days: "%d dina", + month: "kurang luwih sewulan", + months: "%d wulan", + year: "kurang luwih setahun", + years: "%d tahun" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ko.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ko.js new file mode 100644 index 0000000000..a192b97bf6 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ko.js @@ -0,0 +1,17 @@ +// Korean +jQuery.timeago.settings.strings = { + suffixAgo: "전", + suffixFromNow: "후", + seconds: "1분 이내", + minute: "1분", + minutes: "%d분", + hour: "1시간", + hours: "%d시간", + day: "하루", + days: "%d일", + month: "한 달", + months: "%d달", + year: "1년", + years: "%d년", + wordSeparator: " " +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.lt.js b/public/vendor/jquery/timeago/locales/jquery.timeago.lt.js new file mode 100644 index 0000000000..0814555763 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.lt.js @@ -0,0 +1,20 @@ +//Lithuanian +jQuery.timeago.settings.strings = { + prefixAgo: "prieš", + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: "nuo dabar", + seconds: "%d sek.", + minute: "min.", + minutes: "%d min.", + hour: "val.", + hours: "%d val.", + day: "1 d.", + days: "%d d.", + month: "mėn.", + months: "%d mėn.", + year: "metus", + years: "%d metus", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.mk.js b/public/vendor/jquery/timeago/locales/jquery.timeago.mk.js new file mode 100644 index 0000000000..9afdd46268 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.mk.js @@ -0,0 +1,20 @@ +// Macedonian +(function() { + jQuery.timeago.settings.strings={ + prefixAgo: "пред", + prefixFromNow: "за", + suffixAgo: null, + suffixFromNow: null, + seconds: "%d секунди", + minute: "%d минута", + minutes: "%d минути", + hour: "%d час", + hours: "%d часа", + day: "%d ден", + days: "%d денови" , + month: "%d месец", + months: "%d месеци", + year: "%d година", + years: "%d години" + } +})(); diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.nl.js b/public/vendor/jquery/timeago/locales/jquery.timeago.nl.js new file mode 100644 index 0000000000..cd68438cca --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.nl.js @@ -0,0 +1,20 @@ +// Dutch +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: "", + suffixAgo: "geleden", + suffixFromNow: "van nu", + seconds: "minder dan een minuut", + minute: "ongeveer een minuut", + minutes: "%d minuten", + hour: "ongeveer een uur", + hours: "ongeveer %d uur", + day: "een dag", + days: "%d dagen", + month: "ongeveer een maand", + months: "%d maanden", + year: "ongeveer een jaar", + years: "%d jaar", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.no.js b/public/vendor/jquery/timeago/locales/jquery.timeago.no.js new file mode 100644 index 0000000000..65d1b0d836 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.no.js @@ -0,0 +1,18 @@ +// Norwegian +jQuery.timeago.settings.strings = { + prefixAgo: "for", + prefixFromNow: "om", + suffixAgo: "siden", + suffixFromNow: "", + seconds: "mindre enn et minutt", + minute: "ca. et minutt", + minutes: "%d minutter", + hour: "ca. en time", + hours: "ca. %d timer", + day: "en dag", + days: "%d dager", + month: "ca. en måned", + months: "%d måneder", + year: "ca. et år", + years: "%d år" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.pl.js b/public/vendor/jquery/timeago/locales/jquery.timeago.pl.js new file mode 100644 index 0000000000..21d26fc1c1 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.pl.js @@ -0,0 +1,31 @@ +// Polish +(function() { + 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"); } + }; +})(); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.pt-br.js b/public/vendor/jquery/timeago/locales/jquery.timeago.pt-br.js new file mode 100644 index 0000000000..c72ea386a7 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.pt-br.js @@ -0,0 +1,18 @@ +// Brazilian Portuguese +jQuery.timeago.settings.strings = { + prefixAgo: "há", + prefixFromNow: "em", + suffixAgo: null, + suffixFromNow: null, + seconds: "alguns segundos", + minute: "um minuto", + minutes: "%d minutos", + hour: "uma hora", + hours: "%d horas", + day: "um dia", + days: "%d dias", + month: "um mês", + months: "%d meses", + year: "um ano", + years: "%d anos" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.pt.js b/public/vendor/jquery/timeago/locales/jquery.timeago.pt.js new file mode 100644 index 0000000000..416333c655 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.pt.js @@ -0,0 +1,16 @@ +// Portuguese +jQuery.timeago.settings.strings = { + suffixAgo: "atrás", + suffixFromNow: "a partir de agora", + seconds: "menos de um minuto", + minute: "cerca de um minuto", + minutes: "%d minutos", + hour: "cerca de uma hora", + hours: "cerca de %d horas", + day: "um dia", + days: "%d dias", + month: "cerca de um mês", + months: "%d meses", + year: "cerca de um ano", + years: "%d anos" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ro.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ro.js new file mode 100644 index 0000000000..883b548950 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ro.js @@ -0,0 +1,18 @@ +// Romanian +$.timeago.settings.strings = { + prefixAgo: "acum", + prefixFromNow: "in timp de", + suffixAgo: "", + suffixFromNow: "", + seconds: "mai putin de un minut", + minute: "un minut", + minutes: "%d minute", + hour: "o ora", + hours: "%d ore", + day: "o zi", + days: "%d zile", + month: "o luna", + months: "%d luni", + year: "un an", + years: "%d ani" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.rs.js b/public/vendor/jquery/timeago/locales/jquery.timeago.rs.js new file mode 100644 index 0000000000..1fc16135e6 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.rs.js @@ -0,0 +1,49 @@ +// Serbian +(function () { + var numpf; + + numpf = function (n, f, s, t) { + var n10; + 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: "pre", + prefixFromNow: "za", + suffixAgo: null, + suffixFromNow: null, + second: "sekund", + seconds: function (value) { + return numpf(value, "%d sekund", "%d sekunde", "%d sekundi"); + }, + minute: "oko minut", + minutes: function (value) { + return numpf(value, "%d minut", "%d minuta", "%d minuta"); + }, + hour: "oko jedan sat", + hours: function (value) { + return numpf(value, "%d sat", "%d sata", "%d sati"); + }, + day: "jedan dan", + days: function (value) { + return numpf(value, "%d dan", "%d dana", "%d dana"); + }, + month: "mesec dana", + months: function (value) { + return numpf(value, "%d mesec", "%d meseca", "%d meseci"); + }, + year: "pre godinu dana", + years: function (value) { + return numpf(value, "%d godinu", "%d godine", "%d godina"); + }, + wordSeparator: " " + }; + +}).call(this); diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.ru.js b/public/vendor/jquery/timeago/locales/jquery.timeago.ru.js new file mode 100644 index 0000000000..4cdc01b1ce --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.ru.js @@ -0,0 +1,34 @@ +// Russian +(function() { + 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: "меньше минуты", + 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 лет"); } + }; +})(); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.sk.js b/public/vendor/jquery/timeago/locales/jquery.timeago.sk.js new file mode 100644 index 0000000000..24493a2bd7 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.sk.js @@ -0,0 +1,18 @@ +// Slovak +jQuery.timeago.settings.strings = { + prefixAgo: "pred", + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: null, + seconds: "menej než minútou", + minute: "minútou", + minutes: "%d minútami", + hour: "hodinou", + hours: "%d hodinami", + day: "1 dňom", + days: "%d dňami", + month: "1 mesiacom", + months: "%d mesiacmi", + year: "1 rokom", + years: "%d rokmi" +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.sl.js b/public/vendor/jquery/timeago/locales/jquery.timeago.sl.js new file mode 100644 index 0000000000..e546c0d502 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.sl.js @@ -0,0 +1,44 @@ +// Slovenian with support for dual +(function () { + var numpf; + numpf = function (n, d, m) { + if (n == 2) { + return d; + } else { + return m; + } + }; + + jQuery.timeago.settings.strings = { + prefixAgo: "pred", + prefixFromNow: "čez", + suffixAgo: null, + suffixFromNow: null, + second: "sekundo", + seconds: function (value) { + return numpf(value, "%d sekundama", "%d sekundami"); + }, + minute: "minuto", + minutes: function (value) { + return numpf(value, "%d minutama", "%d minutami"); + }, + hour: "uro", + hours: function (value) { + return numpf(value, "%d urama", "%d urami"); + }, + day: "dnevom", + days: function (value) { + return numpf(value, "%d dnevi", "%d dnevi"); + }, + month: "enim mescem", + months: function (value) { + return numpf(value, "%d mesecema", "%d meseci"); + }, + year: "enim letom", + years: function (value) { + return numpf(value, "%d letoma", "%d leti"); + }, + wordSeparator: " " + }; + +}).call(this); diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.sv.js b/public/vendor/jquery/timeago/locales/jquery.timeago.sv.js new file mode 100644 index 0000000000..b5c3947179 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.sv.js @@ -0,0 +1,18 @@ +// Swedish +jQuery.timeago.settings.strings = { + prefixAgo: "för", + prefixFromNow: "om", + suffixAgo: "sedan", + suffixFromNow: "", + seconds: "mindre än en minut", + minute: "ungefär en minut", + minutes: "%d minuter", + hour: "ungefär en timme", + hours: "ungefär %d timmar", + day: "en dag", + days: "%d dagar", + month: "ungefär en månad", + months: "%d månader", + year: "ungefär ett år", + years: "%d år" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.th.js b/public/vendor/jquery/timeago/locales/jquery.timeago.th.js new file mode 100644 index 0000000000..894bf7fc83 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.th.js @@ -0,0 +1,20 @@ +// Thai +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: "ที่แล้ว", + suffixFromNow: "จากตอนนี้", + seconds: "น้อยกว่าหนึ่งนาที", + minute: "ประมาณหนึ่งนาที", + minutes: "%d นาที", + hour: "ประมาณหนึ่งชั่วโมง", + hours: "ประมาณ %d ชั่วโมง", + day: "หนึ่งวัน", + days: "%d วัน", + month: "ประมาณหนึ่งเดือน", + months: "%d เดือน", + year: "ประมาณหนึ่งปี", + years: "%d ปี", + wordSeparator: "", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.tr.js b/public/vendor/jquery/timeago/locales/jquery.timeago.tr.js new file mode 100644 index 0000000000..f3e3a67c84 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.tr.js @@ -0,0 +1,16 @@ +// Turkish +jQuery.extend($.timeago.settings.strings, { + suffixAgo: 'önce', + suffixFromNow: null, + seconds: '1 dakikadan', + minute: '1 dakika', + minutes: '%d dakika', + hour: '1 saat', + hours: '%d saat', + day: '1 gün', + days: '%d gün', + month: '1 ay', + months: '%d ay', + year: '1 yıl', + years: '%d yıl' +}); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.uk.js b/public/vendor/jquery/timeago/locales/jquery.timeago.uk.js new file mode 100644 index 0000000000..4382549f0f --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.uk.js @@ -0,0 +1,34 @@ +// Ukrainian +(function() { + 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: "менше хвилини", + 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 років"); } + }; +})(); \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.uz.js b/public/vendor/jquery/timeago/locales/jquery.timeago.uz.js new file mode 100755 index 0000000000..31c0c02af5 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.uz.js @@ -0,0 +1,19 @@ +//Uzbek +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: "keyin", + suffixAgo: "avval", + suffixFromNow: null, + seconds: "bir necha soniya", + minute: "1 daqiqa", + minutes: function(value) { return "%d daqiqa" }, + hour: "1 soat", + hours: function(value) { return "%d soat" }, + day: "1 kun", + days: function(value) { return "%d kun" }, + month: "1 oy", + months: function(value) { return "%d oy" }, + year: "1 yil", + years: function(value) { return "%d yil" }, + wordSeparator: " " +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.vi.js b/public/vendor/jquery/timeago/locales/jquery.timeago.vi.js new file mode 100644 index 0000000000..84d6618558 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.vi.js @@ -0,0 +1,20 @@ +// Vietnamese +jQuery.timeago.settings.strings = { + prefixAgo: 'cách đây', + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: "trước", + seconds: "chưa đến một phút", + minute: "khoảng một phút", + minutes: "%d phút", + hour: "khoảng một tiếng", + hours: "khoảng %d tiếng", + day: "một ngày", + days: "%d ngày", + month: "khoảng một tháng", + months: "%d tháng", + year: "khoảng một năm", + years: "%d năm", + wordSeparator: " ", + numbers: [] +}; diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.zh-CN.js b/public/vendor/jquery/timeago/locales/jquery.timeago.zh-CN.js new file mode 100644 index 0000000000..f39417ef29 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.zh-CN.js @@ -0,0 +1,20 @@ +// Simplified Chinese +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: "从现在开始", + suffixAgo: "之前", + suffixFromNow: null, + seconds: "不到 1 分钟", + minute: "大约 1 分钟", + minutes: "%d 分钟", + hour: "大约 1 小时", + hours: "大约 %d 小时", + day: "1 天", + days: "%d 天", + month: "大约 1 个月", + months: "%d 月", + year: "大约 1 年", + years: "%d 年", + numbers: [], + wordSeparator: "" +}; \ No newline at end of file diff --git a/public/vendor/jquery/timeago/locales/jquery.timeago.zh-TW.js b/public/vendor/jquery/timeago/locales/jquery.timeago.zh-TW.js new file mode 100644 index 0000000000..c6f8a1b1e6 --- /dev/null +++ b/public/vendor/jquery/timeago/locales/jquery.timeago.zh-TW.js @@ -0,0 +1,20 @@ +// Traditional Chinese, zh-tw +jQuery.timeago.settings.strings = { + prefixAgo: null, + prefixFromNow: "從現在開始", + suffixAgo: "之前", + suffixFromNow: null, + seconds: "不到 1 分鐘", + minute: "大約 1 分鐘", + minutes: "%d 分鐘", + hour: "大約 1 小時", + hours: "%d 小時", + day: "大約 1 天", + days: "%d 天", + month: "大約 1 個月", + months: "%d 個月", + year: "大約 1 年", + years: "%d 年", + numbers: [], + wordSeparator: "" +};