>Running a simple script with languages('pt_br') works OK for me.
>Are you sure the pt_br.pm file is in your @INC path?
well i created the pt_br file, but i might put it into the wrong place
which seems stupid cause i pasted it on the place all lang.pm was
/usr/local/share/pel/5.10/HTML/FormFu/i18n/
i search all my /usr for a es.pm file.. and only find there..
and here you can find someone with the same problem, .yml to .conf
http://grokbase.com/topic/2007/09/27/html-formfu-catalyst-formfu-and-unicode/Fz1iiCJALrQjSBxuyUjNL8ddcM8
The yml had only a submit and a text field, but
i got worst that if i didn't had unicode
i just switched to .conf and everything is perfect here
except the my translated file
Thanks,
Daniel
----- Mensagem original ----
De: Carl Franks <[EMAIL PROTECTED]>
Para: "HTML Form Creation, Rendering and Validation Framework"
<html-formfu@lists.scsys.co.uk>
Enviadas: Quinta-feira, 28 de Agosto de 2008 17:10:01
Assunto: Re: [html-formfu] pt_br translation and some problens with .conf files
2008/8/28 Daniel Nicoletti <[EMAIL PROTECTED]>:
> btw i have two issues... i can't use
> pt_br :P
>
> with that patch i can use a line like languages pt_br
> but it's loading es.pm instead of my file.. :(
Running a simple script with languages('pt_br') works OK for me.
Are you sure the pt_br.pm file is in your @INC path?
If that's not the problem, all I can suggest is you try upgrading to
the latest Locale::Maketext - that's what decides which files to use
based on what you set languages() to.
> and also if i use .yml file i got a messy page
> to have a nice utf8 page only with a .conf file..
I've no idea what you mean!
If you mean the data structure isn't what you expect, you can see what
your yaml file is being interpreted as, with this:
use YAML::Syck 'LoadFile';
use Data::Dumper;
print Dumper( LoadFile( 'test.yml' ) );
> and btw when i sub someaction :FormConfig { ...}
> on catalyst it doesn't search form a .conf file
> so i have to specify FormConfig('/path_to_.conf') { ... }
You can set the file extension that's used, by setting this in your
catalyst app config file:
Controller::HTML::FormFu:
config_file_ext: '.conf'
Although, I plan to get round this by changing
Catalyst-Controller-HTML-FormFu to use Config::Any's load_stems()
instead of load_files()
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua
cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu