i18n: Add missed strings.

This commit is contained in:
Yago González
2017-03-25 11:21:37 +01:00
committed by Tim Abbott
parent 58880b6695
commit 2f5addc174
12 changed files with 29 additions and 28 deletions

View File

@@ -24,9 +24,9 @@ exports.render_now = function (time) {
var days_old = Math.round(start_of_other_day.diffDays(start_of_today));
if (days_old === 0) {
return ["Today", true];
return [i18n.t("Today"), true];
} else if (days_old === 1) {
return ["Yesterday", true];
return [i18n.t("Yesterday"), true];
} else if (days_old >= 365) {
// For long running servers, searching backlog can get ambiguous
// without a year stamp. Only show year if message is over a year old.