Extrange problem whith Locale::Maketext
Hi, I'm getting some extrange problem making Locale::Maketext to work with Dancer. The problem is that, in some "magic" combination, when we are ussing with apache2, the handler return undef. That problem does not happend when we run the application from bin/app.pl. The "Magic" combination is: /en/something -> OK -> change to /de/something -> ERROR -> wait 10seconds try again /de/something -> OK This happend only when ussing Plack::Handler::Apache2, no when we run the application from the ./bin/app.pl The code looks something like: package Extra::L10N; use base qw(Locale::Maketext); ... 1; .... use Extra::L10N; ... my $lh = Extra::L10N->get_handle($args{lang},'en'); # This fails somethime ($lh = undef ) with apache2 but it works as expected with Perl Dancer server Any help would be appreacited :) Thanks, Angel
Okay, we solve it adding 'use Extra::L10N::*' to the main my_application.pm Thanks, Angel
participants (1)
-
Angel Arancibia