Last modified: 2012-12-19 15:35:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41027, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39027 - rl2.wmflabs.org: RL executes the module before the i18n messages are available
rl2.wmflabs.org: RL executes the module before the i18n messages are available
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Gadgets (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://rl2.wmflabs.org/rl2-repo1/w/in...
:
Depends on:
Blocks: gadgets-2.0
  Show dependency treegraph
 
Reported: 2012-08-04 01:14 UTC by Helder
Modified: 2012-12-19 15:35 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of the console after the two attempts to get the translated message (101.81 KB, image/png)
2012-08-04 01:14 UTC, Helder
Details
Same problem on Firefox 14 (123.05 KB, image/png)
2012-08-04 01:16 UTC, Helder
Details

Description Helder 2012-08-04 01:14:52 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.
Comment 1 Helder 2012-08-04 01:16:00 UTC
Created attachment 10930 [details]
Same problem on Firefox 14
Comment 2 Krinkle 2012-08-04 01:43:47 UTC
Unclear whether this is a regression, mediawiki core related, Gadgets 2.0 related or ResourceLoader related.

Setting unconfirmed and blocking RL2.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links