]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
po(scan): removed scary comment about only wanting to change the first link
authorintrigeri <intrigeri@boum.org>
Thu, 27 Aug 2009 17:59:15 +0000 (19:59 +0200)
committerintrigeri <intrigeri@boum.org>
Thu, 27 Aug 2009 17:59:15 +0000 (19:59 +0200)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 88d021388e48d712e5312dd83a88ceaeb851c315..3039334c411d21f9fe097ec7b753212206d4a755 100644 (file)
@@ -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);