mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fixed that #l_hours_short shows 2 h (#21069).
git-svn-id: http://svn.redmine.org/redmine/trunk@14766 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
202fe0b86b
commit
f29aa17f1b
@ -49,7 +49,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def l_hours_short(hours)
|
def l_hours_short(hours)
|
||||||
l(:label_f_hour_short, :value => ("%.2f h" % hours.to_f))
|
l(:label_f_hour_short, :value => ("%.2f" % hours.to_f))
|
||||||
end
|
end
|
||||||
|
|
||||||
def ll(lang, str, arg=nil)
|
def ll(lang, str, arg=nil)
|
||||||
|
|||||||
@ -154,6 +154,11 @@ class Redmine::I18nTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_l_hours_short
|
||||||
|
set_language_if_valid 'en'
|
||||||
|
assert_equal '2.00 h', l_hours_short(2.0)
|
||||||
|
end
|
||||||
|
|
||||||
def test_number_to_currency_default
|
def test_number_to_currency_default
|
||||||
set_language_if_valid 'bs'
|
set_language_if_valid 'bs'
|
||||||
assert_equal "KM -1000,20", number_to_currency(-1000.2)
|
assert_equal "KM -1000,20", number_to_currency(-1000.2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user