[Catalyst] problem with Catalyst::Plugin::I18N

mock mock at obscurity.org
Mon May 22 15:16:05 CEST 2006


Catalyst::Plugin::I18N doesn't seem to behave like the documentation says.
If I do the following

$c->languages(['ja']);

then $c->language always returns 'i_default'

Shouldn't it return 'ja'?

As well, localize seems to have no effect at all

$c->localize('Hello Cat');

returns

'Hello Cat'

despite the following code

package MyProj::I18N::ja
use base qw/MyProj::I18N/;

our %Lexicon = (
  'Hello Cat' => 'ja',
);


Anyone have any ideas what is going on?

mock



More information about the Catalyst mailing list