projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c5811
)
po(mybestlink): fixed when fed with path beginning with /
author
intrigeri
<intrigeri@boum.org>
Wed, 12 Nov 2008 15:54:51 +0000
(16:54 +0100)
committer
intrigeri
<intrigeri@boum.org>
Wed, 12 Nov 2008 15:54:51 +0000
(16:54 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 45ed96c65890020295b712697d63b738f8065a86..03ee9c33c15ab80fa1946ca17d0c902e33acbd8c 100644
(file)
--- a/
IkiWiki/Plugin/po.pm
+++ b/
IkiWiki/Plugin/po.pm
@@
-391,9
+391,11
@@
sub mybestlink ($$) { #{{{
my $link=shift;
my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
+ my $normres=$res;
+ $normres=~s#^/##;
if (length $res
&& ($config{po_link_to} eq "current" || $config{po_link_to} eq "negotiated")
- && istranslatable($res)
+ && istranslatable($
norm
res)
&& istranslation($page)) {
return $res . "." . lang($page);
}