X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/1610b1e9e6ebfd84ff6c7ccad0839cca06ccae42..5efda4da294e37a98b04561f475b186ae8c64138:/IkiWiki/Plugin/po.pm diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 2060ff208..193cf0a54 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -157,14 +157,10 @@ sub checkconfig () { reverse @{$config{underlaydirs}}) { next if $underlay=~/^locale\//; - # Underlay containing pot files. - add_underlay("locale/pot/$underlay") - if -d "$config{underlaydirbase}/locale/pot/$underlay"; - # Underlays containing the po files for slave languages. foreach my $ll (keys %{$config{po_slave_languages}}) { - add_underlay("locale/po/$ll/$underlay") - if -d "$config{underlaydirbase}/locale/po/$ll/$underlay"; + add_underlay("po/$ll/$underlay") + if -d "$config{underlaydirbase}/po/$ll/$underlay"; } if ($config{po_master_language}{code} ne 'en') { @@ -1094,8 +1090,8 @@ sub isvalidpo ($) { if ($res) { return IkiWiki::SuccessReason->new("valid gettext data"); } - return IkiWiki::FailReason->new("invalid gettext data, go back ". - "to previous page to go on with edit"); + return IkiWiki::FailReason->new(gettext("invalid gettext data, go back ". + "to previous page to continue edit")); } # ,----