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

Error with Translate #118

Open
jfreak53 opened this issue Mar 11, 2016 · 4 comments
Open

Error with Translate #118

jfreak53 opened this issue Mar 11, 2016 · 4 comments

Comments

@jfreak53
Copy link

Whenever I try the translate function it errors out like so:

Traceback (most recent call last):
  File "/home/myuser/.config/Mutate/scripts/googletranslate/google_translate.py", line 53, in <module>
    if 'dict' in get_page.keys() and 'entry' in  get_page['dict'][0]:
AttributeError: 'unicode' object has no attribute 'keys'
@jed49
Copy link

jed49 commented Jun 29, 2016

Were you able to figure it out?

@samundra
Copy link

@jed49 you have to alter the google_translate.py Did you try this https://gist.github.com/samundra/d07bd2e312f7c3d0b65de4b68c91b22d ? Try replacing google_translate.py with the one provided and see if it works for you or not?

@jed49
Copy link

jed49 commented Jun 30, 2016

I tried that yesterday and it works partially.

It only translates one way though. For example if I type: tr hello the mutate application will translate to whatever target language I choose. However, if I type a word in the target language it will not translate it to the source language I specified which in this case is English.

Thanks for your help.

@samundra
Copy link

samundra commented Jul 1, 2016

It doesn't work that both way. It just translates from source to target language. The both way feature is not available in the mutate.

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

3 participants