[Catalyst] problem extending Plugin::I18N

Rodrigo rodrigolive at gmail.com
Wed Aug 26 12:59:13 GMT 2009


(Oops... I've sent it before finishing it...)

Hello all,
I'm having trouble extending Catalyst::Plugin::I18N.

I've switched my I18N plugin for a MyApp::Plugin::I18N like this:

use Catalyst qw/  ... +MyApp::Plugin::I18N .../;

MyApp/Plugin/I18N.pm:

package MyApp::Plugin::I18N;
use strict;
use parent /Catalyst::Plugin::I18N/;

sub setup {
    my $self=3Dshift;
    $self->next::method(@_);
    ...
}

The problem is that the original Plugin::I18N::setup() gets called twice,
which breaks it, I guess due to the "eval Locale::Maketext::Simple" part.

I've tried to use Moose and around 'setup' =3D> sub { ... } and it gets loa=
ded
twice also.

What am I missing?

thanks
   rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090826/3343b=
471/attachment.htm


More information about the Catalyst mailing list