xinebf / google-translate-for-goldendict

Add Google translate to GoldenDict
GNU General Public License v3.0
276 stars 57 forks source link

A small question about your source code #8

Closed moorejee closed 5 years ago

moorejee commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.