diff --git a/app/assets/javascripts/discourse/lib/formatter.js b/app/assets/javascripts/discourse/lib/formatter.js index 996cefcf448..27c93746685 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 32ea58fa76c..d89c9addcaa 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 fb1442f55cd..3d78ff6c853 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 c8f00032f5c..f752ca7ff16 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 e311fc3720a..7b4279bba34 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 e53a3981a40..2ad7ccfa802 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 6d3df9c7174..d6e555b6590 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 fb7c62c441c..145f9cac8cd 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 3bf306d8a13..27dd7e01505 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 4d6733d57c2..d89b8ad60e8 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.ru.yml b/config/locales/client.ru.yml index 0eedf418233..4da6d9fa8dc 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 edc7e1f5f8e..abb806f8d76 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"