[Catalyst] C::C::FormBuilder and localization

Juan Camacho jc5826 at gmail.com
Mon Dec 11 15:57:04 GMT 2006


On 12/11/06, Goetz Bock <bock+catalyst at blacknet.de> wrote:
> Dear list,
>
> I'm triing to build a localisable catalyst app, using C::C::FormBuilder.
>
> But I'm not able to get it to work:
>
> - i could use c->localize to translate my forms, but using custom
>   templates does now work (see other mail)
> - and i would still have to somehow translate the messages
>
> - i could use custom teplates, probably by changing the directory to the
>   .fb templates
> - if I do this, with a messages: entry in the .fb file, i will get error
>   messages that are latin-1 while the rest of my app is utf8
>
> Is anyone using FB with a localized app or has any suggestions?

Sorry, can't help you here, but let me know if you can get it to work
with CGI::FormBuilder directly and not C::C::FormBuilder.   Also, give
the following a try if you haven't already:

    MyApp->config(
        'Controller::FormBuilder' => {
            new => {
                messages   => '/locale/fr_FR/form_messages.txt',
            },
        }
    );



More information about the Catalyst mailing list