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

A small question about your source code #8

Closed
moorejee opened this issue May 26, 2019 · 2 comments
Closed

A small question about your source code #8

moorejee opened this issue May 26, 2019 · 2 comments

Comments

@moorejee
Copy link

Hi xinebf,
It is very grateful for your code.
But I have a small question about the line 84 code "if resp[2] == target_language", I think the sign of equality should be the sign of inequality.

@xinebf
Copy link
Owner

xinebf commented May 27, 2019

resp[2] is source language.

if resp[2] == target_language:
    ...

When the source language is equal to the target language, the source language is translated into an alternate language

@moorejee
Copy link
Author

resp[2] is source language.

if resp[2] == target_language:
    ...

When the source language is equal to the target language, the source language is translated into an alternate language

Well, thanks for your explanation.

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

2 participants