Permalink
Browse files

Locales

  • Loading branch information...
1 parent 27e9ccf commit 6c079ab056c52d887cb086db01925089ab6031ec @Krule Krule committed Mar 12, 2012
@@ -0,0 +1,32 @@
+// Language: Arabic
+// Translated By Khaled Attia < Khal3d.com >
+(function() {
+ function numpf(num, w, x, y, z) {
+ if( num == 0 ) {
+ return w;
+ } else if( num == 2 ) {
+ return x;
+ } else if( num >= 3 && num <= 10) {
+ return y; // 3:10
+ } else {
+ return z; // 11+
+ }
+ }
+ jQuery.timeago.settings.strings = {
+ prefixAgo: "منذ",
+ prefixFromNow: "يتبقى",
+ suffixAgo: null,
+ suffixFromNow: null, // null OR "من الآن"
+ seconds: function(value) { return numpf(value, "لحظات", "ثانيتين", "%d ثواني", "%d ثانيه"); },
+ minute: "دقيقة",
+ minutes: function(value) { return numpf(value, null, "دقيقتين", "%d دقائق", "%d دقيقة"); },
+ hour: "ساعة",
+ hours: function(value) { return numpf(value, null, "ساعتين", "%d ساعات", "%d ساعة"); },
+ day: "يوم",
+ days: function(value) { return numpf(value, null, "يومين", "%d أيام", "%d يوم"); },
+ month: "شهر",
+ months: function(value) { return numpf(value, null, "شهرين", "%d أشهر", "%d شهر"); },
+ year: "سنه",
+ years: function(value) { return numpf(value, null, "سنتين", "%d سنوات", "%d سنه"); }
+ };
+})();
@@ -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 години"
+};
@@ -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);
@@ -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"
+};
@@ -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"
+};
@@ -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"
+};
@@ -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"
+};
@@ -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 χρόνια"
+};
@@ -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"
+};
@@ -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.
@@ -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"
+};
@@ -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 שנים"
+};
@@ -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"
+};
@@ -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 տարի"
+};
@@ -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 tahun",
+ year: "sekitar setahun",
+ years: "%d tahun"
+};
@@ -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"
+};
@@ -0,0 +1,19 @@
+// Japanese
+jQuery.timeago.settings.strings = {
+ prefixAgo: "",
+ prefixFromNow: "今から",
+ suffixAgo: "",
+ suffixFromNow: "",
+ seconds: "ほんの数秒",
+ minute: "約一分",
+ minutes: "%d 分",
+ hour: "大体一時間",
+ hours: "大体 %d 時間位",
+ day: "一日",
+ days: "%d 日ほど",
+ month: "大体一ヶ月",
+ months: "%d ヶ月ほど",
+ year: "丁度一年(虎舞流w)",
+ years: "%d 年",
+ wordSeparator: ""
+};
Oops, something went wrong.

0 comments on commit 6c079ab

Please sign in to comment.