[jifty-devel] plugin localization
Jesse Vincent
jesse at bestpractical.com
Fri Nov 3 13:41:23 EST 2006
I think the second solution makes the most sense. Thanks!
(If it's possible to put together a test to make sure it works right,
we'll have a better chance of not-ever breaking it ;)
Best,
Jesse
> I test this :
> foreach my $plugin (@{Jifty->config->framework('Plugins')}) {
> push @import, 'Gettext';
> push @import, module_dir('Jifty::Plugin::'.(keys
> %{$plugin})[0]).'/po/*.po';
> };
>
> that works but ....
> "Jifty::Plugin::Login is not yet loaded"
>
> well I have to load Jifty::I18N->new(); later in Jifty.pm
>
> I could put Jifty::I18N->new() even later (between
> Jifty->plugins(@plugins);
> and
> Jifty->handler(Jifty::Handler->new());
> )
>
> and make this :
> foreach my $plugin (Jifty->plugins) {
> push @import, 'Gettext';
> push @import, module_dir(ref($plugin)).'/po/*.po';
> };
>
> The last one seems to me the better.
>
> Which solution do you prefer ?
>
> Take your time, have a good night.
>
> Yves
>
> --
> ---------------------------------------------------------------
> AGOSTINI Yves CRI - Université Paul Verlaine - Metz
> agostini at univ-metz.fr http://www.crium.univ-metz.fr
> tel: 03 87 31 52 63 fax: 03 87 31 53 33
>
--
More information about the jifty-devel
mailing list