Avoid relying on translators preserving the case when translating "discussion", which caused Discussion pages to get unwanted Discussion links.
parent
2e48da19a2
commit
6842328405
|
@ -76,7 +76,7 @@ sub genpage ($$) {
|
|||
$actions++;
|
||||
}
|
||||
if ($config{discussion}) {
|
||||
my $discussionlink=gettext("discussion");
|
||||
my $discussionlink=lc(gettext("Discussion"));
|
||||
if ($page !~ /.*\/\Q$discussionlink\E$/ &&
|
||||
(length $config{cgiurl} ||
|
||||
exists $links{$page."/".$discussionlink})) {
|
||||
|
|
|
@ -2,6 +2,9 @@ ikiwiki (3.15) UNRELEASED; urgency=low
|
|||
|
||||
* comment: Make comment directives no longer use the internal "_comment"
|
||||
form, and document the comment directive syntax.
|
||||
* Avoid relying on translators preserving the case when translating
|
||||
"discussion", which caused Discussion pages to get unwanted Discussion
|
||||
links.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Tue, 02 Jun 2009 17:03:41 -0400
|
||||
|
||||
|
|
|
@ -31,4 +31,6 @@ A simple fix that seems to work is to make this regexp case-insensitive:
|
|||
|
||||
But the best way would be to avoid assuming implicitely that translators will translate "discussion" and "Discussion" the same way.
|
||||
|
||||
> [[done]] --[[Joey]]
|
||||
|
||||
[[!tag patch]]
|
||||
|
|
Loading…
Reference in New Issue