From: intrigeri Date: Thu, 27 Aug 2009 17:59:15 +0000 (+0200) Subject: po(scan): removed scary comment about only wanting to change the first link X-Git-Tag: 3.1415926~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33b18e12c7ef638e54411a60a49ce73e4f23eaee;p=ikiwiki.git po(scan): removed scary comment about only wanting to change the first link Signed-off-by: intrigeri (cherry picked from commit 3c2bffe21b91684971155ab41b15dacc515b2fc5) --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index a9517adce..61f8db328 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -204,10 +204,7 @@ sub scan (@) { if (istranslation($page)) { foreach my $destpage (@{$links{$page}}) { if (istranslatable($destpage)) { - # replace one occurence of $destpage in $links{$page} - # (we only want to replace the one that was added by - # IkiWiki::Plugin::link::scan, other occurences may be - # there for other reasons) + # replace the occurence of $destpage in $links{$page} for (my $i=0; $i<@{$links{$page}}; $i++) { if (@{$links{$page}}[$i] eq $destpage) { @{$links{$page}}[$i] = $destpage . '.' . lang($page);