Hello,
I'm trying to create a custom Special page using the code stubs at http://www.mediawiki.org/wiki/Manual:Special_pages#SpecialPage.php
The problem is that the title shown is "<myextension>" rather than "MyExtension", both on the special page itself and on the Special:SpecialPages page.
Any hints?
Samuel Lampa
Oh, and I'm using MediaWiki 1.15.3 (r66316 http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/?pathrev=66316), checked out from SVN.
Samuel
On 05/13/2010 03:13 AM, Samuel Lampa wrote:
Hello,
I'm trying to create a custom Special page using the code stubs at http://www.mediawiki.org/wiki/Manual:Special_pages#SpecialPage.php
The problem is that the title shown is "<myextension>" rather than "MyExtension", both on the special page itself and on the Special:SpecialPages page.
Any hints?
Samuel Lampa
You need a message called 'myextension' in your i18n file like this:
'myextension' => 'My extension'
See svn[1] for an example file.
Siebrand
[1] http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/AdminLinks/AdminL...
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Samuel Lampa Sent: Thursday, May 13, 2010 3:16 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] < and > in title when creating Special page
The problem is that the title shown is "<myextension>" rather than "MyExtension", both on the special page itself and on the Special:SpecialPages page.
On 05/13/2010 01:31 PM, Siebrand Mazeland wrote:
You need a message called 'myextension' in your i18n file like this:
'myextension' => 'My extension'
Indeed, that pointed me to the problem! I was not using lowercase letters only in the array key to the left. It works when fixing that. Thanks!
Samuel
mediawiki-l@lists.wikimedia.org