X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d83d11e6b87e718872e72153ee6bb3a382615c25..b9dc3e84a512eecf66b2b3e73be39530b588f49c:/IkiWiki/Plugin/mirrorlist.pm?ds=inline diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm index 104587f3a..3997e6fef 100644 --- a/IkiWiki/Plugin/mirrorlist.pm +++ b/IkiWiki/Plugin/mirrorlist.pm @@ -3,7 +3,7 @@ package IkiWiki::Plugin::mirrorlist; use warnings; use strict; -use IkiWiki; +use IkiWiki 2.00; sub import { #{{{ hook(type => "pagetemplate", id => "mirrorlist", call => \&pagetemplate); @@ -19,13 +19,13 @@ sub pagetemplate (@) { #{{{ sub mirrorlist ($) { #{{{ my $page=shift; - return "
Mirror". - (keys %{$config{mirrorlist}} > 1 ? "s" : ""). + return "
". + (keys %{$config{mirrorlist}} > 1 ? gettext("Mirrors") : gettext("Mirror")). ": ". join(", ", map { qq{{$_}."/".urlto($page, ""). qq{">$_} } keys %{$config{mirrorlist}} ).