You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello, I've discovered a method that isn't about the bug-like itself, but rather the context of the term.
for codeLanguage, languageName in lang.items():
if languageBase.lower() == languageName:
try:
constellationTranslated =translator.translate(constellation , dest =codeLanguage)
dateTranslated = translator.translate(newConstellationNorth.get(constellation), dest = codeLanguage)
except TimeoutError:
time.sleep(10)
constellationTranslated =translator.translate(constellation , dest =codeLanguage)
dateTranslated = translator.translate(newConstellationNorth.get(constellation), dest = codeLanguage)
except TypeError:
time.sleep(10)
constellationTranslated =translator.translate(constellation +" constellation", dest =codeLanguage)
dateTranslated = translator.translate(newConstellationNorth.get(constellation), dest = codeLanguage)
As you can see, attempting to obtain the word does not work in all languages, but attempting to obtain the term using other words that provide context may be successful.
In Portuguese, for example, "Gemini" contains both male and female translations, but by adding the term "constellation", such as "Gemini constellation," the translation is now accurate.
Googletrans version:
I'm submitting a ...
Current behavior:
Line 120 in
client.py
, the return valuer
fromself.client.post()
is incompleted/incorrect.Got
for
r.text
Expected behavior:
According to
3.1.0a0
version,r.text
should be similar to (at least contains "Pelacur" )Steps to reproduce:
Related code:
Other information:
Related Issues: #267 #278
The way to handle
url
/data
/params
variables inside_translate
function could be incorrect. A further investigation is needed.The text was updated successfully, but these errors were encountered: