This project is archived and is in readonly mode.
number_to_human_size with fallback to english
Reported by vo.x | February 20th, 2009 @ 06:06 PM | in 2.x
This issue is related to issue http://rails.lighthouseapp.com/p...
If used different locale from English, helper number_to_human_size does not work out of the box which is from my point of view unfortunate situation.
Here is the patch which will fallback to default English language when locale file is not provided.
Comments and changes to this ticket
-
DHH February 22nd, 2009 @ 03:16 PM
- Assigned user set to Sven Fuchs
-
Yaroslav Markin February 22nd, 2009 @ 03:18 PM
Related discussion: http://groups.google.com/group/r...
-
Pratik March 9th, 2009 @ 01:47 PM
- State changed from new to hold
Please reassign to me in "open" once it's ready to go.
Thanks.
-
Sven Fuchs July 8th, 2009 @ 11:19 PM
- State changed from hold to wontfix
Closing this as wontfix for now. See the discussion on the rails-i18n group for explanation: http://groups.google.com/group/rails-i18n/browse_thread/thread/3878...
The gist of it is: Rails I18n requires the user to provide necessary translations in order to make locales other than :en work. In this case this can easily be done by
- adding translations manually
- adding translations from http://github.com/svenfuchs/rails-i18n
- adding fallback support through a plugin such as Globalize 2, http://github.com/joshmh/globalize2
We're considering to include fallback support to the I18n gem as an optional module that people can include. Rails might then add an environment config option to make that really easy. Should investigate existing locale fallback solution other than Globalize2 though.
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>