Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless space in translation #41

Open
Sapereaude9 opened this issue Jul 14, 2021 · 1 comment
Open

Useless space in translation #41

Sapereaude9 opened this issue Jul 14, 2021 · 1 comment

Comments

@Sapereaude9
Copy link

Sapereaude9 commented Jul 14, 2021

This is not a huge problem, but has anybody else noticed the useless space at the end of the string returned by calls to translator.translate(text, lang_tgt = translated_to)?

space issue github

"at the back :", rather than "at the back:"

I'm sure that if I looked through the source code I could resolve it myself, but I'm feeling lazy...

@Sapereaude9
Copy link
Author

If anybody else cares about this problem, the solution is to replace line 170 with

translate_text = translate_text[0:-1]

in google_trans_new.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant