aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorYaroslav Markin <yaroslav@markin.net>2009-01-01 21:29:11 +0300
committerJeremy Kemper <jeremy@bitsweat.net>2009-01-27 09:22:00 -0800
commit17db28f1ca0597fa1e9abdcacd934ca27d589fb9 (patch)
tree6c0ff06c86450d4f9cb0224a7786dc80c60b6a50 /actionpack/CHANGELOG
parenta1ac635d9655cd26f86593263c3e9b956d330141 (diff)
downloadrails-17db28f1ca0597fa1e9abdcacd934ca27d589fb9.tar.gz
rails-17db28f1ca0597fa1e9abdcacd934ca27d589fb9.tar.bz2
rails-17db28f1ca0597fa1e9abdcacd934ca27d589fb9.zip
Improve i18n support for number_to_human_size helper:
* now using pluralization properly * storage unit translations moved to number.human.storage_units.units * introduced number.human.storage_units.format for languages that do not follow "{{number}} {{unit}}" format (Japanese) NOTE: I18n table changed, you will need to update your translations. [#1634 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG13
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 26e40e76d5..779918ae89 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,18 @@
*2.3.0 [Edge]*
+* Improved i18n support for the number_to_human_size helper. Changes the storage_units translation data; update your translations accordingly. #1634 [Yaroslav Markin]
+ storage_units:
+ # %u is the storage unit, %n is the number (default: 2 MB)
+ format: "%n %u"
+ units:
+ byte:
+ one: "Byte"
+ other: "Bytes"
+ kb: "KB"
+ mb: "MB"
+ gb: "GB"
+ tb: "TB"
+
* Added :silence option to BenchmarkHelper#benchmark and turned log_level into a hash parameter and deprecated the old use [DHH]
* Fixed the AssetTagHelper cache to use the computed asset host as part of the cache key instead of just assuming the its a string #1299 [DHH]