human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
format:
# separator:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
precision: 3
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
# These three are to override number.format and are optional
# separator:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
format: '%n %u'
human:
format:
- precision: 2
+ precision: 6
storage_units:
format: "%n %u"
units:
format:
# separator:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
number:
format:
- precision: 3
+ precision: 6
separator: '.'
delimiter: ','
currency:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
number:
format:
- precision: 3
+ precision: 6
separator: ','
delimiter: '.'
currency:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
# These three are to override number.format and are optional
# separator:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
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)
human:
format:
delimiter: " "
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
precision: 3
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
other: "nesten %{count} år"
number:
format:
- precision: 2
+ precision: 6
separator: "."
delimiter: ","
currency:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
delimiter: '.'
human:
format:
- precision: 1
+ precision: 6
delimiter: '.'
storage_units:
format: "%n %u"
delimiter: ''
human:
format:
- precision: 1
+ precision: 6
delimiter: ''
storage_units:
format: "%n %u"
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
human:
format:
delimiter: ""
- precision: 2
+ precision: 6
# Rails 2.2
# storage_units: [байт, КБ, МБ, ГБ, ТБ]
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
precision: 3
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
# These three are to override number.format and are optional
# separator:
delimiter: ""
- # precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
precision: 3
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
format:
delimiter: '.'
separator: ','
- precision: 2
+ precision: 6
storage_units:
format: "%n %u"
units:
precision: 3
human:
format:
- precision: 1
+ precision: 6
delimiter: ""
storage_units:
format: "%n %u"
# These three are to override number.format and are optional
# separator:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
# 下列三個選項設定, 若有設定值將會取代 number.format 成為預設值
# separator:
delimiter: ""
- precision: 1
+ precision: 6
# 儲存單位輸出格式.
# %u 是儲存單位, %n 是數值 (預設值: 2 MB)
storage_units:
human:
format:
delimiter: ""
- precision: 1
+ precision: 6
storage_units:
format: "%n %u"
units:
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