[SP-pm] Catalyst e Locale::Maketext::Simple

Geovanny Junio :: eutsiv geovanny at eutsiv.com
Thu Feb 2 04:31:39 PST 2012


Olá pessoal,

Alguns dias atrás mandei a seguinte mensagem para a lista:
http://mail.pm.org/pipermail/saopaulo-pm/2012/016261.html

Descobri que o Locale::Maketext::Simple não permite a importação novamente
dos arquivos .[pm]o no mesmo namespace, então resolvi da seguinte maneira:

./lib/MyApp/Plugin/Brazil.pm
package MyApp::Plugin::Brazil;
...
package MyApp::I18N;
Locale::Maketext::Lexicon->import(
     'pt-br'	=> [ Gettext => '/path/to/MyApp/Plugin/Brazil/I18N/pt_BR.po' ]
);

1;


Grato,
--
Geovanny Junio
Consultor de Tecnologia
geovanny (at) eutsiv.com
+55 31 9422-8885
+55 31 2519-8603
www.eutsiv.com

Este e-mail pode conter informação privilegiada e confidencial. Se você não
é destinatário da
mensagem, por favor apague a mensagem e comunique-nos o fato de imediato.

This e-mail contains information that may be
privileged and confidential. If you are not the intended recipient, please
delete the e-mail and notify us immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20120202/c7d64ce6/attachment.html>


More information about the SaoPaulo-pm mailing list