I need to produce in a string the localized equivalent of "1.0" in
the I18n.default_locale
I mean I have the following string :
detail = "#{I18n.localize(('04/12/2008').to_date)};bingo
Admin;Design;cat;3;Bug;Error 281 when updating a recipe;1.0"
which is not right ... the value = 1.0 should be translated into the
equivalent I18n.default_locale
ex: if I18n.default_locale = :fr, I shoudl get : 1,0
detail = "#{I18n.localize(('04/12/2008').to_date)};bingo
Admin;Design;cat;3;Bug;Error 281 when updating a recipe;1,0"
how can I write it....I18n.t("number.format", :value => 1.0) wrong..
but what's right ?
detail = "#{I18n.localize(('04/12/2008').to_date)};bingo
Admin;Design;cat;3;Bug;Error 281 when updating a recipe;1.0"
thanks and happy new year
please reboot America on jan 10th 2009 !!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---