diff options
Diffstat (limited to 'app/helpers/time_helper.rb')
-rw-r--r-- | app/helpers/time_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/time_helper.rb b/app/helpers/time_helper.rb index ecedbfb2a4f..cb6f60ab79b 100644 --- a/app/helpers/time_helper.rb +++ b/app/helpers/time_helper.rb @@ -8,12 +8,12 @@ module TimeHelper if minutes >= 1 if seconds % 60 == 0 - pluralize(minutes, "minute") + n_('%d minute', '%d minutes', minutes) % minutes else - [pluralize(minutes, "minute"), pluralize(seconds, "second")].to_sentence + [n_('%d minute', '%d minutes', minutes) % minutes, n_('%d second', '%d seconds', seconds) % seconds].to_sentence end else - pluralize(seconds, "second") + n_('%d second', '%d seconds', seconds) % seconds end end |