This project is archived and is in readonly mode.

#1448 ✓committed
Yaroslav Markin

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

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>

Attachments