fastaddons / WebTranslate

Other
15 stars 3 forks source link

cannot set target translation language as permanent. #3

Closed joschan closed 3 years ago

joschan commented 3 years ago

Describe the bug
The settings allows users to choose different target translation language. However, when translate a new word, the target translation language always pick the top of the language list, which is "Afrikaans"

Steps To Reproduce
Steps to reproduce the behavior:

  1. On web page, select the words
  2. rigth click and open ... Translate "selected word"
  3. The problem is that the target language always the first/top of the language list which is "Afrikaans". Change to "Japanese"
  4. Repeat step 1 and 2
  5. Translated to "Arfikaans"

Check settings, it was set to "Japanese"

Expected behavior
A clear and concise description of what you expected to happen. The target language should be set to the preferred language until manual intervention.

Device info:

Additional info Add any other info about the problem here.

Juraj-Masiar commented 3 years ago

Hello, could you check your settings? On the left side click the gear icon and see the "Translate to" field at the top. This is the default translation language.

joschan commented 3 years ago

Hi, my mistakes, it wasn't the "Japanese" language having the problem, I can confirm "Japanese" stays. However, I was using "Chinese (Simple)" and also tried "Chinese (Traditional)". I will provide screen shots. Screen shot 1: in Settings, I set to Chinese (Simple) Screen shot 2: I set to Chinese (Simple) Screen shot 3: I triggered your translation program, and it reverted back to "Afrikaans"

Screenshot 2021-01-22 193012 Screenshot 2021-01-22 193041 Screenshot 2021-01-22 193109

fastaddons commented 3 years ago

Ah, yes, this is actually a different problem. The "Google Translate" provider is broken in Chrome (due to new security protection) and it works only in Firefox. So in Chrome the translator will fall-back to the "Microsoft Translator" - but this doesn't support that many languages so if it doesn't find target language it will choose the fist one it finds.

Anyway, what you should do is switch to "Microsoft Translator" in the Settings and then choose target language from the updated list - this will contain only supported languages.

In the next version I will try to fix this somehow to avoid confusion...

joschan commented 3 years ago

Yes. Thank you for the explanation. I have changed to Microsoft Translator as advised. Working well so far.