Page MenuHomePhabricator

Changes via Special:Translate not saved throwing TypeError (on meta.wikimedia.org)
Closed, DeclinedPublic

Description

PROBLEM DESCRIPTION

When accessing https://meta.wikimedia.org/w/index.php?title=Special:Translate&tux=1&language=de&filter=&action=translate&group=page-Confidentiality+agreement+for+nonpublic+information and editing the first message on the list, the item collapses after clicking "Save translation" and includes the word "Saving..." on the right. "Saving..." does not disappear, however, and the change is never saved.

My interface language is English, and I'm translating into German. I'm using Google Chrome (31.0.1650.63 m) on Windows 7.

ERROR MESSAGES IN CONSOLE

Between loading https://meta.wikimedia.org/w/index.php?title=Special:Translate&tux=1&debug=true&language=de&filter=&action=translate&group=page-Confidentiality+agreement+for+nonpublic+information and clicking "Save translation", the following two error messages appear (the latter appearing immediately after clicking the "Save translation" button):

TypeError: Cannot read property 'depends' of undefined TypeError {} load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:9511
log load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:9511
handlePending load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10323
markModuleReady load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10458
nestedAddScript load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10465
(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10470
script.onload.script.onreadystatechange load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10390

Uncaught TypeError: Cannot read property 'depends' of undefined jquery.ime.js:306
IME.load jquery.ime.js:306
IMESelector.selectIM jquery.ime.js:1203
IMESelector.selectLanguage jquery.ime.js:1134
mw.ime.addIme ext.uls.ime.js:297
mw.ime.handleFocus ext.uls.ime.js:248
(anonymous function) ext.uls.ime.js:210
jQuery.event.dispatch load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3058
elemData.handle.eventHandle load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2676
jQuery.event.trigger load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2941
(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3599
jQuery.extend.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:611
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:241
jQuery.fn.extend.trigger load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3598
jQuery.fn.(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3652
$.fn.extend.focus jquery.ui.core.js:75
TranslateEditor.show ext.translate.editor.js:902
TranslateEditor.next ext.translate.editor.js:273
TranslateEditor.save ext.translate.editor.js:179
(anonymous function) ext.translate.editor.js:587
jQuery.event.dispatch load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3058
elemData.handle.eventHandle load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2676


Version: unspecified
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53963

Details

Reference
bz59648

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:17 AM
bzimport set Reference to bz59648.
bzimport added a subscriber: Unknown Object (MLST).

Can you check what $.ime.preferences.registry contains? Maybe changing input method will clear the invalid value.

I'm afraid I have no idea what that is and/or how I can check it.

Created attachment 14226
Screenshot of bug on Special:Translate

I've attached a screenshot (including the error messages in the console), if that's of any help.

Attached:

Screenshot.PNG (898×1 px, 115 KB)

(In reply to comment #2)

I'm afraid I have no idea what that is and/or how I can check it.

A wikielf tells me you have to stay in the page where the error happens, enter what follows in your location/address bar (instead of the URL) and press enter:

javascript:alert($.ime.preferences.registry);

or stay in the error/dev console in screenshot, past this next to the blue arrow and press enter:

$.ime.preferences.registry

Thanks, I did the latter. That gives

Object {isDirty: true, language: "de", previousLanguages: Array[1], imes: Object}

Created attachment 14227
Screenshot of $.ime.preferences.registry output

Details

Attached:

Screenshot2.PNG (441×707 px, 32 KB)

I would like to add that I witness the same issue when trying to make translations on meta.wikimedia.org although when making translations on translatewiki.net, on commons.wikimedia.org as well as on www.mediawiki.org this issue does not happen. I am using a fully updated PC under Windows 7 and with the latest released version of Mozilla Firefox.

I noted as well that when using the edit button and when i then open the link in a separate tab then I am able to save the translation without any problems. In this new tab the old translation interface is displayed.

The problem with this workaround is that it is really tricky to use as you need to work in different tabs. I will explain the way I do it when translating into lb. For example when translating on https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Glossary&action=translate&filter=&language=lb I click on the edit button for the first message to be translated and open it in another tab https://meta.wikimedia.org/wiki/Translations:Glossary/Page_display_title/lb?action=edit then I save the translation close again this tab and return to the previous page and go on with the next message to be translated.

I hope this additional information helps. If you need more information please contact me (best with a message on my discussion page on translatewiki.net User:Robby or on my discussion page on lb.wikipedia.org User:Robby)

Just in order to be complete translations on www.wikidata.org is as well working pretty fine. So according to my findings the issue is just happening on meta so I guess it is due to some settings on meta. I would like to add that I have set no special ccs or js setting for my user account on any of these sites.

When making today translations on meta.wikimedia.org I could no longer notice the behaviour described in this bug. I made test with Firefox Version 26.0 as well as with Google Chrome Version 32.0 and everything worked normal with both browsers.

If another user is able to confirm the issue is no longer appearing I suggest to close this bug.

Due to the fact that the issue no longer appears by now I close this bug. If someone else will whitness the same issue again the bug can easily be reopened.