Browse Source

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
tags/2.1.0
Jean-Philippe Lang 12 years ago
parent
commit
7fba8bc682

+ 1
- 1
config/locales/ar.yml View File

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

+ 1
- 1
config/locales/bg.yml View File

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

+ 1
- 1
config/locales/bs.yml View File

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

+ 1
- 1
config/locales/ca.yml View File

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

+ 1
- 1
config/locales/cs.yml View File

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

+ 1
- 1
config/locales/da.yml View File

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

+ 1
- 1
config/locales/de.yml View File

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

+ 1
- 1
config/locales/el.yml View File

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

+ 1
- 1
config/locales/en-GB.yml View File

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

+ 1
- 1
config/locales/en.yml View File

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

+ 1
- 1
config/locales/es.yml 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:

+ 1
- 1
config/locales/et.yml View File

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

+ 1
- 1
config/locales/eu.yml View File

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

+ 1
- 1
config/locales/fa.yml View File

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

+ 1
- 1
config/locales/fi.yml View File

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

+ 1
- 1
config/locales/fr.yml View File

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

+ 1
- 1
config/locales/gl.yml View File

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

+ 1
- 1
config/locales/he.yml View File

@@ -76,7 +76,7 @@ he:

number:
format:
precision: 3
precision: 6
separator: '.'
delimiter: ','
currency:

+ 1
- 1
config/locales/hr.yml View File

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

+ 1
- 1
config/locales/hu.yml View File

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

+ 1
- 1
config/locales/id.yml View File

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

+ 1
- 1
config/locales/it.yml View File

@@ -75,7 +75,7 @@ it:

number:
format:
precision: 3
precision: 6
separator: ','
delimiter: '.'
currency:

+ 1
- 1
config/locales/ja.yml View File

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

+ 1
- 1
config/locales/ko.yml 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:

+ 1
- 1
config/locales/lt.yml 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)

+ 1
- 1
config/locales/lv.yml View File

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

+ 1
- 1
config/locales/mk.yml View File

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

+ 1
- 1
config/locales/mn.yml View File

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

+ 1
- 1
config/locales/nl.yml View File

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

+ 1
- 1
config/locales/no.yml View File

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

+ 1
- 1
config/locales/pl.yml View File

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

+ 1
- 1
config/locales/pt-BR.yml View File

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

+ 1
- 1
config/locales/pt.yml View File

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

+ 1
- 1
config/locales/ro.yml View File

@@ -73,7 +73,7 @@ ro:

human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

+ 1
- 1
config/locales/ru.yml View File

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


+ 1
- 1
config/locales/sk.yml View File

@@ -75,7 +75,7 @@ sk:

human:
format:
precision: 1
precision: 6
delimiter: ""
storage_units:
format: "%n %u"

+ 1
- 1
config/locales/sl.yml View File

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

+ 1
- 1
config/locales/sq.yml View File

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

+ 1
- 1
config/locales/sr-YU.yml View File

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

+ 1
- 1
config/locales/sr.yml View File

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

+ 1
- 1
config/locales/sv.yml 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:

+ 1
- 1
config/locales/th.yml View File

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

+ 1
- 1
config/locales/tr.yml View File

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

+ 1
- 1
config/locales/uk.yml View File

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

+ 1
- 1
config/locales/vi.yml 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:

+ 1
- 1
config/locales/zh-TW.yml View File

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

+ 1
- 1
config/locales/zh.yml View File

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

+ 2
- 1
test/unit/lib/redmine/i18n_test.rb 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

Loading…
Cancel
Save