Fixed a bug
git-svn-id: file:///srv/svn/repo/mai/trunk@32 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
@@ -277,6 +277,10 @@ func (_ *GoogleTranslate) Translate(text string, from, to string) (TranslationRe
|
||||
}
|
||||
}
|
||||
|
||||
if from == "auto" {
|
||||
from = ""
|
||||
}
|
||||
|
||||
return TranslationResult{
|
||||
SourceLanguage: from,
|
||||
Definitions: definitions,
|
||||
|
||||
Reference in New Issue
Block a user