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: human:
format: format:
delimiter: "" delimiter: ""
precision: 1 precision: 6
storage_units: storage_units:
format: "%n %u" format: "%n %u"
units: units:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -121,7 +121,8 @@ class Redmine::I18nTest < ActiveSupport::TestCase
valid_languages.each do |lang| valid_languages.each do |lang|
set_language_if_valid lang set_language_if_valid lang
assert_nothing_raised "#{lang} failure" do 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 end
end end