Hi Gabor,
thanks for your reply. Unfortunately, that doesn't seem to work. The
languages method still returns 'en' as a selected language...

One thing to mention:
I'm setting the Catalyst languages in Auto action of the Root controller,
loading the preference from session.

2012/7/18 Gabor HALASZ <halas...@freemail.hu>

> On 7/17/2012 4:07 PM, Jan Grmela wrote:
>
>> Hi there,
>> I'm just in process of implementation translations to our new app.
>> We're using Catalyst with Catalyst::Controller::HTML::FromFu and
>> Template Toolkit as a templating engine along with
>> Catalyst::Plugin::I18N to localize our app.
>>
>> The base translation is done using a plain strings (not translation
>> keys). So for "Sign In", we've got in the cs.po file "Přihlásit se"
>> (in Czech).
>>
>> The problem we have is the template & controlller translation work
>> fine (the text after and before the form is translated) but we can't
>> make FormFu to use the non-english translated file.
>>
>> =========
>> Our config:
>> =========
>> 'Controller::HTML::FormFu' =>  {
>>                 constructor => {
>>                                 render_method   => 'tt',
>>
>
> Hi!
>
> Try to insert next line here:
>
>                                 languages       => [ 'cs', ],
>
>
>
>
>
>
>
>                          tt_args => {
>>                                 ENCODING => 'UTF-8'
>>                         }
>>                 },
>>                 languages_from_context  => 1,
>>                 localize_from_context   => 1,
>> },
>>
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu@lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>



-- 
Jan Grmela
jan.grm...@imakers.cz
+420 608 110 686

iMakers, s.r.o.
Absolonova 725/81, Brno, 62400, Czech Republic

ICO/Id: 29228875
DIC/VAT No: CZ29228875
_______________________________________________
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