From: Andy Allan Date: Wed, 19 Jun 2019 08:42:09 +0000 (+0200) Subject: Add translations for distance_in_time_ago X-Git-Tag: live~2552^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/74af87d9d1006a5c664398de19da31ad9c29776c?hp=31edc7dff6f4305366d0f93d35ba3fb1956bb71f Add translations for distance_in_time_ago This allows translators to accurately translate times when they need to modify the distance_in_time beyond just adding 'ago'. Refs #2255 --- diff --git a/config/locales/en.yml b/config/locales/en.yml index d7127a4e9..0281703ab 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -103,6 +103,45 @@ en: description: "Description" languages: "Languages" pass_crypt: "Password" + datetime: + distance_in_words_ago: + about_x_hours: + one: about 1 hour ago + other: about %{count} hours ago + about_x_months: + one: about 1 month ago + other: about %{count} months ago + about_x_years: + one: about 1 year ago + other: about %{count} years ago + almost_x_years: + one: almost 1 year ago + other: almost %{count} years ago + half_a_minute: half a minute ago + less_than_x_seconds: + one: less than 1 second ago + other: less than %{count} seconds ago + less_than_x_minutes: + one: less than a minute ago + other: less than %{count} minutes ago + over_x_years: + one: over 1 year ago + other: over %{count} years ago + x_seconds: + one: 1 second ago + other: "%{count} seconds ago" + x_minutes: + one: 1 minute ago + other: "%{count} minutes ago" + x_days: + one: 1 day ago + other: "%{count} days ago" + x_months: + one: 1 month ago + other: "%{count} months ago" + x_years: + one: 1 year ago + other: "%{count} years ago" printable_name: with_id: "%{id}" with_version: "%{id}, v%{version}"