
Probably everyone knows the context menu of the opera.
I want to tell how to set up this menu for easier translation.
I myself use the 2nd services for translation on the Internet - this is
Yandex.Scripts and
Google.Translate and we will integrate them =) Although you can tie any other online translator.
First we need to create our personal menu.
Go to
Tools -> Preferences -> Advanced -> Toolbars in
Menu Setup, select Opera Standart and click on the
Duplicate button.
After that, another
Opera Standart Copy menu item should appear.
Now we need to edit the items of the newly created menu, to do this, open the file
\ AppData \ Roaming \ Opera \ Opera \ menu \ standard_menu (1) .iniand in it we are looking for the next line "[Translate menu]". Delete everything before "[Image Popup Menu]".
I do not need translators provided by the opera, because They do not work with the Russian language.')
It remains to fasten the translator from Google. Add the following lines after "[Translate menu]":
Item, English to Russian = Go to page, "javascript:void(inivar='%t')",,, "l_russian" & Go to Page,"javascript:if(typeof google_translate=='function'){google_translate('auto|ru')}else{void(window.open('http://translate.google.com/translate'+(document.selection.createRange().text?'_t?text='+document.selection.createRange().text:'?u='+escape(location.href))+'&hl=ru&langpair=auto|ru&tbb=1'+(document.characterSet?'&ie='+document.characterSet:'')));}"
Item, Russian to English = Go to page, "javascript:void(inivar='%t')",,, "l_english" & Go to Page,"javascript:if(typeof google_translate=='function'){google_translate('auto|en')}else{void(window.open('http://translate.google.com/translate'+(document.selection.createRange().text?'_t?text='+document.selection.createRange().text:'?u='+escape(location.href))+'&hl=ru&langpair=auto|en&tbb=1'+(document.characterSet?'&ie='+document.characterSet:'')));}"
--------------------1
Item, = Go to page,"http://slovari.yandex.ru/search.xml?text=%t&st_translate=1"
I would also like to change the behavior of the
Dictionary menu, I want that when I select this item, I have opened Yandex.
Dictionaries .
Well, this is not difficult to do.
Replace the string
Item, MI_IDM_SELDICTIONARY=Hotclick search, 50"
on
Item, MI_IDM_SELDICTIONARY=Go to page,"http://slovari.yandex.ru/search.xml?text=%t&st_translate=1"
It now remains to indicate the opera, use our menu. Go
Tools -> Preferences -> Advanced -> Toolbars in
Menu Setup ,
Select
Opera Standart Copy and click OK.
Based on:
linkMy menu:
my_menu.ini I think it might be useful as an example. But don't use it in Opera 9, because This is a modified menu version 10.