This project is archived and is in readonly mode.

#1634 ✓committed
Yaroslav Markin

number_to_human_size helper: fix/introduce pluralization, add 'format' property

Reported by Yaroslav Markin | December 25th, 2008 @ 08:39 PM

number_to_human_size I18n:

FIXES

Now using pluralization properly (actually I18n did not work at all for Byte/Bytes). Had to move I18n key in translations table (number.human.storage_units.units).

FEATURES

Added number.human.storage_units.format for languages like Japanese where unit formatting is not "{{number}} {{unit}}" but rather "{{number}}{{unit}}".

NOTES

People will need to change translations for their language when using number_to_human_size. I'll try to update Sven's rails-i18n repo right after this gets commited.

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>

People watching this ticket