po(scan): removed scary comment about only wanting to change the first link
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
0c032b0ccb
commit
3c2bffe21b
|
@ -204,10 +204,7 @@ sub scan (@) {
|
||||||
if (istranslation($page)) {
|
if (istranslation($page)) {
|
||||||
foreach my $destpage (@{$links{$page}}) {
|
foreach my $destpage (@{$links{$page}}) {
|
||||||
if (istranslatable($destpage)) {
|
if (istranslatable($destpage)) {
|
||||||
# replace one occurence of $destpage in $links{$page}
|
# replace the 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)
|
|
||||||
for (my $i=0; $i<@{$links{$page}}; $i++) {
|
for (my $i=0; $i<@{$links{$page}}; $i++) {
|
||||||
if (@{$links{$page}}[$i] eq $destpage) {
|
if (@{$links{$page}}[$i] eq $destpage) {
|
||||||
@{$links{$page}}[$i] = $destpage . '.' . lang($page);
|
@{$links{$page}}[$i] = $destpage . '.' . lang($page);
|
||||||
|
|
Loading…
Reference in New Issue