summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-12 12:26:07 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-12 12:26:07 -0400
commitb4d7dfcbe1e7ea62f1c25e0534feee58720397ac (patch)
tree59138b30db493162a9bd60cb5715277e8735daa5 /IkiWiki/Plugin
parent55e062f2d1ba5505caf0eadd95240348ac05ec0e (diff)
po: Detect if nowrapi18n can't be passed to po4a, and warn about the old version, but continue. Closes: #541205
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index e9dc9dd8c..52677076e 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -10,7 +10,12 @@ use warnings;
use strict;
use IkiWiki 3.00;
use Encode;
-use Locale::Po4a::Common qw(nowrapi18n !/.*/);
+eval q{use Locale::Po4a::Common qw(nowrapi18n !/.*/)};
+if ($@) {
+ print STDERR gettext("warning: Old po4a detected! Recommend upgrade to 0.35.")."\n";
+ eval q{use Locale::Po4a::Common qw(!/.*/)};
+ die $@ if $@;
+}
use Locale::Po4a::Chooser;
use Locale::Po4a::Po;
use File::Basename;