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.

[Feature] Validation and form to work nicer with locales

#10

Hi,

I'm facing more needs and would like to know if this work would feats as part as Globalize 2.

1) Validation depending on locales

Validation are actually only looking for your actual locale, it's then not natural to validates something only for certain locales, all of them, ...

This would also make multiple locales settings a fully working feature, which personally brings wonderful usage to the final user.

I propose something like a new locale parameter to the validators but are still looking at the best way to do this to keep easily maintainable as rails, plugins and gems updates and plays with validators as well

2) Form helpers

As with validations, form actually relay on the actual locale, I've already came up for personal use with a solution allowing to submit more translations at once with useful form helpers.

This can be done the same way as index is already done. The main remaining problems is the maintainability of it as it's monkey patching rails. Any ideas on improving this is more than welcome ;-)

Conclusion:

I'll be glad to get feedback on this features and to know if there is an interest in it as part of Globalize2 ? in general usage ?

Reported by Sébastien Grosjean - ZenCocoon · February 17th, 2009 @ 08:37 PM

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

Activity

  1. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon
    • Tag changed from discussion, features, proposal to discussion, features, form, helpers, locale, proposal, validation

    First bit of public code to handle multi locales forms :

    http://github.com/ZenCocoon/i18n_multi_locales_form/tree/master

    February 20th, 2009 @ 06:53 PM

  2. Sébastien Grosjean - ZenCocoon
  3. 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.