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

Copy to Clipboard can't find by pressing shift+enter. #4

Open
lovebdsobuj opened this issue Sep 8, 2016 · 8 comments
Open

Copy to Clipboard can't find by pressing shift+enter. #4

lovebdsobuj opened this issue Sep 8, 2016 · 8 comments
Labels

Comments

@lovebdsobuj
Copy link
Contributor

Copy to Clipboard can not find by pressing shift+enter.
Wox version: 1.3.183

@lances101 lances101 added the bug label Sep 29, 2016
@lances101
Copy link
Owner

Welp, this is urgent. I will setup a VM this weekend and test it. Lost access to Windows machine.

@lances101
Copy link
Owner

@lovebdsobuj, I cannot confirm this.

2016-10-02 3 39 01

Could you please try uninstalling and reinstalling the plugin? You can do that by running the following queries.

wpm uninstall Wox.Plugin.GoogleTranslate
wpm install Wox.Plugin.GoogleTranslate

Once reinstalled, if the problem persists, please try querying the plugin and hitting shift+enter on its result. Once you received (or not) a result, upload the latest log. You can find the logs at %appdata%\Wox\Logs\1.3.183

Thanks.

@lovebdsobuj
Copy link
Contributor Author

@lances101, Thanks for update release 1.0.4.
I don't understand what happen, but now can't retrieve translation just loading...
wox plugin - google translate

@lovebdsobuj
Copy link
Contributor Author

Maybe it's http/https issue, I don't have installed visual studio, otherwise I will try...

@lances101
Copy link
Owner

Well, the way we are using for translation is not official. The plugin itself literally just loads the webpage and parses its contents. The good way is to actually use Google's API, but that would require each user to receive a personal key and and actually pay for it. Google may be blocking you based on... something.

I will test this on a different system tomorrow.

@lovebdsobuj
Copy link
Contributor Author

Any update news?
In web browser working as well,
https://www.google.com/translate_t?hl=en&ie=UTF8&text=Hello+World&langpair=en|bn

@lovebdsobuj
Copy link
Contributor Author

lovebdsobuj commented Oct 4, 2016

Using httpie

C:\Users\Me>http "http://www.google.com/translate_t?hl=en&ie=UTF8&text=Hello+Wox&langpair=en|bn"

HTTP/1.1 301 Moved Permanently
Cache-Control: private, max-age=86400
Content-Language: en
Content-Length: 283
Content-Type: text/html; charset=UTF-8
Date: Tue, 04 Oct 2016 02:47:38 GMT
Expires: Tue, 04 Oct 2016 02:47:38 GMT
Location: http://translate.google.com/?hl=en&ie=UTF8&text=Hello+Wox&langpair=en%7Cbn

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://translate.google.com/?hl=en&amp;ie=UTF8&amp;text=Hello+Wox&amp;langpair=en%7Cbn">here</A>.
</BODY></HTML>

Maybe need to try replcaing L343, L355 with http://translate.google.com/?hl=en

@lances101
Copy link
Owner

Apparently in your specific case you get a HTTP 301. I will look into making the plugin follow the moved link.

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

No branches or pull requests

2 participants