Brion Vibber wrote :
The strings in MediaWiki:Sidebar ARE NOT TEXT STRINGS,
they are MESSAGE
KEY NAMES.
ok, so I guess that the possibility to directly use url links in Mediawiki:Sidebar is just
a "message-not-found" side-effect ? (just wondering, because that was confusing
: some urls work, others don't)
BTW wouldn't it make sense to replace line 1642 of skin.php :
if (wfEmptyMsg($line[0], $link))
with :
if (wfEmptyMsg(htmlspecialchars($line[0]), $link))
since, in case of "message-not-found", wfMsgForContent apply htmlspecialchars to
$key (and < >) before returning it to $link ?
(so that urls with "&" special char can be used ? (ok, we shouldn't need
this since we can use Mediawiki namespace, but still ...))
and (if yes), probably change the same way line 1640 : if
(wfEmptyMsg(htmlspecialchars($line[1]), $text = wfMsg($line[1])))
Thanks
You should list something like:
ourwiki-url|ourwiki-text
then in MediaWiki:Ourwiki-url you put:
http://our-wiki-url/mediawiki/index.php?title=Special%3AAllpages&from=&…
and in MediaWiki:Ourwiki-text you put:
Discussion/talk index
This keeps things clean and localizable.
Indeed, thanks for the tip.
Alexis