lances101 / Wox.Plugin.GoogleTranslate

11 stars 9 forks source link

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

Open lovebdsobuj opened 8 years ago

lovebdsobuj commented 8 years ago

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

lances101 commented 8 years ago

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

lances101 commented 8 years ago

@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 commented 8 years ago

@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 commented 8 years ago

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

lances101 commented 8 years ago

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

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

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

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