My programs for Opera

Google translate

, ,

google-translate.oex for Opera 11.

google-translate.js for Opera 8.5-10.6



Integration in menu for Opera 11
As written below, but with the similar code:

javascript:window.postMessage('ujs_google_translate_auto|ru','*')



Integration in menu for Opera 8.5-10.6
Add in menu.ini:
[Google Translate menu]
Item, "English to Russian"="Go to Page,"javascript:ujs_google_translate('en|ru')",,, "l_english""
Item, "English to Arabic"="Go to Page,"javascript:ujs_google_translate('en|ar')",,, "l_english""
Item, "English to Spanish"="Go to Page,"javascript:ujs_google_translate('en|es')",,, "l_english""
Item, "English to Italian"="Go to Page,"javascript:ujs_google_translate('en|it')",,, "l_english""
Item, "English to Chinese"="Go to Page,"javascript:ujs_google_translate('en|zh')",,, "l_english""
Item, "English to Korean"="Go to Page,"javascript:ujs_google_translate('en|ko')",,, "l_english""
Item, "English to German"="Go to Page,"javascript:ujs_google_translate('en|de')",,, "l_english""
Item, "English to Portuguese"="Go to Page,"javascript:ujs_google_translate('en|pt')",,, "l_english""
Item, "English to French"="Go to Page,"javascript:ujs_google_translate('en|fr')",,, "l_english""
Item, "English to Japanese"="Go to Page,"javascript:ujs_google_translate('en|ja')",,, "l_english""
--------------------1
Item, "Russian to English"="Go to Page,"javascript:ujs_google_translate('ru|en')",,, "l_russian""
Item, "Arabic to English"="Go to Page,"javascript:ujs_google_translate('ar|en')",,, "l_arabic""
Item, "Spanish to English"="Go to Page,"javascript:ujs_google_translate('es|en')",,, "l_spanish""
Item, "Italian to English"="Go to Page,"javascript:ujs_google_translate('it|en')",,, "l_italian""
Item, "Chinese to English"="Go to Page,"javascript:ujs_google_translate('zh|en')",,, "l_chinesetr""
Item, "Korean to English"="Go to Page,"javascript:ujs_google_translate('ko|en')",,, "l_korean""
Item, "German to English"="Go to Page,"javascript:ujs_google_translate('de|en')",,, "l_german""
Item, "Portuguese to English"="Go to Page,"javascript:ujs_google_translate('pt|en')",,, "l_portuguese""
Item, "French to English"="Go to Page,"javascript:ujs_google_translate('fr|en')",,, "l_french""
Item, "Japanese to English"="Go to Page,"javascript:ujs_google_translate('ja|en')",,, "l_japanese""


And add in [Hotclick Popup Menu]
Item, "To English"="Go to Page,"javascript:ujs_google_translate('auto|en')",,, "l_english""
Submenu, "Google Translate", Google Translate menu

oGet 1.9.8oGet 2

Comments

kowloons Saturday, April 28, 2007 12:59:29 AM

Very Good nice!

kinkinnik Tuesday, May 1, 2007 8:50:36 AM

I found it has conflict with extra-download-link script.While this two userjs place in same folder,The translate popup can't jump out.Hope it could be fix soon. Thanks.

A.RuzanovLex1 Wednesday, May 2, 2007 11:47:49 AM

Very strange. I fixed this problem in version 1.5.2. Now this work good for me.
What versions for you?

kinkinnik Wednesday, May 2, 2007 12:03:46 PM

I am using 1.3 before. I update to 1.5.2. Great!now it is working.Thanks for your kindly help.

Nexus009 Sunday, May 13, 2007 11:00:54 AM

grazie Lex1 up

Misty Blueseemille Sunday, May 20, 2007 7:31:10 AM

잘 쓰겠습니다. wink

It works, many thanks.

Anonymous Friday, February 22, 2008 6:44:35 PM

Anonymous writes: I tried to insert the text into menu.ini (standart_menu.ini for me) after having the script installed, but it doesnt work *help*

A.RuzanovLex1 Friday, February 22, 2008 10:24:43 PM

Check that you added it to the necessary menu. Read about UserJS installations.
Good luck.

deckard_slash Tuesday, May 6, 2008 11:01:33 AM

thank you , very very much up up up up up up

Leonardo Alassialeoalassia Tuesday, May 6, 2008 3:59:01 PM

could you make a babelfish version?
thanks

A.RuzanovLex1 Tuesday, May 6, 2008 5:47:14 PM

leoalassia
It not interesting for me. Babelfish translation worse than Google.
You can use google-translation with tooltip from Ayush.

Anonymous Sunday, September 7, 2008 2:39:51 AM

Jose De Jesus Madrigal writes: Do you need permission from google to do this? I ask because I would like to use google translate for a project of my own and don't know if I should even try to do it or if it is a waste of time. Thanks very much for any help. Jose

A.RuzanovLex1 Sunday, September 7, 2008 10:54:53 AM

Hmm.. I did not do it. I think you need official permission only if plan to do a large project or use it on site.

A.RuzanovLex1 Friday, December 12, 2008 5:01:15 PM

Btw, if you use Ad Muncher or Outpost Firewall, download the archived version.

Ahmad AdamLogiphile Saturday, March 28, 2009 9:57:57 PM

smile cool, work so good thanks very much party

A.RuzanovLex1 Sunday, March 29, 2009 9:19:41 AM

but it doesn't work with me


You are right, it's old топик and «javascript:google_translate('en|ru')» has been changed on «javascript:ujs_google_translate('en|ru')»

Anonymous Monday, May 18, 2009 6:05:46 PM

NotMyBug writes: WARNING: The Lex script (Google Translation in tooltip) will prevent you from accessing this site any longer! As well some other websites might be blocked. That's because this Opera server does not accept 3rd party cookies and answers with an HTTP error code. Note that the Lex script uses own cookies to save the user preferences. Also note that every cookie created for a domain is sent to the appropriate server despite the fact that server does not accept 3rd party cookies. So be warned, if you encounter problems after script installation and on the second reload of this page here, then first remove the script, then clear your cookies and try reloading again. That's not a bug in Lex's script but more an issue of hypersensitive configured servers. Anyways it will cause severe problems.

A.RuzanovLex1 Monday, May 18, 2009 6:32:28 PM

Google Translation in tooltip


This script created by Ayush.
My google-translate.js don't use cookie.

metude Sunday, August 2, 2009 4:05:37 PM

Is there Turkish to English Translation?

A.RuzanovLex1 Monday, August 3, 2009 9:54:36 AM

Item, "Turkish to English"="Go to Page,"javascript:ujs_google_translate('tr|en')",,, "l_turkish""

metude Monday, August 3, 2009 1:20:26 PM

Thank you for your help.

combomax Thursday, September 10, 2009 12:39:50 PM

Now the script mostly doesn't auto translate for selected text. I have latest version 1.6.26 I use auto to english via button.

Examples:

Чтобы потерять девять жизней за миг, необязательно прыгать с девятого этажа.

Tu vois, je t'aime comme ça


A.RuzanovLex1 Thursday, September 10, 2009 8:03:04 PM

Hmm.. Strange. Try it later with other text. Maybe temporary problem on google?

A.RuzanovLex1 Wednesday, March 3, 2010 5:12:01 PM

Updated for full compatibility with Opera 10.5.

metude Saturday, March 6, 2010 8:51:34 AM

Originally posted by Lex1:

Updated for full compatibility with Opera 10.5.


Thanx...

Anonymous Thursday, March 25, 2010 6:03:28 AM

Ðноним writes: непонимаю - скопировал с папку userjs перезапустил оперу (у меня 1050) а при клике левой кнопкой мыши на тексте - в меню "перевести" нет вариантов с русским тестом как в ту сторону так и обратно... только манипуляции с английским...

A.RuzanovLex1 Thursday, March 25, 2010 10:36:57 AM

Anonymous Friday, March 26, 2010 4:21:17 AM

Vanya writes: Большое спасибо.

cremoso Friday, April 2, 2010 12:06:06 AM

Hi, I have a version of your script for spanish translation, there is a difference in the option for add in [Hotclick Popup Menu], is:
Item, "Traducir con Google"="Go to Page,"javascript:if(typeof ujs_google_translate=='function'){ujs_google_translate('auto|es')}else{void(window.open('http://translate.google.com/translate'+(document.selection.createRange().text?'_t?text='+document.selection.createRange().text:'?u='+escape(location.href))+'&hl=es&langpair=auto|es&tbb=1'+(document.characterSet?'&ie='+document.characterSet:'')));}",,,"contact11""
. Well, in Opera 10.10 there was no problem, but in Opera 10.51 there are some sites where the script works and other sites where it doesn't. Mainly, in My.Opera forums like this, the script just shows a little square with no translation.

It looks BAD in MyOpera: http://files.myopera.com/cremoso/files/box%20myopera.PNG
It looks GOOD in Wikipedia: http://files.myopera.com/cremoso/files/box%20wiki.PNG

Can you help me with this? Does your script work well in MyOpera for Opera 10.51? Thanks for your attention.

A.RuzanovLex1 Friday, April 2, 2010 5:22:49 AM

Not problem for me:

cremoso Friday, April 2, 2010 5:48:17 AM

Mmmm now I used this version for English, exactly the same script and the same instructions here, and still have the problem... maybe it's another thing, I can see you don't have problems in MyOpera, but I do (and other spanish users too).

Thank you anyway, it's still useful for some sites, a great script no doubt, too bad it doesn't work for MyOpera and others.

A.RuzanovLex1 Friday, April 2, 2010 6:14:41 AM

Do you use non-standard skin? Maybe try the standard?

cremoso Friday, April 2, 2010 4:17:35 PM

I also tried with the standard skin, and the problem continues. By the way, thanks for answering.

Anonymous Sunday, April 11, 2010 5:35:48 PM

αλεκÑÎ±Ð½Ð´Ï writes: Хороший скрипт, часто выручает. Спасибо!

z@h3kZAHEK Thursday, June 3, 2010 12:55:45 PM

Hi Lex1,
Is there any chance to change start type of this script? I mean when we choose a word , translation screen shoul appear automatically on screen..If it is easier to do it, pls make it.
Thanks.

z@h3kZAHEK Thursday, June 3, 2010 2:05:46 PM

A.RuzanovLex1 Monday, June 14, 2010 1:05:26 PM

Thanks. border-radius and box-shadow added to original script.

z@h3kZAHEK Monday, June 14, 2010 3:09:23 PM

Good.

metude Friday, June 18, 2010 3:58:48 PM

Is working with 10.6 - 3426?
I'm selecting a text and clicking to Turkish but it shows only "Translating... blank screen" and doesn't translating...

z@h3kZAHEK Friday, June 18, 2010 8:49:41 PM

can it be regard with translate service?

A.RuzanovLex1 Friday, June 18, 2010 9:59:22 PM

metude
Original version already updated. This version - not.

z@h3k

if(result || status)e.source.postMessage('google_translate'+encodeURI(result)+'|'+encodeURI(status)+'|'+encodeURI(location.href), '*');


f.onload = function(){(window.postMessage ? f.contentWindow : f.contentDocument).postMessage('google-translate', '*')};

metude Saturday, June 19, 2010 5:11:18 PM

Now works...
Thanx a lot...

Anonymous Saturday, July 24, 2010 9:02:35 PM

chambo writes: it doesnt work for few weeks, it just says translating, but never translates.

Anonymous Saturday, July 24, 2010 9:07:15 PM

chambo writes: sry my bad, i changed my userJS folder recently, and forgot to put 1.7.1 in new, had it only in old, but i copied 1.6.3, so thats why it wasnt working. updated to 1.7.1 everywhere, now it works. tyvm

metude Saturday, July 24, 2010 9:07:32 PM

Update script. I had that problems before updating...

cremoso Tuesday, July 27, 2010 11:28:14 PM

Oh, finally it works for me! it has some conficts with the userjs "AdSweep"; I don't remember if I tried with the script alone, but maybe it would be good to check the conflict between the 2 scripts. Thanks Lex1.

Anonymous Friday, July 30, 2010 7:03:13 PM

JSawyer writes: Excellent scripts. Spasibo!

z@h3kZAHEK Friday, August 6, 2010 1:52:03 PM

Pls check it with last snapshot- 10.70
It doesn't work.

metude Saturday, August 7, 2010 11:47:56 AM

Originally posted by ZAHEK:

Pls check it with last snapshot- 10.70
It doesn't work.


Not confirmed. Works for me...

z@h3kZAHEK Saturday, August 7, 2010 12:21:51 PM

Originally posted by metude:

Not confirmed. Works for me


Sure? Send me pls a PM smile

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies