X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d83d11e6b87e718872e72153ee6bb3a382615c25..19a7752021249eb8984e523fd6ed5a3730dc9be7:/IkiWiki/Plugin/mirrorlist.pm?ds=sidebyside 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}} ).