"Grace Pastorelly Ruiz"wrote:
Hi,
i'm writing a Specialpage named Languages (Special:Languages) to display
some information from language table (multilingual)
but i got a problem, the data is shown twice and also in any special page
this information is shown.
It is shown on ANY page, as if it were part of the MediaWiki:Sitenotice
It's the first time i try to do it. Tt works, but don't really know if it's
the correct way. If you change the LocalSettings part by
require_once('includes/SpecialPage.php');
SpecialPage::addPage(new SpecialPage('Languages'));
It then works.
I needed to move the SpecialLanguages.php from /extensions folder to
/includes to have MediaWiki find it.
As the page is added by the LocalSettings, the same line at MLMWLanguages
can be commented.
BTW, ISO 639_2 for english & spanish are en & es, not eng & spa
http://www.oasis-open.org/cover/iso639a.html