MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
addOnloadHook(function($){
addOnloadHook(function($){
     return function(){
     return function(){
         $('body').append('<a id="gTranslate" href="">Translate by Google</a>');
         $('body').append('<a id="gTranslate" href="http://www.google.com/translate?sl=auto&tl=en&u="' + encodeURIComponent(document.URL) + '">Translate by Google</a>');
     }
     }
}(jQuery));
}(jQuery));