MediaWiki Discussão:Gadget-traductor-google.js

February 24 2011 - Update for IE9 and other improvements editar

The source for GoogleTrans was updated this day so that it would support IE9. Clearing the cache in IE9 can be complicated. You may have to close the browser down and restart.

There have been numorous other improvements including support for text selection in Firefox using the SHIFT-> and SHIFT<downarrow> keys.

Any problems please send me a message on the enwiki. Thanks for putting up GoogleTrans. You guys were the seconds ones in the whole world to do it.

Endo999 (discussão) 23h57min de 23 de fevereiro de 2011 (UTC)Responder

wiki 1.26 requires change to MediaWiki:Gadgets-defintiion file editar

wiki 1.26 requires a change to

MediaWiki:Gadgets-definition

to support gadgets. The enwiki version, which is working fine, has this entry in the above file for GoogleTrans:

GoogleTrans[ResourceLoader]|GoogleTrans.js

Endo999 (discussão) 15h18min de 8 de agosto de 2015 (UTC)Responder

The GoogleTrans gadget is still not working although it is obvious that the [ResourceLoader] string has been put into the gadget definition file.

I suggest using the English version of the gadget and seeing if that works. You can't use certain javascript calls anymore and you have to use mw.util.* calls instead. The English version is up to date with these changes. You can put the following line into your gadget file (have your gadget file be this single line) to pull in the latest version of the enwiki GoogleTrans via:

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Endo999/GoogleTrans.js&action=raw&ctype=text/javascript');

Endo999 (discussão) 20h09min de 10 de agosto de 2015 (UTC)Responder

Regressar à página "Gadget-traductor-google.js".