This project is archived and is in readonly mode.
Add i18n for number_to_human_size() storage units
Reported by Yaroslav Markin | November 23rd, 2008 @ 02:38 PM | in 2.x
Patch adds translation for storage units (previously STORAGE_UNITS constant) used in number_to_human_size helper.
After a small discussion with Sven we decided that there is no need of implementing "default" translation in code ( I18n.translate(:'number.human.storage_units', ...) rescue %w(Bytes KB ...) ) as it will result in having duplicate translations in code and en.yml.
Comments and changes to this ticket
-
Repository November 23rd, 2008 @ 09:12 PM
- State changed from new to committed
- Tag changed from actionpack, helpers, i18n to actionpack, helpers, i18n, patch
(from [d36158794b19ee8ea49d74061218b37d4301f0f9]) Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.
[#1448 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
-
Repository November 23rd, 2008 @ 09:12 PM
(from [68d2130a6b0e2bcc5e9a0d265bcae75fdcd18bb3]) Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.
[#1448 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 1448 Add i18n for number_to_human_size() storage units [#1448 state:committed]
- 1448 Add i18n for number_to_human_size() storage units [#1448 state:committed]
- 820 number_to_human_size broken if current locale doesn't define number.format.separator or number.human.format.separator This has been already fixed by #1448, please close.
- 2029 number_to_human_size with fallback to english This issue is related to issue http://rails.lighthouseapp...