Brian Cassidy wrote:
2010/1/29 Gabor HALASZ <halas...@freemail.hu>:
I tried localize formfu with catalyst::plugin::I18N, but I have no luck.

Can you paste your form config?

Thanks for a quick answer. I used label instead of label_loc, of course :) I rewroted my config:

constraints             Required
<elements>
    <constraints>
        min     1
        max     32
        type    Length
        message Length must be between 1 and 32 characters
    </constraints>
    filter      TrimEdges
    filter      HTMLEscape
    name        Login
    type        Text
    label_loc   Login
    <attributes>
        title   Enter your login name here
    </attributes>
</elements>
<elements>
    <constraints>
        min     1
        max     32
        type    Length
        message Length must be between 1 and 32 characters
    </constraints>
    filter      TrimEdges
    filter      HTMLEscape
    name        Password
    type        Text
    label_loc   Password
    <attributes>
        title   Enter your password here
    </attributes>
</elements>
<elements>
    value       Login
    name        Submit
    type        Submit
</elements>
indicator       submit


Remember to use "label_loc" instead of
just "label".


I got an exception

Caught exception in MyApp::Controller::Auth->login "Can't locate object method "get_handle" via package "Catalyst::Plugin::I18N" at /usr/local/lib/perl5/site_perl/5.8.9/HTML/FormFu/Localize.pm line 109. at /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Controller/HTML/FormFu/Action/FormConfig.pm line 42 at /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Controller/HTML/FormFu/Action/FormConfig.pm line 42"

Previously, I tried to localize my form with calling $form->localize in the contoller, and I got same error.


--
Gabor HALASZ <halas...@freemail.hu>

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to