*wow* that's great news :) looking forward to test it out.
Hope I'm not the only one that will find this new feature being of
great use!
Like that it's just one additional line in every yml and that should
be it :)
Carl, for today you're my heroe!!!
Thank you for all your patience with newbies like me (and of course
for HTML::FormFu)!
Cheers
Johannes
Am 25.06.2009 um 11:47 schrieb Carl Franks:
2009/6/25 Johannes <list...@hoerburger.org>:
---
add_localize_object: 'MyApp::I18N'
indicator: submit
elements:
...
how can I make the label of a field localized? something like:
elements:
- type: Text
name: email
label_loc: email
constraints:
- Required
- Email
didn't do the trick.
add_localize_object() expects an object, not just a class name.
I've added a new add_localize_object_from_class() method ( svn -r1535
) that you'll need to use instead.
It'll be included in the next CPAN release (hopefully in the next
week).
The second question:
How do I tell HTML::FormFu's yml's to what language it should
localize the
constraint errormessages (e.g. which /FormFu/I18N/lang.pm to use
for that
certain request)?
it doesn't guess it by itself like $c->localize() does it in
catalyst based
on the browsers language defaults).
http://search.cpan.org/~cfranks/Catalyst-Controller-HTML-FormFu-0.04003/lib/Catalyst/Controller/HTML/FormFu.pm#languages_from_context
Cheers,
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu