[Feature] Validation and form to work nicer with locales
Reported by Sébastien Grosjean - ZenCocoon | February 17th, 2009 @ 08:37 PM
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 ?
Comments and changes to this ticket
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.