##// END OF EJS Templates
Fixed that #l_hours_short shows 2 h (#21069)....
Jean-Philippe Lang -
r14384:f29aa17f1b4e
parent child
Show More
@@ -49,7 +49,7 module Redmine
49 end
49 end
50
50
51 def l_hours_short(hours)
51 def l_hours_short(hours)
52 l(:label_f_hour_short, :value => ("%.2f h" % hours.to_f))
52 l(:label_f_hour_short, :value => ("%.2f" % hours.to_f))
53 end
53 end
54
54
55 def ll(lang, str, arg=nil)
55 def ll(lang, str, arg=nil)
@@ -154,6 +154,11 class Redmine::I18nTest < ActiveSupport::TestCase
154 end
154 end
155 end
155 end
156
156
157 def test_l_hours_short
158 set_language_if_valid 'en'
159 assert_equal '2.00 h', l_hours_short(2.0)
160 end
161
157 def test_number_to_currency_default
162 def test_number_to_currency_default
158 set_language_if_valid 'bs'
163 set_language_if_valid 'bs'
159 assert_equal "KM -1000,20", number_to_currency(-1000.2)
164 assert_equal "KM -1000,20", number_to_currency(-1000.2)
General Comments 0
You need to be logged in to leave comments. Login now