https://bugzilla.wikimedia.org/show_bug.cgi?id=39027
Web browser: ---
Bug #: 39027
Summary: RL2 executes the module before the i18n messages are
available
Product: MediaWiki extensions
Version: unspecified
Platform: All
URL: http://rl2.wmflabs.org/rl2-repo1/w/index.php?title=Gad
get:Test.js&oldid=469
OS/Version: All
Status: NEW
Keywords: javascript
Severity: normal
Priority: Unprioritized
Component: Gadgets
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Blocks: 29272
Classification: Unclassified
Mobile Platform: ---
Created attachment 10929
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10929
Screenshot of the console after the two attempts to get the translated message
If a gadget try to use a message as soon as it starts its execution, the
translated text is not available. Take a look at the example above. Its
definition is at
http://rl2.wmflabs.org/rl2-repo1/w/index.php?title=Gadget_definition:test.js&oldid=466
and includes "messages":["about"]. Nonetheless, when it prints the value of
mw.msg('about'), I get "<about>". A few seconds later, if I use mw.msg('about')
again, it return the correct value: "About".
I tested on Ubuntu 12.04 using Google Chrome 21.0.1180.57. Same problem on
Firefox 14.0.1.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l