diff --git a/app/assets/javascripts/discourse/lib/formatter.js b/app/assets/javascripts/discourse/lib/formatter.js index b15e58198..c9b0fda1a 100644 --- a/app/assets/javascripts/discourse/lib/formatter.js +++ b/app/assets/javascripts/discourse/lib/formatter.js @@ -100,7 +100,7 @@ Discourse.Formatter = (function(){ }; tinyDateYear = function(date) { - return moment(date).format("D MMM 'YY"); + return moment(date).format(I18n.t("dates.tiny.date_year")); }; // http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript diff --git a/config/locales/client.cs.yml b/config/locales/client.cs.yml index 7492ecdde..af219b2f6 100644 --- a/config/locales/client.cs.yml +++ b/config/locales/client.cs.yml @@ -59,6 +59,7 @@ cs: one: "1r" few: "%{count}r" other: "%{count}let" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 minuta" diff --git a/config/locales/client.de.yml b/config/locales/client.de.yml index 1c6279906..293c646c6 100644 --- a/config/locales/client.de.yml +++ b/config/locales/client.de.yml @@ -49,6 +49,7 @@ de: almost_x_years: one: "1J" other: "%{count}J" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 Minute" diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 43aeb0abd..4e011b3ef 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -49,6 +49,7 @@ en: almost_x_years: one: "1y" other: "%{count}y" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 min" diff --git a/config/locales/client.es.yml b/config/locales/client.es.yml index 88e588023..2b6771bfe 100644 --- a/config/locales/client.es.yml +++ b/config/locales/client.es.yml @@ -51,6 +51,7 @@ es: almost_x_years: one: "1a" other: "%{count}a" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 minuto" diff --git a/config/locales/client.fr.yml b/config/locales/client.fr.yml index cd15fd820..25fcfc385 100644 --- a/config/locales/client.fr.yml +++ b/config/locales/client.fr.yml @@ -53,6 +53,7 @@ fr: almost_x_years: one: "1y" other: "%{count}a" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 min" diff --git a/config/locales/client.it.yml b/config/locales/client.it.yml index 8ef356478..26471acf4 100644 --- a/config/locales/client.it.yml +++ b/config/locales/client.it.yml @@ -49,6 +49,7 @@ it: almost_x_years: one: "1a" other: "%{count}a" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 minuto" diff --git a/config/locales/client.ja.yml b/config/locales/client.ja.yml index aa8c850be..ba2b6fa6b 100644 --- a/config/locales/client.ja.yml +++ b/config/locales/client.ja.yml @@ -49,6 +49,7 @@ ja: almost_x_years: one: "1y" other: "%{count}y" + date_year: "D MMM 'YY" medium: x_minutes: one: "1分" diff --git a/config/locales/client.ko.yml b/config/locales/client.ko.yml index c4c64fb1c..1b64090b0 100644 --- a/config/locales/client.ko.yml +++ b/config/locales/client.ko.yml @@ -49,6 +49,7 @@ ko: almost_x_years: one: "거의 1년" other: "거의 %{count}년" + date_year: "'YY M/D" medium: x_minutes: one: "1분" diff --git a/config/locales/client.nl.yml b/config/locales/client.nl.yml index 6aedb2296..135471295 100644 --- a/config/locales/client.nl.yml +++ b/config/locales/client.nl.yml @@ -53,6 +53,7 @@ nl: almost_x_years: one: 1j other: "%{count}j" + date_year: "D MMM 'YY" medium: x_minutes: one: 1 min diff --git a/config/locales/client.pt_BR.yml b/config/locales/client.pt_BR.yml index b8aa84cec..3030ebb73 100644 --- a/config/locales/client.pt_BR.yml +++ b/config/locales/client.pt_BR.yml @@ -49,6 +49,7 @@ pt_BR: almost_x_years: one: "1y" other: "%{count}y" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 minuto" diff --git a/config/locales/client.ru.yml b/config/locales/client.ru.yml index 4c7543d7b..3b3610677 100644 --- a/config/locales/client.ru.yml +++ b/config/locales/client.ru.yml @@ -72,6 +72,7 @@ ru: other: '%{count}лет' few: '%{count}лет' many: '%{count}лет' + date_year: "D MMM 'YY" medium: x_minutes: one: '1 минута' diff --git a/config/locales/client.sv.yml b/config/locales/client.sv.yml index 697a92db5..6ef6fff34 100644 --- a/config/locales/client.sv.yml +++ b/config/locales/client.sv.yml @@ -49,6 +49,7 @@ sv: almost_x_years: one: "1y" other: "%{count}y" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 min" @@ -1456,4 +1457,4 @@ sv: uncategorized: 'Okategoriserat' lightbox: - download: "ladda ned" \ No newline at end of file + download: "ladda ned" diff --git a/config/locales/client.zh_CN.yml b/config/locales/client.zh_CN.yml index b83b7d093..ddd11c967 100644 --- a/config/locales/client.zh_CN.yml +++ b/config/locales/client.zh_CN.yml @@ -49,6 +49,7 @@ zh_CN: almost_x_years: one: "1年" other: "%{count}年" + date_year: "D MMM 'YY" medium: x_minutes: one: "1分钟" diff --git a/config/locales/client.zh_TW.yml b/config/locales/client.zh_TW.yml index 72c556a8a..51325c11d 100644 --- a/config/locales/client.zh_TW.yml +++ b/config/locales/client.zh_TW.yml @@ -49,6 +49,7 @@ zh_TW: almost_x_years: one: "1年" other: "%{count}年" + date_year: "D MMM 'YY" medium: x_minutes: one: "1 分鐘"