Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

[PENDING, PATCH, TESTED] Allow multiple translations to be set at once

#6

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")

Reported by Henrik Hodne · January 29th, 2009 @ 05:16 PM

State: new
Milestone: none
Assigned to: Josh H Josh H

Activity

  1. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon
    • 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
    • Assigned user set to Josh H

    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

    January 29th, 2009 @ 09:56 PM

  2. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon

    Check my fork for last updates (merged with Josh branch)

    January 30th, 2009 @ 05:22 PM

  3. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon

    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.

    February 2nd, 2009 @ 10:15 PM

  4. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon
    • 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

    February 19th, 2009 @ 05:56 PM

  5. Sébastien Grosjean - ZenCocoon

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.