Olivier Beaton wrote:
Alphos and bawolff pointed out in IRC that if I was
going to use
NS_MEDIAWIKI I should make them more message like... so I've converted
to: MediaWiki:headersfooters-cat-<catname>-header
And I'm checking if the message exists before fetching the contents
using wfMsgForContentNoTrans. This is interesting because technically
an administrator could make some multi-langual messages in the i18n
file manually. A potential problem is that as far as I know messages
aren't really supposed to be mixed case, and a category name inserted
into<catname> could definitely have some uppercase letters in it.
Having message names all lowercase is a convention, but uppercase text
in the middle of the name should work (actually, it may work too well,
as you may want to ignore the case of the first character in catname).