[html-formfu] pt_br translation and some problens with .conf files

Carl Franks fireartist at gmail.com
Fri Aug 29 08:49:36 BST 2008


2008/8/28 Daniel Nicoletti <dantti85-perl at yahoo.com.br>:
>>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..

That's an uppercase /I18N/ - right?
I don't recommend you mess about with individual files with your
perl's core @INC directories.
If you're patching a module, such as in this case - keep it in a
seperate directory - under revision control - and "use lib" to add it
to your @INC path - otherwise you'll end up with a messed up perl
install.

> 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

Unfortunately, all the bullet points in that email message are BAD ADVICE.

If you scroll down to the 2nd email - from me - you'll see that I got
the application working properly by following all the points in
HTML::FormFu::Manual::Unicode - which I wrote after a lot of work
finding out how to use unicode properly with perl.

If, after following all the advice in HTML::FormFu::Manual::Unicdoe,
it doesn't seem to work - make sure that your own unicode in your
database / config files / template files is all correct by viewing
them in a utf8-aware terminal - and not using perl.

> 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

If .conf files work for you - that's ok, use them - but the only
reason your yaml files aren't working is because your application
isn't handling unicode properly - read HTML::FormFu::Manual::Unicode.
And you still didn't attach the yaml and .conf files - so I can't help
you further!

Carl



More information about the HTML-FormFu mailing list