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