[Mediawiki-i18n] Extension messages are now translatable

Rotem Liss mail at rotemliss.com
Fri Jun 30 21:03:03 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Extension messages can now be translated. To add localized messages to
an extension, add a second parameter to the call to
MessageCache::addMessages, which includes the language code (the default
value is 'en').

For example, old style:

$wgMessageCache->addMessages( array( 'custom' => 'custom message' ) );

New style:

$wgMessageCache->addMessages( array( 'custom' => 'custom message' ), 'en' );

etc.

You are welcome to translate each extension, especially those which are
used in Wikimedia sites (a list is available in Special:Version), into
your language.

- --
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com

#define KeyFingerPrint 4AFD 8579 A449 4267 BED9 38E5 6EF8 5B1F EBDE 7AC0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEpZGHbvhbH+veesARAvtZAJwOnSudlV3kfzXzAHTuI6LF89OnrgCffk5E
HexWVAhExOZpjtKnWtRILts=
=Ad/c
-----END PGP SIGNATURE-----



More information about the Mediawiki-i18n mailing list