https://bugzilla.wikimedia.org/show_bug.cgi?id=57567
Web browser: Opera
Bug ID: 57567
Summary: JavaScript syntax error when mw.loader.store enabled
on Special:Translate page
Product: MediaWiki
Version: 1.23-git
Hardware: All
URL: https://www.mediawiki.org/wiki/Special:Translate/page-
Help:OAuth
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 13904
--> https://bugzilla.wikimedia.org/attachment.cgi?id=13904&action=edit
code loaded from store in a Special:Translate page
With Opera 12.16 (Linux), RL with mw.loader.store.enabled true, and
debug=false, the page
https://www.mediawiki.org/wiki/Special:Translate/page-Help:OAuth don’t load any
translation units. By searching more with Dragonfly, I get an error:
Unhandled Error: at line 199, column 1: expected expression, got ')'
Stack:
globalEval load.php:347
globalEval load.php:346
work load.php:7302
request load.php:7213
load load.php:7513
<portée globale> index.php:2
I attach the data variable evaluated in $.globalEval, which seems to have the
syntax error. I get no error on a normal content page (so it comes perhaps from
the Translate extension), and no error with Firefox.
When I add the parameter debug=true in the URL, I get no error and the
translation units are loaded.
When I set mw.loader.store.enabled=false (by stopping the scripts at the
beggining and setting this variable), I also get no error and the translation
units are loaded.
--
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