https://bugzilla.wikimedia.org/show_bug.cgi?id=25486

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Krinkle <[email protected]> 2011-03-11 22:48:11 UTC ---
The mw.msg() function only has access to messages that have been loaded by a
module from the server.

If no module has defined that the 'pagecategories' message is needed, it will
not be loaded (I mean we can't load every single message to the client because
it *could* be needed).

Marking as INVALID as it's not a bug. If a loaded module would have defiend
that it needs 'pagecategories' it will be available and return "Categories"
("Kategorien" if lang=de).

To load custom messages for user scripts and gadget see bug 27561 which
requests registering of modules client side.

If that's ready you could do this:

register( 'MainPageFixer', {
    'wikiscripts': ['MediaWiki:MainPages.js'],
    'messages': ['pagecategories', 'mainpage-description', 'nstab-main']
});
mw.loader.load( 'MainPageFixer' );

Which will make 1 request and that requests the messages from the server and
initialises the javascript in 1 server request and the messages are available
through mw.msg() within that script.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to