[PENDING, PATCH, TESTED] Allow multiple translations to be set at once
Reported by Henrik Hodne | January 29th, 2009 @ 05:16 PM
Adding a locale parameter to the setters could be cool, like @post.title("Hello World", :en), or @post.title(:en => "Hello World"). The latter could make it possible to set multiple locales at once, like this: @post.title(:en => "Hello World", :"no-NB" => "Hei verden")
Comments and changes to this ticket
-

Sébastien Grosjean - ZenCocoon January 29th, 2009 @ 09:56 PM
- → Assigned user changed from to Josh H
- → Title changed from Add locale parameter to setters. to [PATCH, TESTED] Allow multiple translations to be set at once
- → Tag changed from locale setters translation to hash multiple patched setters tested translation
I do really miss this feature as well so have made a tested patch for it.
Josh, I've sent you a pull request as well
-

Sébastien Grosjean - ZenCocoon January 30th, 2009 @ 05:22 PM
Check my fork for last updates (merged with Josh branch)
-

Sébastien Grosjean - ZenCocoon February 2nd, 2009 @ 10:15 PM
I'm actually facing an other issue with this feature.
The attribute validation becomes tricky as it will only validates attributes from the current locale.
This could be patched as well but I would like to get some feedback or other ideas on how to handle this before going further.
-

Sébastien Grosjean - ZenCocoon February 19th, 2009 @ 05:56 PM
- → Title changed from [PATCH, TESTED] Allow multiple translations to be set at once to [PENDING, PATCH, TESTED] Allow multiple translations to be set at once
- → Tag changed from hash multiple patched setters tested translation to hash multiple patched pending setters tested translation
-

Sébastien Grosjean - ZenCocoon February 21st, 2009 @ 07:50 PM
This is now much more realist patch when used with :
I18n_multi_locales_form :
http://github.com/ZenCocoon/i18n...
I18n_multi_locales_validations :
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The second incarnation of Globalize for Rails, which will let your Rails app speak any language on Earth, and beyond.
People watching this ticket
Attachments
Referenced by
-
#9 [PATCH, TESTED] Allow to specify locale as variable
I've started a different path a while ago, you can find m...