]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/po.pm
po: added pofiles() function, will use this soon
[git.ikiwiki.info.git] / IkiWiki / Plugin / po.pm
index 7902fa7455e42f917597b387ab65aee2f0a75f7e..643621a91a0caa33a86f03054178a2666c22c82e 100644 (file)
@@ -153,6 +153,11 @@ sub pofile ($$) { #{{{
        return File::Spec->catpath('', $dir, $name . "." . $lang . ".po");
 } #}}}
 
+sub pofiles ($) { #{{{
+       my $masterfile=shift;
+       return map pofile($masterfile, $_), (keys %{$config{po_slave_languages}});
+} #}}}
+
 sub refreshpot ($) { #{{{
        my $masterfile=shift;
 
@@ -263,6 +268,7 @@ sub myurlto ($$;$) { #{{{
        my $from=shift;
        my $absolute=shift;
 
+       # workaround hard-coded /index.$config{htmlext} in IkiWiki::urlto()
        if (! length $to
            && $config{po_link_to} eq "current"
            && istranslation($from)