Namespace aliases

Brion VIBBER <[email protected]> Sun, 27 Oct 2002 03:37:16 -0800
Newsgroups gmane.science.linguistics.wikipedia.francais
Message-ID <3DBBCFEC.1060902__23502.9531796046$1323003248$gmane$org@pobox.com>
[fr]
C'est maintenent possible de faire un lien par un 'namespace alias' au 
wiki nouveau, selon les besoins de la langue. Par example, en français 
[[Wikipedia:Rapport d'erreurs]] donne [[Wikipédia:Rapport d'erreurs]] 
sans peine.

(vois: http://fr.wikipedia.org/wiki/Testing )

[en]
I've made a tweak to Title::secureAndSplit() to allow a customized 
Language::getNsIndex() to provide aliases for namespaces.

So for French, a link to eg [[Wikipedia:Rapport d'erreurs]] can now 
transparently go to [[Wikipédia:Rapport d'erreurs]].

(see http://fr.wikipedia.org/wiki/Testing )

I _think_ this is safe -- the loop I took out from secureAndSplit() 
duplicated the default behavior of getNsIndex() anyway -- but Lee, 
please check it over. It's in CVS, but I didn't install it except on the 
French test wiki.

-- brion vibber (brion @ pobox.com)