diff --git a/app/assets/javascripts/discourse/controllers/topic-entrance.js.es6 b/app/assets/javascripts/discourse/controllers/topic-entrance.js.es6 index 8e47064411c..411496b06f0 100644 --- a/app/assets/javascripts/discourse/controllers/topic-entrance.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic-entrance.js.es6 @@ -8,12 +8,12 @@ function entranceDate(dt, showTime) { if (dt.getYear() === today.getYear()) { // No year return moment(dt).format( - showTime ? I18n.t("dates.long_date_without_year") : I18n.t("dates.long_no_year_no_time") + showTime ? I18n.t("dates.long_date_without_year_with_linebreak") : I18n.t("dates.long_no_year_no_time") ); } return moment(dt).format( - showTime ? I18n.t('dates.long_date_with_year') : I18n.t('dates.long_date_with_year_without_time') + showTime ? I18n.t('dates.long_date_with_year_with_linebreak') : I18n.t('dates.long_date_with_year_without_time') ); } diff --git a/app/assets/javascripts/discourse/templates/topic-entrance.js.handlebars b/app/assets/javascripts/discourse/templates/topic-entrance.js.handlebars index 0cff876b3c5..41f86c3c293 100644 --- a/app/assets/javascripts/discourse/templates/topic-entrance.js.handlebars +++ b/app/assets/javascripts/discourse/templates/topic-entrance.js.handlebars @@ -1,6 +1,6 @@ diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index cabf4a8c3ec..ea5ea8e8285 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -38,6 +38,8 @@ en: long_date_with_year: "MMM D, 'YY LT" long_date_without_year: "MMM D, LT" long_date_with_year_without_time: "MMM D, 'YY" + long_date_without_year_with_linebreak: "MMM D
LT" + long_date_with_year_with_linebreak: "MMM D, 'YY
LT" tiny: half_a_minute: "< 1m" less_than_x_seconds: