i18n :few, :many, :other in rails

102 views
Skip to first unread message

pepe

unread,
Aug 19, 2009, 9:16:26 AM8/19/09
to rails-i18n
Hello,

after some hassles I got rails to use latest i18n pluralization, it's
little bit hacked for now through cloning rails branch 2-3-stable to
vendor and changing vendor/rails/activesupport/lib/active_support/
vendor/i18n gem to last version from github. Then it's easy as add
custom initializer to include pluralization backend http://gist.github.com/170342
and pluralization lambda with localization of :one, :few, :many to
localization file http://gist.github.com/169644.

Big thanks to sven and karmi for help.

Josef

PS: on karmis advice I'll try to post something more comprehensive,
when I have more time. Now back to work.

Sven Fuchs

unread,
Aug 19, 2009, 12:48:26 PM8/19/09
to rails...@googlegroups.com
Hi Pepe,

thanks for the brief writeup :)

I've tried this stuff myself and found the ticket #2871. I really
thought the patch was applied by now, but obviously I'm wrong. So,
sorry for any extra hassle you had because of that wrong information.

I've put the following gist together for people who want to try stuff
in current I18n master:

http://gist.github.com/170450

As soon as #2871 is applied one should be able to just clone the I18n
repo and build/install the gem manually. Until then we also have to
patch Rails :/
Reply all
Reply to author
Forward
0 new messages