GoogleTranslator_2-4-Preview

Google Translator (Widget)

Google Translator. Translate text directly in the widget or translate a web page. Google Translator uses a theme based off of Gmail’s theme! You can use this widget to convert excerpts of text and entire web pages to and from multiple languages.

Compatibility: Opera 9+
Last Updated: 2009-11-24 @ 02:35
Latest Version: v2.4Download
Latest Beta:
N/A

GoogleTranslator_2-4-Preview

Google Translator 2.3 Preview

Currently supported languages translations:

  • Afrikaans
  • Albanian
  • Arabic
  • Bulgarian
  • Catalan
  • Chinese
  • Croatian
  • Czech
  • Danish
  • Dutch
  • English
  • Estonian
  • Filipino
  • Finnish
  • French
  • Galician
  • German
  • Greek
  • Hebrew
  • Hindi
  • Hungarian
  • Icelandic
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Korean
  • Latvian
  • Lithuanian
  • Macedonian
  • Malay
  • Maltese
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Serbian
  • Slovak
  • Slovenian
  • Spanish
  • Swahili
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese
  • Welsh
  • Yiddish

Please take note of the following:

  • This widget will translate only the languages that can be translated by Google’s own translation service. Language options will be updated as Google adds more language translation options to their service.
  • If you are using a version of Opera prier to Opera 9.5, you will need to use v2.2 or newer.

You can Download the latest stable version from Opera’s official widget website.

100 percent clean

Changelog:

v1.00Download

  • Initial release version.

v1.10Download

  • Fixed a problem relating to Google updating the translation service.

v1.20Download

  • Fixed a problem where some of the buttons at the top were not very easily click-able (a problem with the way Opera handled the code). It should be easier now to click them. 😉

v1.30Download

  • Now the last used translations are saved.
  • Text and URL translation selections are saved independently.
  • Maximized and minimized states are now saved, and the last used translation tab is saved (Text or URL)!

v1.40Download

  • There is now a small loading icon while your text is being translated!
  • Several clean ups through out the code.

v1.41Download

  • Internal build to fix layout issue with Opera 9.5 where the rendering engine changed.

v1.42 (a.k.a. v2.0 on Opera Widgets) – Download

  • Reverse Language being used. (Quick way to switch the languages)
  • Flip translated text and original text to make translations easier.
  • Clear text fields with a single click.
  • The version number is now placed on the widget.

v2.1Download

  • Removed the left panel and integrated the features straight into the footer of the widget to look better and more efficient like the general Gmail design.
  • Moved the “Text” and “URL” tabs or links to the left side of the widget to follow Gmail’s design a bit closer and allowed the tabs to slide under the widget to take less space.
  • Moved the version number into the header and reworked the header logo.
  • Removed the “?” help icon from the header.
  • Added an update system to notify the user that an update is available and it appears just above the “Text” tab, then disappears after 5 minutes so as to not annoy the user too much. Clicking the update tab will open the page for the latest version of the Google Translator widget.
  • Added a toggle to the options in the footer to show or hide them.
  • Added a “More” (Google style combo box) that contains extra options (currently some that are not completed).
  • In text mode the Reverse button opens a menu to Reverse the language pair or the textareas.
  • Double clicking the header now minimizes the widget also.
  • Updated Google favicon to the new one (no longer a capital G and square).
  • Prepared some elements in the widget for a future update to allow resizing (the progress is not visually evident yet, not until the widget is resizing in a future build anyway).
  • Switching between tabs (“Text” and “URL”) updates the options in the footer, currently by removing the “More” combo box which is not needed in “URL” mode.
  • Minimized several aspects of the widget, including: images, image sizes, duplicate elements, duplicate scripts, etc.
  • Documented html file for anyone who wants to view the code and began fixing the naming system to make more sense (id attributes).
  • Google Translator 2.1 now includes jQuery 1.2.6 (fyi: jquery-1.2.6.min.js) and I have worked in some better looking effects.
  • There are currently effects for: clicking a tab, “Text” or “URL” body fade in, options in footer fade in and out, minimize and restore now slides up and down (with a time delay for the tabs to reappear).
  • …(I think that’s it for now).

v2.2pre1Download

  • Cleaned more of the javascript code and naming system.
  • Converted the language list to the new Google Translate style menu(s). The change basically shortened the list of translations to search through by using two lists instead. One list to convert from and one list to convert to.
  • While updating the new language lists I added support for Googles Auto Language Detection feature. Keep in mind, however, that this feature is very buggy on Googles service. So if it isn’t working perfectly for you then it is not a problem with the widget, but instead a problem with Google’s implementation of it…which is very incomplete at this time. However, since Google is offering this feature there is no reason for the widget to not offer it as well. I added some checks to make sure that a result is returned. If nothing is translated then you will be informed in the widget that the error is on Google’s side and you do not necessarily need to update your version of the widget.
  • More work on completing the copy feature in the “More” menu. Opera actually makes this very difficult to accomplish compared to other browsers and the problem now lies in how it works differently in a widget than it does in a tab. Woohoo! Just completed the copy feature! You’ll be seeing it soon when v2.2 is released! You can test it now with v2.2pre1, but the copy feature seems to freeze the widget in Windows, but works perfectly fine in Linux (I haven’t tested Mac yet, please let me know)!
  • Added the the directional icon between the languages to indicate From and To like Google has done. Clicking the icon reverses the languages just as they do on Google’s translation page.
  • Added use of widget.showNotification() to better notify the user when needed.
  • Added jquery fadeOut() effect to the loading icon for a smoother appearance.
  • Removed 3 background images by using background colors in the style sheet instead.
  • more coming in v2.2pre2 or v2.2 final…

v2.2pre2Download

  • Now supported across all versions of Opera that support widgets. There is no need to use Google Translator 1.40 anymore if you are using a version of Opera earlier to 9.50. The widget now performs the same and looks the same across all Opera 9.x versions (with the exception of the css3 shadow effect on the version number in the title and the input fields and buttons that Opera uses in v9-9.27 vs. v9.5+).
  • Added a check to make sure that widget.showNotification() is supported so it doesn’t cause problems when it’s used. It isn’t supported in Opera 9.2x or below.
  • Known issues for v2.2pre2: The option to copy text from the “Top” and “Bottom” textarea in Text mode causes the widget to become unresponsive in Opera on the Windows platform, but works fine in Opera for the Unix platform. Opera for the Macintosh platform has not yet been tested. I have submitted a test case widget to Opera and the bug number is: #355007

v2.2pre3Download

  • Corrected the widget scrolling problem in v2.2pre2 where scrolling (middle mouse wheel) on the widget would cause visual problems in the widget.
  • More back-end preparation for resizing the widget in a future release.
  • Corrected a problem with the widget’s declared space initially in the config.xml file. Platforms that dock widgets to the side of the screen and no further no allow the widget to rest on the side of the screen with no gap (exception is only for the left side of the widget where the menu scrolls).
  • Known issues for v2.2pre3: The option to copy text from the “Top” and “Bottom” textarea in Text mode causes the widget to become unresponsive in Opera on the Windows platform, but works fine in Opera for the Unix platform. Opera for the Macintosh platform has not yet been tested. I have submitted a test case widget to Opera and the bug number is: #355007

v2.2Download

  • Cleaned more of the javascript code and naming system.
  • Converted the language list to the new Google Translate style menu(s). The change basically shortened the list of translations to search through by using two lists instead. One list to convert from and one list to convert to.
  • While updating the new language lists I added support for Googles Auto Language Detection feature. Keep in mind, however, that this feature is very buggy on Googles service. So if it isn’t working perfectly for you then it is not a problem with the widget, but instead a problem with Google’s implementation of it…which is very incomplete at this time. However, since Google is offering this feature there is no reason for the widget to not offer it as well. I added some checks to make sure that a result is returned. If nothing is translated then you will be informed in the widget that the error is on Google’s side and you do not necessarily need to update your version of the widget.
  • More work on completing the copy feature in the “More” menu. Opera actually makes this very difficult to accomplish compared to other browsers and the problem now lies in how it works differently in a widget than it does in a tab. Woohoo! Just completed the copy feature! You’ll be seeing it soon when v2.2 is released! You can test it now with v2.2pre1, but the copy feature seems to freeze the widget in Windows, but works perfectly fine in Linux (I haven’t tested Mac yet, please let me know)!
  • Added the the directional icon between the languages to indicate From and To like Google has done. Clicking the icon reverses the languages just as they do on Google’s translation page.
  • Added use of widget.showNotification() to better notify the user when needed.
  • Added jquery fadeOut() effect to the loading icon for a smoother appearance.
  • Removed 3 background images by using background colors in the style sheet instead.
  • Now supported across all versions of Opera that support widgets. There is no need to use Google Translator 1.40 anymore if you are using a version of Opera earlier to 9.50. The widget now performs the same and looks the same across all Opera 9.x versions (with the exception of the css3 shadow effect on the version number in the title and the input fields and buttons that Opera uses in v9-9.27 vs. v9.5+).
  • Added a check to make sure that widget.showNotification() is supported so it doesn’t cause problems when it’s used. It isn’t supported in Opera 9.2x or below.
  • Corrected the widget scrolling problem in v2.2pre2 where scrolling (middle mouse wheel) on the widget would cause visual problems in the widget.
  • More back-end preparation for resizing the widget in a future release.
  • Corrected a problem with the widget’s declared space initially in the config.xml file. Platforms that dock widgets to the side of the screen and no further no allow the widget to rest on the side of the screen with no gap (exception is only for the left side of the widget where the menu scrolls).
  • Known issues for v2.2: The option to copy text from the “Top” and “Bottom” textarea in Text mode causes the widget to become unresponsive in Opera on the Windows platform, but works fine in Opera for the Unix platform. Opera for the Macintosh platform has not yet been tested. I have submitted a test case widget to Opera and the bug number is: #355007

v2.3Download

  • Fixed a preference key that was not initially set which caused the widget to initially fail to translate and be inactive.

v2.4pre1Download

  • Remove “<BR>” tags that are carried over from the translation in Google’s html by replacing them with new lines.
  • 11 new languages added: Catalan, Filipino, Hebrew, Indonesian, Latvian, Lithuanian, Serbian, Slovak, Slovenian, Ukrainian and Vietnamese.
  • When “Detect language” is used for text mode, if Google is capable of detecting the original language then, the widget will update the translation from selection. For example, if the original language is detected to be Spanish then the selection will change from “Detect language” to “Spanish”. Please note that if the selection changes to an incorrect language it is not the fault of the widget, but instead Google’s detection method. There is nothing further that I can do to insure it’s accuracy.
  • Moved Text and URL mode tabs (once again). Now Google Translator resembles Google Chrome by the tabs and Gmail by the color scheme.
  • More work towards making Google Translator resizable. Hopefully it will be resizable by v2.5!
  • Known issues: New tabs need some work to finish the smoothness of the graphics.

v2.4pre2Download

  • Updated security model to set <widget network=”public”> to re-enable XMLHttpRequest() for Opera 10+ since this new security model is being followed with Opera 10 Alpha 1 (mentioned in Known Issues). [link]
  • Added list of sites that Google Translator is allowed to access, which include google.com on port 80 and opera.com on port 80 (opera.com is to enable update checks within the widget until Opera implements it’s own Widget update system). [link]
  • Added the ability and permissions for Google Translator to use Java and other plugins within the widget. Java may not be necessary, however, I’m working on implementing a copy button which requires flash so plugins are needed. I will remove the Java permission if I cannot find a way to make use of it in the future. [link]
  • Known issues: New tabs need some work to finish the smoothness of the graphics.

v2.4pre3Download

  • Added the following languages to keep the widget updated: Albanian, Estonian, Galician, Hungarian, Maltese, Thai, Turkish
  • Added the ability to show Dictionary information that Google Translate provides when translating a single term.
  • Updated jQuery from 1.2.6 to 1.3.2 for better performance and updated methods.
  • Known issues: New tabs need some work to finish the smoothness of the graphics.
  • Known issues: Fade in for URL tab occurs twice.

v2.4pre4Download

  • Reverted back to jQuery 1.2.6 to fix some regressions with JQuery 1.3.2 and Opera.

v2.4pre5Download

  • Added new languages: Afrikaans, Icelandic, Irish, Macedonian, Malay, Persian, Swahili, Welsh, Yiddish
  • Updated the Google icon and added new icons so resolution on other devices appears better (as well as the new Windows 7 Super Bar.
  • Introduced a fix for unremoved html span elements in translated text (props: deus-ex).

v2.4Download

  • Added text shadow to several elements and darkened the menu labels (they were almost unreadable).

Future Changelog

  • A larger view for those of you who need to translate larger chunks of text!
  • Optimizations to code in entirety.

51 thoughts on “Google Translator (Widget)”

  1. using Opera 9 Opera 9 on GNU/Linux GNU/Linux
    Opera/9.50 (X11; Linux x86_64; U; en)

    Supported language translations are now listed and apply to the latest release of the widget.

    The list will be updated as Google releases more translating options, but the list length depends on them..(to everyone) please don’t ask me to add more languages unless Google has added them to their own translation service.

    Thanks

  2. using Opera 9 Opera 9 on Windows Vista Windows Vista
    Opera/9.50 (Windows NT 6.0; U; en)

    I suggest you add automatic detection of the input language and seperate selection of output language.
    Is this widget open source. I’d like to see the source

  3. using Opera 9 Opera 9 on Windows XP Windows XP
    Opera/9.51 (Windows NT 5.1; U; nl)

    Could you please look again to the extra languages available on Google? For example, I see Swedish, Greek, Portugese, Romenian, and some more..
    (I think a droplist with every combination will get too long, and selecting only the languages you’re interested in will become neccesary eventually).

  4. using Opera 9 Opera 9 on GNU/Linux GNU/Linux
    Opera/9.52 (X11; Linux i686; U; en)

    Thanks Paul, I’m adding them right now. I’m hoping to publish Google Translator 2.2 in a week or so. I just published 2.1 to get some major backend changes out and the update notification should also help everyone.

    About the droplist…it may be necessary to do something different later, but at the moment it’s not really a problem. I just noticed that Google has now switched to this, so their language additions must be fairly recent. Thanks for the suggestions and notice that they have more languages now. I’ll see what I can do.

  5. using Opera 9 Opera 9 on GNU/Linux GNU/Linux
    Opera/9.52 (X11; Linux i686; U; en)

    @Paul
    Google Translator v2.2pre1 is up if you would like to test it. It’s still lacking several changes that I’m working on, but I did work in the dual lists for langauges and fit in the extra languages that were left out in v2.1.

    Hope that’s what you were hoping for! I’m going to spend a little more time working out some issues with v2.2 before I publish it, but it will be very close to this. Hopefully I can find the time to work in the capability to resize the widget for v2.2.

  6. using Opera 9 Opera 9 on Windows XP Windows XP
    Opera/9.52 (Windows NT 5.1; U; en)

    It seems that the copy feature in 2.2pre1 version works fine in linux..Ubuntu 8.04 with the latest weekly build, but in Windows with the latest weekly build it freezes the widget and makes it invisible to the mouse (it’s still on the screen, but clicks go straight through).

    I’m trying to get the problem worked out. It works fine in a tab in Windows, but just not as a widget. I’m about to send a bug report and send the widget to Opera to inspect for the problem.

    Let me know if you see this problem yourself and what platform you’re using as well as version of Opera. Thanks.

  7. using Opera 9 Opera 9 on Windows Vista Windows Vista
    Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1

    @zenek
    Thanks for the notice. I’m looking into the issue. It was apparently introduced with the release of Opera 9.60 beta 1 so it’s not affecting as many people as say 9.52, but I will try to get it fixed as quickly as possible none the less.

    Thank you!

  8. using Opera 9 Opera 9 on Windows Vista Windows Vista
    Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1

    @zenek
    This seems to be a bug with Opera 9.60 beta 1 and not with the widget. The only solution that I have found is this:

    After downloading the widget, switch tabs to the URL translation mode and then switch back to Text translation mode. The widget mysteriously begins working as expected.

  9. using Opera 9 Opera 9 on GNU/Linux GNU/Linux
    Opera/9.60 (X11; Linux x86_64; U; en) Presto/2.1.1

    @Tuni
    I’m currently working on making the widget resizable to any size the user would like. It’s in the works. See the “Future Changelog”, just above all of the comments.

  10. using Firefox 3 Firefox 3 on Ubuntu 9.04 Ubuntu 9.04
    Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030516 Ubuntu/9.04 (jaunty) Firefox/3.0.7

    I’ve been cleaning my external hard drives today and happened to come across saved versions of: 1.00, 1.10, 1.20

    Those old versions have now been uploaded and linked to purely for archival purposes, but the list is now complete!

  11. using Opera 10 Opera 10 on Windows XP Windows XP
    Opera/10.00 (Windows NT 5.1; U; en) Presto/2.2.0

    @Maxim
    I understand your request, however, I think that it would annoy more users than it would help. The functionality is already there to reverse the languages and also the text areas.

    If I can find a clean way to maybe add a “Both” menu item without cluttering the interface then I might work it in.

  12. using Opera 10 Opera 10 on Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10

    Dear Kyle,

    Text translation (Google Translator v2.4pre4) doesn’t work anymore with the latest Opera releases (e.g. v10.10.1892). Instead the result displays the following:

    test

    The URL translation feature still works fine, however.

    Regards, deus-ex

  13. using Opera 10 Opera 10 on Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10

    Follow up to my previous post:

    Another try to illustrate what the result window displays:

    [“SPAN title=”test” onmouseover=”this.style.backgroundColor=’#ebeff9′” onmouseout=”this.style.backgroundColor=’#fff'”]Test[/SPAN][/SPAN]

    replace “[” and “]” with “”

    Regards, deuse-ex

    1. using Opera 10 Opera 10 on Windows 7 Windows 7
      Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10

      I’ve just posted an update (2.4pre5) that should fix the issue you mentioned. I’m going to give it a bit more time for testing purposes before I submit the update to Opera Widgets, but you should see if on the official site soon. Thanks.

      1. using Opera 10 Opera 10 on Windows XP Windows XP
        Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10

        Thanks for the quick response and serving an update immediately. The updated plugin works well for me, using it with the latest Opera release v10.10.1893 now.

        Thanks again, Kyle.

        Regards, deus-ex

  14. using Opera 10 Opera 10 on Windows 7 Windows 7
    Opera/9.80 (Windows NT 6.1; U; en) Presto/2.5.24 Version/10.52

    Hello Kyle,

    unfortunately the Google Translator plugin v2.4 doesn’t work for me with the latest releases of Opera (currently v10.52.3337). I’m using Windows 7 64-bit here, and I have both the 32 bit and 64 bit version of Sun Java v1.6.0.18 installed. The error console of Opera displays the following error message:

    Uncaught exception: ReferenceError: Security violation
    Error thrown at line 128, column 2 in fTranslate() in widget://wuid-4b955aa5-1ab9-03bf-0214-1f1a1ae98fb7/js/functions.js:
    xmlhttp.send(‘hl=en&ie=UTF8&text=’+text+’&langpair=’+langpair+’&hl=en&ie=UTF8’);
    called from line 1, column 0 in (event):
    fTranslate();

    Hopefully this gives you an idea why I’m having issues here.
    Thank you and see you soon.

    Best regards
    deus-ex

  15. using Firefox 3 Firefox 3 on Windows Vista Windows Vista
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

    Google translator only translate the words, when it translate the words, it then makes no sense. If you are looking for a good translation services, there are alot in the internet (well, for some, it needs payment) which provide a better translation services.

  16. using Opera 10 Opera 10 on Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10

    С удовольствием пользовалась Вашим виджетом. Замечательный переводчик. Но, к сожалению, в последнее время, он перестал работать 🙁 Нельзя ли это исправить?

Leave a Reply

Your email address will not be published. Required fields are marked *