From 99f1b9b6df57f51161e49773cb06f710d4da28bc Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 3 May 2011 12:30:33 +0200 Subject: [PATCH] fix #1165. forgot one i18n change in due_date --- app/helpers/application_helper.rb | 6 ++++-- config/locales/de.yml | 3 ++- config/locales/en.yml | 3 ++- config/locales/nl.yml | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fe325330..da26efdf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -52,8 +52,10 @@ module ApplicationHelper end else # overdue or due very soon! sound the alarm! - if days < 0 - t('todos.next_actions_due_date.overdue_by', :days => pluralize(days * -1, 'day')) + if days == -1 + t('todos.next_actions_due_date.overdue_by', :days => days * -1) + elsif days < -1 + t('todos.next_actions_due_date.overdue_by_plural', :days => days * -1) else # more than a week away - relax t('models.preference.due_in', :days => days) diff --git a/config/locales/de.yml b/config/locales/de.yml index 2b6ac7f7..13a819b5 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -400,7 +400,8 @@ de: show_today: Heute anzeigen no_actions_found_title: Keine Aktionen gefunden next_actions_due_date: - overdue_by: "\xC3\x9Cberf\xC3\xA4llig mit %{days}" + overdue_by: "\xC3\x9Cberf\xC3\xA4llig mit %{days} Tag" + overdue_by_plural: "\xC3\x9Cberf\xC3\xA4llig mit %{days} Tagen" due_today: "Heute f\xC3\xA4llig" due_in_x_days: "F\xC3\xA4llig in %{days} Tagen" due_tomorrow: "F\xC3\xA4llig morgen" diff --git a/config/locales/en.yml b/config/locales/en.yml index c6a064f9..ef039c2d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -549,7 +549,8 @@ en: due_today: Due Today due_tomorrow: Due Tomorrow due_in_x_days: "Due in %{days} days" - overdue_by: "Overdue by %{days}" + overdue_by: "Overdue by %{days} day" + overdue_by_plural: "Overdue by %{days} days" next_actions_title_additions: due_today: "due today" due_within_a_week: "due within a week" diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 212c5129..3ae33933 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -389,7 +389,8 @@ nl: show_today: Toon vandaag no_actions_found_title: Geen acties gevonden next_actions_due_date: - overdue_by: Over deadline met %{days} + overdue_by: Over deadline met %{days} dag + overdue_by_plural: Over deadline met %{days} dagen due_today: Deadline vandaag due_in_x_days: Deadline over %{days} dagen due_tomorrow: Deadline morgen