internationalize Discourse.Formatter.tinyDateYear

This commit is contained in:
Harry Seo 2014-01-07 21:32:33 +09:00
parent 4d0ceb7551
commit 7713dfb8b0
12 changed files with 13 additions and 2 deletions

View file

@ -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

View file

@ -59,6 +59,7 @@ cs:
one: "1r"
few: "%{count}r"
other: "%{count}let"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 minuta"

View file

@ -49,6 +49,7 @@ de:
almost_x_years:
one: "1J"
other: "%{count}J"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 Minute"

View file

@ -49,6 +49,7 @@ en:
almost_x_years:
one: "1y"
other: "%{count}y"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 min"

View file

@ -51,6 +51,7 @@ es:
almost_x_years:
one: "1a"
other: "%{count}a"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 minuto"

View file

@ -53,6 +53,7 @@ fr:
almost_x_years:
one: "1y"
other: "%{count}a"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 min"

View file

@ -49,6 +49,7 @@ it:
almost_x_years:
one: "1a"
other: "%{count}a"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1 minuto"

View file

@ -49,6 +49,7 @@ ja:
almost_x_years:
one: "1y"
other: "%{count}y"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: "1分"

View file

@ -49,6 +49,7 @@ ko:
almost_x_years:
one: "거의 1년"
other: "거의 %{count}년"
date_year: "'YY M/D"
medium:
x_minutes:
one: "1분"

View file

@ -53,6 +53,7 @@ nl:
almost_x_years:
one: 1j
other: "%{count}j"
date_year: "D MMM 'YY"
medium:
x_minutes:
one: 1 min

View file

@ -72,6 +72,7 @@ ru:
other: '%{count}лет'
few: '%{count}лет'
many: '%{count}лет'
date_year: "D MMM 'YY"
medium:
x_minutes:
one: '1 минута'

View file

@ -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"
download: "ladda ned"