Change in Rails' for handling localized number precision (#11118).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9782 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-06-09 07:46:07 +00:00
parent 2314e41474
commit 7fba8bc682
48 changed files with 49 additions and 48 deletions

View File

@ -76,7 +76,7 @@ ar:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -78,7 +78,7 @@ bg:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -89,7 +89,7 @@ bs:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -80,7 +80,7 @@ ca:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -81,7 +81,7 @@ cs:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -91,7 +91,7 @@ da:
format:
# separator:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -93,7 +93,7 @@ de:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ el:
precision: 3
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -81,7 +81,7 @@ en-GB:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ en:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -48,7 +48,7 @@ es:
# These three are to override number.format and are optional
# separator:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -94,7 +94,7 @@ et:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -79,7 +79,7 @@ eu:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ fa:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -64,7 +64,7 @@ fi:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -91,7 +91,7 @@ fr:
format: '%n %u'
human:
format:
precision: 2
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -32,7 +32,7 @@ gl:
format:
# separator:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -76,7 +76,7 @@ he:
number:
format:
precision: 3
precision: 6
separator: '.'
delimiter: ','
currency:

View File

@ -72,7 +72,7 @@ hr:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -97,7 +97,7 @@
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -78,7 +78,7 @@ id:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -75,7 +75,7 @@ it:
number:
format:
precision: 3
precision: 6
separator: ','
delimiter: '.'
currency:

View File

@ -96,7 +96,7 @@ ja:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -119,7 +119,7 @@ ko:
# These three are to override number.format and are optional
# separator:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -109,7 +109,7 @@ lt:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
# Storage units output formatting.
# %u is the storage unit, %n is the number (default: 2 MB)

View File

@ -72,7 +72,7 @@ lv:
human:
format:
delimiter: " "
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ mk:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -75,7 +75,7 @@ mn:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -74,7 +74,7 @@ nl:
precision: 3
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -63,7 +63,7 @@
other: "nesten %{count} år"
number:
format:
precision: 2
precision: 6
separator: "."
delimiter: ","
currency:

View File

@ -21,7 +21,7 @@ pl:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -97,7 +97,7 @@ pt-BR:
delimiter: '.'
human:
format:
precision: 1
precision: 6
delimiter: '.'
storage_units:
format: "%n %u"

View File

@ -89,7 +89,7 @@ pt:
delimiter: ''
human:
format:
precision: 1
precision: 6
delimiter: ''
storage_units:
format: "%n %u"

View File

@ -73,7 +73,7 @@ ro:
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -68,7 +68,7 @@ ru:
human:
format:
delimiter: ""
precision: 2
precision: 6
# Rails 2.2
# storage_units: [байт, КБ, МБ, ГБ, ТБ]

View File

@ -75,7 +75,7 @@ sk:
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -75,7 +75,7 @@ sl:
precision: 3
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -77,7 +77,7 @@ sq:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ sr-YU:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -77,7 +77,7 @@ sr:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -47,7 +47,7 @@ sv:
# These three are to override number.format and are optional
# separator:
delimiter: ""
# precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -74,7 +74,7 @@ th:
precision: 3
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -99,7 +99,7 @@ tr:
format:
delimiter: '.'
separator: ','
precision: 2
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -74,7 +74,7 @@ uk:
precision: 3
human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

View File

@ -48,7 +48,7 @@ vi:
# These three are to override number.format and are optional
# separator:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -87,7 +87,7 @@
# 下列三個選項設定, 若有設定值將會取代 number.format 成為預設值
# separator:
delimiter: ""
precision: 1
precision: 6
# 儲存單位輸出格式.
# %u 是儲存單位, %n 是數值 (預設值: 2 MB)
storage_units:

View File

@ -79,7 +79,7 @@ zh:
human:
format:
delimiter: ""
precision: 1
precision: 6
storage_units:
format: "%n %u"
units:

View File

@ -121,7 +121,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase
valid_languages.each do |lang|
set_language_if_valid lang
assert_nothing_raised "#{lang} failure" do
number_to_human_size(1024*1024*4)
size = number_to_human_size(257024)
assert_match /251/, size
end
end
end