(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=shift;
$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' => sub { ... } and it gets loaded
twice also.
What am I missing?
thanks
rodrigo
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/