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 Responses to “Google Translator (Widget)”


Leave a Reply