diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-25 12:06:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-25 12:06:38 +0000 |
commit | 31bffaa053fc4f3d96224a4d93b465d4eab92395 (patch) | |
tree | 5b5eba1e7e29683b7426548da5ba76c2519d11e7 /lib | |
parent | 481f70d12537333206199b4a8d2891218959f4ad (diff) | |
download | redmine-31bffaa053fc4f3d96224a4d93b465d4eab92395.tar.gz redmine-31bffaa053fc4f3d96224a4d93b465d4eab92395.zip |
Display time spent on the issue and the total time spent like estimated hours (#17550).
git-svn-id: http://svn.redmine.org/redmine/trunk@14273 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/i18n.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb index 4422bbe13..0091186f4 100644 --- a/lib/redmine/i18n.rb +++ b/lib/redmine/i18n.rb @@ -48,6 +48,10 @@ module Redmine l((hours < 2.0 ? :label_f_hour : :label_f_hour_plural), :value => ("%.2f" % hours.to_f)) end + def l_hours_short(hours) + "%.2f h" % hours.to_f + end + def ll(lang, str, value=nil) ::I18n.t(str.to_s, :value => value, :locale => lang.to_s.gsub(%r{(.+)\-(.+)$}) { "#{$1}-#{$2.upcase}" }) end |