Index: lib/Jifty/I18N.pm =================================================================== --- lib/Jifty/I18N.pm (revision 2915) +++ lib/Jifty/I18N.pm (working copy) @@ -7,6 +7,7 @@ use Email::MIME::ContentType; use Encode::Guess qw(iso-8859-1); use File::ShareDir ':ALL'; +use Jifty::Util; =head1 NAME @@ -38,8 +39,12 @@ bless $self, $class; my @import = ( - 'Gettext',Jifty->config->framework('L10N')->{'PoDir'}. '/*.po', - 'Gettext',Jifty->config->framework('L10N')->{'DefaultPoDir'}. '/*.po' + 'Gettext', Jifty::Util->absolute_path( + Jifty->config->framework('L10N')->{'PoDir'}. '/*.po' + ), + 'Gettext', Jifty::Util->absolute_path( + Jifty->config->framework('L10N')->{'DefaultPoDir'}. '/*.po' + ) ); foreach my $plugin (Jifty->plugins) { @@ -47,7 +52,7 @@ my $dir = eval { module_dir(ref($plugin)); }; next unless $dir; push @import, 'Gettext'; - push @import, $dir . '/po/*.po'; + push @import, Jifty::Util->absolute_path( $dir . '/po/*.po' ); }; Locale::Maketext::Lexicon->import( @@ -118,8 +123,12 @@ my $modified = join( ',', sort map { $_ => -M $_ } map { glob("$_/*.po") } ( - Jifty->config->framework('L10N')->{'PoDir'}, - Jifty->config->framework('L10N')->{'DefaultPoDir'} + Jifty::Util->absolute_path( + Jifty->config->framework('L10N')->{'PoDir'} + ), + Jifty::Util->absolute_path( + Jifty->config->framework('L10N')->{'DefaultPoDir'} + ) ) ); if ($modified ne $last_modified) {