Re: [Catalyst] Localizing output in Catalyst plugins using $c->loc

2012-09-03 Thread Tomas Doran

On 3 Sep 2012, at 08:53, Jan Grmela wrote:
> What is the best way to localize strings in a Catalyst plugin?

If it's a 'real' plugin, then it's already composed onto the app, and so you 
can just use $c->loc - do you instead mean a model or other component that 
doesn't have such easy access?

Cheers
t0m


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Localizing output in Catalyst plugins using $c->loc

2012-09-03 Thread Jan Grmela
Hi there,
We've been using the Catalyst::Plugin::I18N along with FormFu localized 
messages including some text from the database. Everything works fine now but 
there's still one problem left -- I've created a Catalyst plugin with some 
application-wide functionality. The plugin outputs a text in some places. The 
text is wrapped in a $c->loc() call but it still is not being localized though 
the strings are defined in the PO file and the rest of the app outputs strings 
in a correct language.

What is the best way to localize strings in a Catalyst plugin?

Thanks

--
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





___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/