Merge pull request #1795 from ok-harry/master
internationalize Discourse.Formatter.tinyDateYear
This commit is contained in:
commit
e20f5f89e6
15 changed files with 16 additions and 2 deletions
|
@ -100,7 +100,7 @@ Discourse.Formatter = (function(){
|
||||||
};
|
};
|
||||||
|
|
||||||
tinyDateYear = function(date) {
|
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
|
// http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript
|
||||||
|
|
|
@ -59,6 +59,7 @@ cs:
|
||||||
one: "1r"
|
one: "1r"
|
||||||
few: "%{count}r"
|
few: "%{count}r"
|
||||||
other: "%{count}let"
|
other: "%{count}let"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 minuta"
|
one: "1 minuta"
|
||||||
|
|
|
@ -49,6 +49,7 @@ de:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1J"
|
one: "1J"
|
||||||
other: "%{count}J"
|
other: "%{count}J"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 Minute"
|
one: "1 Minute"
|
||||||
|
|
|
@ -49,6 +49,7 @@ en:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1y"
|
one: "1y"
|
||||||
other: "%{count}y"
|
other: "%{count}y"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 min"
|
one: "1 min"
|
||||||
|
|
|
@ -51,6 +51,7 @@ es:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1a"
|
one: "1a"
|
||||||
other: "%{count}a"
|
other: "%{count}a"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 minuto"
|
one: "1 minuto"
|
||||||
|
|
|
@ -53,6 +53,7 @@ fr:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1y"
|
one: "1y"
|
||||||
other: "%{count}a"
|
other: "%{count}a"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 min"
|
one: "1 min"
|
||||||
|
|
|
@ -49,6 +49,7 @@ it:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1a"
|
one: "1a"
|
||||||
other: "%{count}a"
|
other: "%{count}a"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 minuto"
|
one: "1 minuto"
|
||||||
|
|
|
@ -49,6 +49,7 @@ ja:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1y"
|
one: "1y"
|
||||||
other: "%{count}y"
|
other: "%{count}y"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1分"
|
one: "1分"
|
||||||
|
|
|
@ -49,6 +49,7 @@ ko:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "거의 1년"
|
one: "거의 1년"
|
||||||
other: "거의 %{count}년"
|
other: "거의 %{count}년"
|
||||||
|
date_year: "'YY M/D"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1분"
|
one: "1분"
|
||||||
|
|
|
@ -53,6 +53,7 @@ nl:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: 1j
|
one: 1j
|
||||||
other: "%{count}j"
|
other: "%{count}j"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: 1 min
|
one: 1 min
|
||||||
|
|
|
@ -49,6 +49,7 @@ pt_BR:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1y"
|
one: "1y"
|
||||||
other: "%{count}y"
|
other: "%{count}y"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 minuto"
|
one: "1 minuto"
|
||||||
|
|
|
@ -72,6 +72,7 @@ ru:
|
||||||
other: '%{count}лет'
|
other: '%{count}лет'
|
||||||
few: '%{count}лет'
|
few: '%{count}лет'
|
||||||
many: '%{count}лет'
|
many: '%{count}лет'
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: '1 минута'
|
one: '1 минута'
|
||||||
|
|
|
@ -49,6 +49,7 @@ sv:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1y"
|
one: "1y"
|
||||||
other: "%{count}y"
|
other: "%{count}y"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 min"
|
one: "1 min"
|
||||||
|
@ -1456,4 +1457,4 @@ sv:
|
||||||
uncategorized: 'Okategoriserat'
|
uncategorized: 'Okategoriserat'
|
||||||
|
|
||||||
lightbox:
|
lightbox:
|
||||||
download: "ladda ned"
|
download: "ladda ned"
|
||||||
|
|
|
@ -49,6 +49,7 @@ zh_CN:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1年"
|
one: "1年"
|
||||||
other: "%{count}年"
|
other: "%{count}年"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1分钟"
|
one: "1分钟"
|
||||||
|
|
|
@ -49,6 +49,7 @@ zh_TW:
|
||||||
almost_x_years:
|
almost_x_years:
|
||||||
one: "1年"
|
one: "1年"
|
||||||
other: "%{count}年"
|
other: "%{count}年"
|
||||||
|
date_year: "D MMM 'YY"
|
||||||
medium:
|
medium:
|
||||||
x_minutes:
|
x_minutes:
|
||||||
one: "1 分鐘"
|
one: "1 分鐘"
|
||||||
|
|
Reference in a new issue