[Jifty-commit] r2129 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Nov 10 18:25:36 EST 2006
Author: alexmv
Date: Fri Nov 10 18:25:36 2006
New Revision: 2129
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/I18N.pm
Log:
r19806 at zoq-fot-pik: chmrr | 2006-11-10 18:24:20 -0500
* Don't explode if the plugin doesn't have a module_dir
Modified: jifty/trunk/lib/Jifty/I18N.pm
==============================================================================
--- jifty/trunk/lib/Jifty/I18N.pm (original)
+++ jifty/trunk/lib/Jifty/I18N.pm Fri Nov 10 18:25:36 2006
@@ -42,8 +42,10 @@
);
foreach my $plugin (Jifty->plugins) {
+ my $dir = eval { module_dir(ref($plugin)); };
+ next unless $dir;
push @import, 'Gettext';
- push @import, module_dir(ref($plugin)).'/po/*.po';
+ push @import, $dir . '/po/*.po';
};
Locale::Maketext::Lexicon->import(
More information about the Jifty-commit
mailing list