Last modified: 2012-12-19 15:35:51 UTC
Created attachment 10929 [details] 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.
Created attachment 10930 [details] Same problem on Firefox 14
Unclear whether this is a regression, mediawiki core related, Gadgets 2.0 related or ResourceLoader related. Setting unconfirmed and blocking RL2.