You should really use custom pluralization -- ie use a custom backend or
maybe use Globalize2. You'll need to redefine pluralization method in your
backend. You can use
http://www.unicode.org/cldr/data/charts/supplemental/language_plural_rules.htmlfor
quickstart.
This way, your backend will return different symbols for using them with
pluralization data. For instance, in Russian language we have [:one, :few,
:many, :other] and we'll use :other when dealing with values like 1.2

Here is an example of a backend with custom pluralization:
http://github.com/yaroslav/russian/tree/master/lib/russian/backend/advanced.rb#L94

On Sat, Dec 27, 2008 at 4:48 PM, Erwin <[email protected]> wrote:

>
> In English it's easy , it's always hours...
>
> en:
> label_f_hour: "{{count}} hours"
>
> so I18n.t(:label_f_hour, :count => 1.2)  ..... will display  "1.2
> hours"
>
> but in French,  should be  1.2 heure    , not pluralized..  , I
> wrote ...
>
> fr:
>  label_f_hour:
>    one: "{{count}} heure"
>    other: "{{count}} heures"
>
> but still displaying "1.2 heures"
>
> how should I do ?
>
> thanks fyh
>


-- 
Yaroslav Markin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to