DEV Community

zupffwhy
zupffwhy

Posted on • Updated on

google translate element (Firefox add-on)

google translate element – Get this Extension for 🦊 Firefox (en-US)

Example settings for each translation site. The target language is Japanese.
DeepL Translator
Text Translator: https://www.deepl.com/translator#en/@lang@/@text@

η™ΎεΊ¦ηΏ»θ―‘ (Baidu Translate)
Text Translator: https://fanyi.baidu.com/#auto/@lang@/@text@

Papago
Text Translator: https://papago.naver.com/?sk=auto&tk=@lang@&st=@text@

γ‚¨γ‚­γ‚΅γ‚€γƒˆ 翻訳 (Excite Translate)
Text Translator: https://www.excite.co.jp/world/english/?before=@text@

Weblio 翻訳 (Weblio Translate)
Text Translator: https://translate.weblio.jp/?lp=EJ&originalText=@text@
Page Translator: https://translate.weblio.jp/web/english?lp=EJ&url=@url@&sentenceStyle=spoken

Yandex Translate
Text Translator: https://translate.yandex.com/?lang=@source_lang@-@lang@&text=@text@

Top comments (45)

Collapse
 
omtatsat profile image
OmTatSat

Hello, thank you for great addon!
I want ask to add to ignore not only specific page, but all domain.
In example, i don't need to translate all facebook, but every time when i open facebook with sub addresses i have to disable translation again
Can you please add this ability?

Collapse
 
zupffwhy profile image
zupffwhy • Edited

Sorry for the late reply. For some reason I didn't receive an email from Dev.to. So I didn't notice your comment until today. I don't think this add-on has the ability to ignore certain pages. It only has the ability not to translate pages written in certain languages.

Collapse
 
omtatsat profile image
OmTatSat

Can you please add this ability?
In the previous message, I meant this button in the screenshot
dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

I understood what you are talking about. The part of the image is part of Google Translate Element, a service of Google. That part is Google code and I can't change it. However, I can add the ability to specify on which page this add-on inserts the Google Translate Element toolbar. However, it takes man-hours. Can you pay the cost? If Facebook is written in a language you understand, why not set options on the options page so that pages written in that language are not automatically translated?

Thread Thread
 
omtatsat profile image
OmTatSat • Edited

I see, it is fair.
"why not set options on the options page so that pages written in that language are not automatically translated?"
I already set it, i don't know why, but some times it is still insert Google Translate Element in pages with excluded for translate languages. May be on that pages exist some words in english or other languages...
Also, some sites with the inserted translation are not correctly displayed, it is sites that also i thought to turn off translate.

Thread Thread
 
zupffwhy profile image
zupffwhy

I'm a little curious, can you tell me the specific URL and your language settings that don't translate automatically?

Thread Thread
 
omtatsat profile image
OmTatSat • Edited

you mean translated page despite auto translate disabled for the language?

Thread Thread
 
zupffwhy profile image
zupffwhy

Yes. And a list of languages for which you have disabled automatic translation.

Thread Thread
 
omtatsat profile image
OmTatSat

ok, when i will see one, i will post it here
my disabled languages is
ru,uk

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

You can tell which language the add-on recognizes the page by displaying the context menu.
context menu

Thread Thread
 
omtatsat profile image
OmTatSat

this is great, i don't know it before!
thank you, i will test it with mistranslated page

Thread Thread
 
zupffwhy profile image
zupffwhy

This is an advertisement, but if you use Twitter, try the translation feature of my other add-on.
addons.mozilla.org/firefox/addon/t...

Thread Thread
 
omtatsat profile image
OmTatSat

For now i am not used twitter, but if i will use it in future i will try your addon, thank you

Thread Thread
 
zupffwhy profile image
zupffwhy

Are you fluent in Ukrainian? If so, could you translate the message for this add-on into Ukrainian? If you do so, I will create a function that does not translate the specified URL.
crowdin.com/project/googletranslat...

Thread Thread
 
omtatsat profile image
OmTatSat

Yes, I spoke freely in Ukrainian, i can translate for you!)
Also i already helped with translation in Russian)

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

Wow. Then I owe you already. I will create this feature as soon as I have time. Please translate it into Ukrainian.

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

Did you know that there are 3 pages of messages to translate?
screenshot

Thread Thread
 
omtatsat profile image
OmTatSat

Great!)
Ok)
I will try my best to translate all not translated definitions to Ukrainian language

Thread Thread
 
omtatsat profile image
OmTatSat

100% done)

Thread Thread
 
omtatsat profile image
OmTatSat

I noticed that in the new versions, the Save button does not save the settings, I tried take a test with the pure Firefox profile, the problem is preserved in the new - pure Firefox profile either((
I use Firefox 68.12.0esr, Windows 10 x64.

Thread Thread
 
zupffwhy profile image
zupffwhy

Could you also translate the remaining two messages in Russian?

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

I haven't tested it on older versions of Firefox or ESR. But I don't think It can't save the data on the options page. Which specific data cannot be saved? Do you still have problems with Fireofx 92?

Thread Thread
 
omtatsat profile image
OmTatSat

"Could you also translate the remaining two messages in Russian?" done)
Any changes can't be saved((
I tested with Fireofx 92 portable version, and in it save button working fine.

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

I've never used ESR so I'm not sure about ESR. Either way, I don't test it on older versions of Firefox, so it's no wonder it doesn't work. Please use the new version of Firefox.
I've added a new message so please translate it. Once translated, I can release a version with a new feature.

Thread Thread
 
omtatsat profile image
OmTatSat

Ok, i have already started to setup new version of Firefox)
Translation is done)

Thread Thread
 
zupffwhy profile image
zupffwhy

I have released a new version of google translate element.

Thread Thread
 
omtatsat profile image
OmTatSat

Great!) Thank you! Update working great!) Already had exclude one site with problem!)
You can take a look the site where are ru,uk exclude for auto insert google translate element doesn't work
next.privat24.ua/
dev-to-uploads.s3.amazonaws.com/up...
dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
omtatsat profile image
OmTatSat • Edited

Fixed critical error in translation in Crowdin. Sorry for the mistake.

Thread Thread
 
zupffwhy profile image
zupffwhy • Edited

Your browser seems to be quite customized. Will this site be translated automatically if I only install this add-on with a new profile? Also, what is the language setting of the browser?

Thread Thread
 
omtatsat profile image
Thread Thread
 
omtatsat profile image
OmTatSat • Edited

If i insert en in language for translation then google translate element not inserted
Language of page sometimes is determined like ru sometimes is uk, but google translate element is always inserted.

Thread Thread
 
zupffwhy profile image
zupffwhy

Does this mean Russian?

Thread Thread
 
omtatsat profile image
OmTatSat

yes

Thread Thread
 
zupffwhy profile image
zupffwhy


What happens to the add-on if the preferred language is ru instead of ru-ru?

Thread Thread
 
omtatsat profile image
OmTatSat

same problem

Thread Thread
 
omtatsat profile image
OmTatSat

I noticed if i do ctrl f5 - refresh page without cache, then google translate element is not inserted. But if i refresh page with just f5, the google translate element is inserted.

Thread Thread
 
zupffwhy profile image
zupffwhy

Try version 2.2021.1007.3.

Thread Thread
 
omtatsat profile image
OmTatSat

Great!) Bug is terminated!)
Thank you!

 
omtatsat profile image
OmTatSat

"What happens to the add-on if the preferred language is ru instead of ru-ru?" also i tried to add uk - Ukranian language in that menu, and have same problem.

Thread Thread
 
zupffwhy profile image
zupffwhy

Do you still have the problem?

Thread Thread
 
omtatsat profile image
OmTatSat

No, this is the old message. New update solve the problem, thank you!)

Thread Thread
 
zupffwhy profile image
zupffwhy

I see.

Thread Thread
 
zupffwhy profile image
zupffwhy

I've added the ability to add stylesheets so I think you can reach your goal.

Collapse
 
gatinhonico profile image
Gatinho

Hello, i'm gatinhonico, i was working on french translation.
There is a problem with french translation in the option page of the addon.
It's a problem of display with text in french.

Collapse
 
zupffwhy profile image
zupffwhy

What is the problem? If it's about translation, let's talk on Crowdin.