Il giorno lun, 23/07/2012 alle 15.39 -0700, Daniel Friesen ha scritto:
Read over the tutorials I have on skinning MediaWiki 1.18+
http://blog.redwerks.org/2012/02/08/mediawiki-skinning-tutorial/ http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/
I have 2 issues:
- In the extension I can made a file ext.i18n.php and then use:
$wgExtensionMessagesFiles['ext'] = dirname( __FILE__ ) . 'ext.i18n.php'; wfMsg('something');
With skins it doesn't work. Can you help me?
The tutorial covers this.
You should consider the skins/SkinName.php pattern deprecated, and only use it for built-in skins now.
Construct your skins using the pattern: skins/myskinname/myskinname.php skins/myskinname/myskinname.i18n.php skins/myskinname/MySkinName.skin.php
The naming of MySkinName.skin.php doesn't really matter, but that file will be the equivalent of what you used to put in skins/MySkinName.php. With this pattern you'll have a skins/myskinname/myskinname.php file which you can add the i18n file to and setup the autoloading and resource loader modules. Just like an extension you'll install your skin by using `require_once( "$IP/skins/myskinname/myskinname.php" );`... for now.
oh! ok! I'm sorry, I have read the mediawiki.org documentation for both my module and my skin but it seems not very updated.
thanks! ADM