diff options
author | John Trupiano <jtrupiano@gmail.com> | 2009-09-26 15:42:18 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-09-28 14:37:31 +1300 |
commit | c9318e9010712aeae33b1dd0e8bed4795ae37caf (patch) | |
tree | 140f14f3ec0d5cbe31a5636a431a3908a2b78fef /actionpack/lib/action_view/locale | |
parent | 8ef1cd9733cd12fc4e5ea25c149956a33fdffa70 (diff) | |
download | rails-c9318e9010712aeae33b1dd0e8bed4795ae37caf.tar.gz rails-c9318e9010712aeae33b1dd0e8bed4795ae37caf.tar.bz2 rails-c9318e9010712aeae33b1dd0e8bed4795ae37caf.zip |
Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 days return '2 days'.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#3266 state:committed]
Diffstat (limited to 'actionpack/lib/action_view/locale')
-rw-r--r-- | actionpack/lib/action_view/locale/en.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/locale/en.yml b/actionpack/lib/action_view/locale/en.yml index c82cd07ec2..84d94fd700 100644 --- a/actionpack/lib/action_view/locale/en.yml +++ b/actionpack/lib/action_view/locale/en.yml @@ -91,6 +91,9 @@ over_x_years: one: "over 1 year" other: "over {{count}} years" + almost_x_years: + one: "almost 1 year" + other: "almost {{count}} years" prompts: year: "Year" month: "Month" |