[Mediawiki-i18n] Extension messages are now translatable

Ivan R. Lanin ivanlanin at gmail.com
Sat Jul 1 16:47:21 UTC 2006


Hello. Where do we add those translation? To the individual extensions?

Thx, IRL.

On 7/1/06, Rotem Liss <mail at rotemliss.com> wrote:
> -----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.



More information about the Mediawiki-i18n mailing list