Mini Translator

Fast google translation in the status bar.

Fast google translation in the status bar. Default language is Georgian but you can easily choose another it with changing ka in this line:

&langpair=|ka

to desired language's indicator characters (for example en for English and ru for Russian)

script author is Lex1

Syndicate content

Tested with Opera version(s): 
10.50
Your rating: None Average: 4.6 (20 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

How to use?

How to use?

just mark text

just mark text

Problem

It shows: 400: Could not reliably detect source language

for me too :SType the

for me too :S

damn

Great!

google your language and put ISO 639-1 language code there

or go here

http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

639-1 row is your code put it there and you are good to go. 

:S

I'm Georgian and my 639-1 code is "ka" and it was put as a default. Other suggestions?

asdadass

its because google translate for georgian is still in beta, because it works with every other language.

[url]javascript:ujs_google_tr

[url]javascript:ujs_google_translate('auto|ru')[/url]

BEST

This is without a doubt one of the best scripts I've ever seen.

Wonderful

It´s simple, and I love it! Thank you Lex1 to share it!

Fix

it works wonderfully

it works wonderfully

Genious!

This is a really neat feature! Bravo!

This is great

I like this a lot!

Could you perhaps add an option switch to make it work only when a hotkey is pressed (for example Ctrl key)

i'm not author or programmer

i'm not author or programmer but i promise i'll try that tomorrow

Found it!

I found it already!  

On line 12, turn this:

if(!e

into this:

if(e

Easiest hack ever! :)

That was for using the

That was for using the Ctrl+select text combo.

If you want another combination just remove the exclamation mark from any (or all) of the keywords: !e.ctrlKey && !e.shiftKey && !e.altKey

For example to make it work with Ctrl+Alt+select, the line would become: e.ctrlKey && !e.shiftKey && e.altKey

Clipboard copy?

Lex, how about an option to auto-append the translation to the clipboard?
If possible without overwritting the current clipboard but added as a new line each time (or at least at the end of the previous line)?

Great idea.thanks :)

Great idea.thanks :)

Other bar

is it possible in other bar?

other bar

you could do that by adding Status field to the toolbar you want

How can i install, or make it

How can i install, or make it work??

Installation instructions for

Installation instructions for the script itself are in the yellow field on the right. To change the language settings you need to edit the .js file with a text editor like notepad.

thank you

love this js, thanks!

thank a lot!

Thank you!
I translate from english to german. So i changed line 22:
&langpair=|ka to &langpair=|en

Works pretty fine.

Sorry....i changed in line

Sorry....i changed in line 22:

&langpair=|ka to &langpair=|de

Does not work

It worked for me in previous Opera version, but now, i'm on 11.01 build 1190 Linux, it doesn't work anymore...

UPD

Opera 11.11. It works fine.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.