]> source.dussan.org Git - redmine.git/commitdiff
Change in Rails' for handling localized number precision (#11118).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jun 2012 07:46:07 +0000 (07:46 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jun 2012 07:46:07 +0000 (07:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9782 e93f8b46-1217-0410-a6f0-8f06a7374b81

48 files changed:
config/locales/ar.yml
config/locales/bg.yml
config/locales/bs.yml
config/locales/ca.yml
config/locales/cs.yml
config/locales/da.yml
config/locales/de.yml
config/locales/el.yml
config/locales/en-GB.yml
config/locales/en.yml
config/locales/es.yml
config/locales/et.yml
config/locales/eu.yml
config/locales/fa.yml
config/locales/fi.yml
config/locales/fr.yml
config/locales/gl.yml
config/locales/he.yml
config/locales/hr.yml
config/locales/hu.yml
config/locales/id.yml
config/locales/it.yml
config/locales/ja.yml
config/locales/ko.yml
config/locales/lt.yml
config/locales/lv.yml
config/locales/mk.yml
config/locales/mn.yml
config/locales/nl.yml
config/locales/no.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/locales/pt.yml
config/locales/ro.yml
config/locales/ru.yml
config/locales/sk.yml
config/locales/sl.yml
config/locales/sq.yml
config/locales/sr-YU.yml
config/locales/sr.yml
config/locales/sv.yml
config/locales/th.yml
config/locales/tr.yml
config/locales/uk.yml
config/locales/vi.yml
config/locales/zh-TW.yml
config/locales/zh.yml
test/unit/lib/redmine/i18n_test.rb

index 7dbdb564663348a0f155540fd093f1b4bc00482a..e60d42d1ef0f6341703eb35dd8fe759b2d03b7a3 100644 (file)
@@ -76,7 +76,7 @@ ar:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index db574321f9b3c27e848ec6743b4c0ff05a13e68d..aec153d5b6fffd0a49c9521b4891824d4722fd62 100644 (file)
@@ -78,7 +78,7 @@ bg:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 7e80c3b0a0cc0478c8a3548c0864c36e41000890..2a77c29ca82d22135eedbba9ab8208709da49709 100644 (file)
@@ -89,7 +89,7 @@ bs:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 304c5123d746bae482331031f515b6e87f021f07..9f20fdedd418bcdecb3b2d2b84bbf5c183076b18 100644 (file)
@@ -80,7 +80,7 @@ ca:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 1e6a8c668ba51d40d7f7db7f08672ba69f430331..82277809346f9a01471d9cc9ff1b4ab584e5ea7b 100644 (file)
@@ -81,7 +81,7 @@ cs:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 5cb6d9084d8d43cfe1a726aa935862141084e02d..5b6fb828179f4b51e9b27be860b4547348da0132 100644 (file)
@@ -91,7 +91,7 @@ da:
       format:
         # separator:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 49d38e657656a8835f86f1d933c2fcd293b911dd..e023126bbcb5bdab93f41b8383ddbd05eb49045f 100644 (file)
@@ -93,7 +93,7 @@ de:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 88e135808213495712ec3562ff792a77ff6966c7..a2311aca0635c30c89c8c2c5bda2b7f77ec4a388 100644 (file)
@@ -77,7 +77,7 @@ el:
       precision: 3
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index 9b885ec2af87b08d37f5747c5fb5112f03ff03f2..9459870a25e0fb731de65a26bca768a057c27bb5 100644 (file)
@@ -81,7 +81,7 @@ en-GB:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 6c13393fcfcef0dfcc507f0c9bb8efc35856fc75..3d0cc88381bb9ed6c038ade401e13ef8d57c9cf6 100644 (file)
@@ -77,7 +77,7 @@ en:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 9a0a9096abf404417831f4763486d76a5cf1cf23..8443cd0af1fbee076e88f2923e0696fe3eea0066 100644 (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:
index c17fb64ffd760a6d36b0397751546613ae867c92..cd43afc5f43f37182c358fcaaa9855afab41e9af 100644 (file)
@@ -94,7 +94,7 @@ et:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 2c6eaec4d4732f6cc080b8f894b5c191e71cd537..edf17a0b9947a856d5f4aa488e2eb70e366804e9 100644 (file)
@@ -79,7 +79,7 @@ eu:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 7d071aa7f0fae5da38c7c18ede5675f4e17edc11..4145fb4f9eda6aa695babd25ef16c76f30487a2b 100644 (file)
@@ -77,7 +77,7 @@ fa:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 5b43fa8754ed66cdce8feaa53f71b5140ae12a35..6543fcb1ee71e0fdb392d41e06b7f6594bb50310 100644 (file)
@@ -64,7 +64,7 @@ fi:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index d3e2a5473d6b1056393abd1082952489a3afeac7..1925718d93504a022656b227a5434fede248da09 100644 (file)
@@ -91,7 +91,7 @@ fr:
         format: '%n %u'
     human:
       format:
-        precision: 2
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 94df2918f27d0e8631f7463591a389cb04b91c61..db97ea16184c830b4082f567e712fbb50b8f12b7 100644 (file)
@@ -32,7 +32,7 @@ gl:
       format:
         # separator:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index fde9b4e59c5cde2cd253d58951820164cd5fbc8d..6cf795343ee163c49008eac558e9712546057399 100644 (file)
@@ -76,7 +76,7 @@ he:
 
   number:
     format:
-      precision: 3
+      precision: 6
       separator: '.'
       delimiter: ','
     currency:
index e6efe76f7cdbbcc4ba3db2d9a3badd628a6de4d9..688fcbad4ee55bb4de6a6581851ebad3e3468d5b 100644 (file)
@@ -72,7 +72,7 @@ hr:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 85d7aa3f925dd73895559a8101978e80f6e0f891..7666badd9263cb97360c964bbecf1761c5d30913 100644 (file)
@@ -97,7 +97,7 @@
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 15b38c94581dbdd871e04e2e5eccd88fbd1e25c0..e344752ef037e0deae04dd46d194bced3f97abc5 100644 (file)
@@ -78,7 +78,7 @@ id:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index a5aa649f8505f0639c2884d768705feaf77c5de7..949e5cc4b15bbf08d0c1451e0dd7d0950f777d73 100644 (file)
@@ -75,7 +75,7 @@ it:
 
   number:
     format:
-      precision: 3
+      precision: 6
       separator: ','
       delimiter: '.'
     currency:
index c65cdec900adf1e51cbdeb80f7a5a7116dcb357f..8f527afb97db72a7ae84497605c7f956d89c19ca 100644 (file)
@@ -96,7 +96,7 @@ ja:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 465e4eafee0ceda30f33cc6b3fa1b0e805a0221a..ce2f6cf62bcd0130edfec0d31a46a290a1d89e9b 100644 (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:
index 9e6d434bc99fc51d18bea2e48d65bb76734b4d7e..bbbebe17b1791bc49d65c3736eef3c52ce2acc50 100644 (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)
index 6933d45de6d41c8561cf58ab92e19cdead9e4fcb..ee27f1cc6b0c1dd0f756c5cd0b6ca782cec18017 100644 (file)
@@ -72,7 +72,7 @@ lv:
     human:
       format:
         delimiter: " "
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index f88ab87cccfa046a574f440eb6b654dd65c996e9..b9f718d338785bb16aec9fc0e15b0e41c15b07ca 100644 (file)
@@ -77,7 +77,7 @@ mk:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 5e301356304321875da3f9cca15a1c675eb2d3ce..e9b23c4c69f0c626063d3f08fc66c6bca06f8d27 100644 (file)
@@ -75,7 +75,7 @@ mn:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 8b6c2e65835e6925971e68ead4cfcd5cb96374a9..3c7d63bf84b9d5030a1d5238efe6dca5b0b215d2 100644 (file)
@@ -74,7 +74,7 @@ nl:
       precision: 3
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index 404a44404a3e3d539ed8374a0c1e5e9fbcf7ae26..d5be8bf04733128cdf49ca3ab118a00dbd55bcb4 100644 (file)
@@ -63,7 +63,7 @@
         other: "nesten %{count} år"
   number:
     format:
-      precision: 2
+      precision: 6
       separator: "."
       delimiter: ","
     currency:
index 1869cdafaa2380ad70c4ed1389b200f2fe0d4117..a370b6e7f056f68857c4f33284203e558c1b1af8 100644 (file)
@@ -21,7 +21,7 @@ pl:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 3796a3651617c5bbcd91097b764288bd71a50411..b488062f6cb438893d13b7e5e1f6960d5c589b0a 100644 (file)
@@ -97,7 +97,7 @@ pt-BR:
         delimiter: '.'
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: '.'
       storage_units:
         format: "%n %u"
index ae1fed497f969363b3dc12742e44b327b20f3d45..2952c425eca9362bde77aa9e413a1c3a1386e8f9 100644 (file)
@@ -89,7 +89,7 @@ pt:
         delimiter: ''
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ''
       storage_units:
         format: "%n %u"
index 14c8a63c547035b149e0d5a40dcf991f4e551198..e4ee41e4a5bc018b581e4970469702083a53346d 100644 (file)
@@ -73,7 +73,7 @@ ro:
 
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index de1260e6a2d2637e99d3eded2e35fd6e6791fa03..a3d6f0ef7f664a1ce35984e59f87d0d08897b39d 100644 (file)
@@ -68,7 +68,7 @@ ru:
     human:
       format:
         delimiter: ""
-        precision: 2
+        precision: 6
       # Rails 2.2
       # storage_units: [байт, КБ, МБ, ГБ, ТБ]
 
index bc66a0ca051bfe4ee3f90d2a9e84adde15e4d944..d44dcd72ea688da5266ff2a47ecdb8504f99d223 100644 (file)
@@ -75,7 +75,7 @@ sk:
 
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index ca8269d18d67255311e005f9e55193db455d5d33..6e8d13bca56148b099ace5361cd4e0b2e3bbfdb6 100644 (file)
@@ -75,7 +75,7 @@ sl:
       precision: 3
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index 353278dcf0ea1483354ab70457a7049980c20759..6d2e2e1d6296ae1c059b819c96078729c659578e 100644 (file)
@@ -77,7 +77,7 @@ sq:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 06e4df19c0c12a710b891337d2aa727f1ea5ffd3..bfcd70d5e83c7614027a6169ca94fa8a8788059b 100644 (file)
@@ -77,7 +77,7 @@ sr-YU:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index c7a2e692e5f90e1e9d61ce2d99001935a1888fc2..1ff6f19e1205e95fc090080fcefaa47a7e395858 100644 (file)
@@ -77,7 +77,7 @@ sr:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index b7fc051b610a28b997182dafc1fa941bd9adda30..c39d050fabca2a66e728e22ee104cd0ea6c11e9c 100644 (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:
index 2cb817142de0ea3fad25070ad945b66bb47f3536..2638c714c29baf1c02a64ff4b2fd8e38dc992d29 100644 (file)
@@ -74,7 +74,7 @@ th:
       precision: 3
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index 65ad2bba5c2dfbc9be86c4b306bcd024f3cf4d82..eb2a3c508316b3f4f2a08abb0d9c71dc7d5240ca 100644 (file)
@@ -99,7 +99,7 @@ tr:
       format:
         delimiter: '.'
         separator: ','
-        precision: 2
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index b2536ea1eb31db35ea43a49a4e0e726eefc29a6b..25f0a0e9583650f084a6b2d837ee54cc6fe9e9d4 100644 (file)
@@ -74,7 +74,7 @@ uk:
       precision: 3
     human:
       format:
-        precision: 1
+        precision: 6
         delimiter: ""
       storage_units:
         format: "%n %u"
index 75e821b422411ad555b1f7aa573d47a59d87d39c..62e6bccb7b0be078194cc787059aa2755541448e 100644 (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:
index 62579d305752cb19549186536213c4a92f7a3acd..0bbac61053aa470d47a2eba7ea4429e4bdd5a75a 100644 (file)
@@ -87,7 +87,7 @@
         # 下列三個選項設定, 若有設定值將會取代 number.format 成為預設值
         # separator:
         delimiter: ""
-        precision: 1
+        precision: 6
         # 儲存單位輸出格式.
         # %u 是儲存單位, %n 是數值 (預設值: 2 MB)
       storage_units:
index 6d84ebc31ed6534199f5b67231451e9afabc1c3d..86d59f26bbfc2ee8b6e894d975091b3ed89db6de 100644 (file)
@@ -79,7 +79,7 @@ zh:
     human:
       format:
         delimiter: ""
-        precision: 1
+        precision: 6
       storage_units:
         format: "%n %u"
         units:
index 9c7d92849e4b25becf77d972774f1633d367c0c6..0b7ee20f07f4f17c2c82abe84b286b710fb5e62e 100644 (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