https://bugs.kde.org/show_bug.cgi?id=396609

            Bug ID: 396609
           Summary: Google translation bar bookmarklet does not work
           Product: Falkon
           Version: unspecified
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: now...@gmail.com
          Reporter: alpha0...@yahoo.de
  Target Milestone: ---

The bookmarklet for the Google translation bar found on
https://googlesystem.blogspot.com/2009/11/google-translation-bar.html works in
Firefox, but not in Falkon. It doesn't work for me in Chrome/Chromium either,
but there you have this functionality built-in. Can the bookmarklet be made to
work in Falkon? Note that you have to replace "http" by "https" to make it work
in Firefox:

javascript:{d=document;b=d.body;o=d.createElement('scri'+'pt');o.setAttribute('src','https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');o.setAttribute('type','text/javascript');b.appendChild(o);v=b.insertBefore(d.createElement('div'),b.firstChild);v.id='google_translate_element';v.style.display='none';p=d.createElement('scri'+'pt');p.text='function%20googleTranslateElementInit(){new%20google.translate.TranslateElement({pageLanguage:%22%22},%22google_translate_element%22);}';p.setAttribute('type','text/javascript');b.appendChild(p);}void%200

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to