Open Kristinita opened 1 year ago
Thanks for the report. That's odd. I think this have something to do with the "mobile API" usage (see https://github.com/crow-translate/crow-translate/issues/519 for details). We use mobile API because Yandex started using some sort of encryption, but mobile API works. Do you have a mobile app to test it?
@VolkMilit you may be interested in it.
We don't use "mobile" API, we just set mobile UserAgent, so this is completly Yandex fault.
Yandex has changing something recently, and there is no "desktop" API anymore. At least, it will return 410 every time. I think, they just block it, if it's not used from their client.
Oh, right. Could you try the examples, what JSON do you receive?
Ok, after some attempts, I can't reproduce this issue using cURL:
curl 'https://translate.yandex.net/api/v1/tr.json/translate' --data 'ucid=f0c7414586f64fdb8cb58d12ad46a96b&srv=android&text=Muovendo da questa interpretazione, l’inciviltà, piuttosto che essere il problema, diventa il sintomo di questioni ben più preoccupanti, come le disuguaglianze politiche e sociali, la discriminazione o la negazione di pari libertà e diritti a tutti i membri della comunità.&lang=ru'
{"code":200,"lang":"it-ru","text":["Исходя из этой интерпретации, невежливость, а не проблема, становится симптомом гораздо более тревожных проблем, таких как политическое и социальное неравенство, дискриминация или отрицание равных свобод и прав для всех членов сообщества."]}
But issue indeed existing into Crow. That is very odd.
EDIT: After further invistegation, we've found that any percent-encoded symbols change translations drastically. What the actual F?!
1. Summary
I get highly inadequate translations of some sentences of one book in Italian using Yandex Translate in Crow Translate.
2. Steps to reproduce
I selected texts from the
Source text
sections of this issue → I pressed my global shortcut for theTranslate selected text
action.3. Examples
From the book “La politica dell’inciviltà” by Sara Bentivegna and Rossella Rega.
3.1. Example 1 — Islamic literature and Messenger of Allah
3.1.1. Source text
From the page 41:
3.1.2. Expected behavior — Yandex Translate online
Yandex Translate online:
3.1.3. Bug behavior — Crow Translate + Yandex Translate
Let’s translate this into English:
The source text doesn’t contain anything about Islamic literature and Allah. Where did this come from?
3.2. Example 2 — The Beatles
From the page 44:
3.2.1. Expected behavior — Yandex Translate online
Yandex Translate online:
3.2.2. Bug behavior — Crow Translate + Yandex Translate
Let’s translate this into English:
What is The Beatles doing here? The source text doesn’t contain anything about this music group.
4. Reproducibility
4.1. Not reproduce
I don’t reproduce this problem:
English
asPrimary Translation Language
in Crow Translate settings, and Crow Translate, respectively, translated texts from Italian to English, and not from Italian to Russian4.2. Reproduce
I reproduced this problem with enabled and disabled Crow Translate option
Simplify Source
.5. Environment
Translation settings:
Thanks.