Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: siria
Date: July 05, 2019 12:52AM

If that looks familiar: yep this macro was already posted in Oct.2018, in another topic.
http://kmeleonbrowser.org/forum/read.php?2,147819
Just thought it's much easier to find here, in an own little topic in extensions forum, and not hidden in the middle of a long, very technical and partly offtopic discussion. Code is still the same, just updated the forum link inside.



MENU:
1) Tools > Translation > Using > Hack...
2) Or right-click on selected text > Translation > Using > Hack...

This is only a supplement macro, to add YANDEX and BING to the translation services.
It only switches 2 native URL-prefs, nothing else:
kmeleon.plugins.macros.translate.service.url.page = http... (native KM)
kmeleon.plugins.macros.translate.service.url.text = http... (native KM)


All the rest is handled by the original "translate.kmm" macro.
IMPORTANT:
only works if this original macro is set to GOOGLE, not to babelfish.
(current best version here: http://kmeleonbrowser.org/forum/read.php?9,145440 )
(older and perhaps future versions at http://kmeleonbrowser.org/forum/read.php?9,98467 )

WARNING:
Some translations are just hysterical, but others can be dangerously misleading!
Just do your own little comparison tests between Google-Yandex-Bing (or DeepL)
Would never have imagined, but with Yandex it can even happen that parts of translations are silently omitted, without any notice, or other parts freely invented out of nothing!
Google translations still seem the most reliable. And if it can't translate something, it shows at least the original text.
BUT even Google makes not only grave mistakes too, but also invents freely all sorts of nonsene, e.g. when translation mumumu or such! reddit is full with examples:
READ ==> https://www.reddit.com/r/googletranslate/
Another Yandex prob last year was text cropped at the end. Then noticed it's there, just invisible, due to missing scrollbars. Only Copy&Paste into a text editor showed the complete text.

INSTALLATION:
copy the attached kmm-file into a macros folder (global one, or create it manually in profile)
Restart browser, open menu Tools > Translation > Using > click on Google, Bing etc.

UNINSTALL: use menu to first reset to Hack=Google, then remove the kmm file and restart

Version 2.0 from 2018-10-08 (for Yandex+Bing: beta)
Version 2.01 only updated the forum link (Download v2.01)



Edited 4 time(s). Last edit at 07/15/2019 07:15PM by siria.

Attachments: TranslateHack_YandexBing.kmm (5.1 KB)  
Options: ReplyQuote
Re: TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: Anonym
Date: July 05, 2019 05:59AM

@siria thanks!

Options: ReplyQuote
Re: TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: siria
Date: July 05, 2019 06:11AM

Thank you Anonym smiling smiley
It's a pity you don't understand any English. Hope the translate services work well enough.

By the way, forgot to mention:
even KG76.2 still contains the extremely outdated macro from the beginning of the internet.
It shocks me every time I see it, that it still forbids httpS. Users who get the infamous error
"Sorry, local and secure pages cannot be translated!"
please replace "translate.kmm" with the fixed version
from KG76.2-PRO, here:
http://kmeleonbrowser.org/forum/read.php?21,149551
or better here, attached directly:
http://kmeleonbrowser.org/forum/read.php?9,145440



Edited 4 time(s). Last edit at 07/10/2019 03:27PM by siria.

Options: ReplyQuote
Re: TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: Anonym
Date: July 05, 2019 07:38AM

@siria
I know replaced it a long time ago,OK*),thank you!

Options: ReplyQuote
Re: TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: Cixert
Date: July 15, 2019 05:38PM

Where do I download the extension to translate with Google? I can not find the link.

Options: ReplyQuote
Re: TRANSLATE with YANDEX or BING, or Google (tiny helper macro)
Posted by: siria
Date: July 15, 2019 07:20PM

Quote
Cixert
Where do I download the extension to translate with Google? I can not find the link.

No need to download, it's just a macro (/macros/translate.kmm) and already included out-of-box since decades.
But in all KM-versions before last week the macro is badly outdated, it forbids to translate httpS pages. Better overwrite it with rodocops version from here:
http://kmeleonbrowser.org/forum/read.php?9,145440

You find the menu in TOOLS or when right-clicking on selected text, see my posting above.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.