-
Notifications
You must be signed in to change notification settings - Fork 27
"service unavailable" result of translation #23
Comments
Same here, it looks like Google really wants to close any remote access to the Google Translate service. Maybe it’s time to switch to Bing, as suggested in #4. |
I manually call the url, and i get a Captcha, when filling it, I finally get the correct result. |
Yes same for me, and after some time, I need to fill the captcha again… I will have a look this week-end, I also have started a rewrite (not the API part though) to make it restartless and compatible with multiprocess tabs. |
Hi guys! |
@bpierre woah! you're still mantaining it. Thanks a lot! |
@pautomas I am trying to! Thanks to you! I am still using it every day after all these years 🙏 |
@rodolfobandeira Thanks, I will try to reproduce the request they are doing. |
Strange if I check a longer text, eg: "Hi guys! Regards. |
Maybe this link can help: https://support.google.com/websearch/answer/86640?hl=en |
Captcha typed, but it does not help - beyond that as I wrote earlier gTranslate long sentences translators and short no. |
Nice shot @pedro22 ! Long sentences works.. the short ones or single words are failing. |
I pushed a rewrite in this branch, using Jetpack (Addons SDK) instead of XUL (Legacy Extensions): https://github.com/bpierre/gtranslate/tree/jetpack It’s not usable yet. The basic features are working though, including the Google Translate request. I now have to implement the language selection, test a lot, and I will publish a release as soon as possible. |
Very cool @bpierre. Thanks for that! |
Hi @bpierre ! Thanks for the update! I just don't get it how to update my firefox extension with that one you created using Jetpack. |
Hi @rodolfobandeira, I will publish a .xpi as soon as it’s usable. If you want to launch it yourself in the meantime, you have to install jpm and Firefox Nightly, then run this command in the addon directory: $ make run You can also build it yourself:
|
I have slightly played with trying to translate different length phrases. It really looks that Google blocks almost everything that is short enough. I could detect that sentences longer than 139 symbols are translated without problems. :) So I can suspect that Google just introduced restriction for their translation API usage trying to minimize number of calls for short phrases. Maybe we need to search for other API method for shorter sentences or find the way to assure Google that we are not spammers trying to overload its service. |
I can't live without this plugin :( |
@achernyakevich Are you talking about the stable version, or the one from the jetpack branch? @ahmadramadan Same for me! I am very busy these days, but it’s on the top of my priority list. You can follow the progress here: #24 |
@bpierre Can create a firefox plugin to as beta, let people test and any errors will be reported. |
Yes, I will drop a .xpi here as soon as possible, but for now it’s still too much broken and I need to fix these two points:
|
Hi everyone, with the power of regexes I was able to fix the old version, mostly. Only thing still broken that I see is newlines and other stuff like that, it displays as \n. Or edit the file yourself, see http://pastebin.com/GRAYnVvj the translationRequest and getGoogleUrl |
@bpierre I checked for stable version 0.9 available from Mozilla Addons search. |
I spent some more time, fixed the issue with the newlines. Tried a lot to add new languages but couldn't get it to work. @bpierre feel free to use this as a temporary upgrade so people stop giving 2 star reviews. Edit: fixed a bug where sometimes text from the examples leaked through, new version http://a.pomf.se/fsyfnz.xpi |
@mote0230 |
@anon0230 Thanks for the update! Sadly it can’t be submitted to the Mozilla Addons without refactoring the code: the addon needs to be compatible with E10s (see #21), which is not the case for the current codebase. Feel free to contribute to the PS: In case you are not familiar with GitHub: you have to fork the project, make your modifications in your |
You can use this function to get the selected text (works with e10s) function getBrowserSelection(doc) {
const { BrowserUtils } = doc.defaultView;
let [element, focusedWindow] = BrowserUtils.getFocusSync(doc);
var selection = focusedWindow.getSelection().toString();
// try getting a selected text in text input.
if (!selection) {
let isOnTextInput = elem => {
// we avoid to return a value if a selection is in password field.
// ref. bug 565717
return elem instanceof Ci.nsIDOMHTMLTextAreaElement ||
(elem instanceof Ci.nsIDOMHTMLInputElement && elem.mozIsTextField(true));
};
if (isOnTextInput(element)) {
selection = element.QueryInterface(Ci.nsIDOMNSEditableElement)
.editor.selection.toString();
}
}
if (selection) {
selection = selection.trim().replace(/\s+/g, " ");
}
return selection;
} Note: You must pass a XULDocument to the function. |
@mote0230 thanks a lot dude - works like a charm |
Hope this solution gets updated into mozilla soon. |
The release is almost ready, I just need to test it more. Please try it and tell me if you see any issue: https://github.com/bpierre/gtranslate/releases/tag/v0.10 |
Working good :) |
Still not working. |
@andrew-chiz-muzychuk have you tried to install gtranslate.xpi from this page? https://github.com/bpierre/gtranslate/releases/tag/v0.10 |
@bpierre no, I didn't. I went to FF's Addons and install from there. And it was v 0.9. I've tried your link. It installed v 0.10, which works perfect. |
Great!
I wasn’t sure about that… Maybe I should add an option to insert it at the top, at the bottom (as it is now), or just before the “Inspect Element”. I also need to add a separator. Edit: #26 |
The update has been approved: https://addons.mozilla.org/firefox/addon/gtranslate/ |
Hello @bpierre. The new version, 0.10.1, doesn't work with Menu Editor add-on. The old GTranslate version worked fine. Please, is it possible, in some way, that GTranslate works with Menu Editor 1.2.7? I love GTranslate, but uninstalling Menu Editor, makes a chaos of all my context menus. FOr now, I'm using the temporary GTranslate that was added to this page some days ago (the temporary solution). I would really love to be able to update to GTranslate 0.10.1, as it's a great (and irreplaceable) add-on. |
@nemesis8185 Hi, could you send me the page of the Menu Editor addon? I only find “Menu Editor II”, which is deprecated by the author. I answered here for the same issue #28 (comment) |
I updated the plugin to version 0.11.0 and I have no gTranslate item on the menu, and version 0.10.1 is - can you fix it? Win XP SP3 - Firefox 38.0.1 |
@pedro22 Could you open a new issue, and paste the results of |
hi, "service unavailable" is back. and this time no matter how much or little text is selected, it's the same; it's completely unworking now. has google completely shut it down? :( |
@CatQuest I think it was temporary. Now it's working |
new issue: #43 |
The addon stop working since some days, shows "service unavailable"
The text was updated successfully, but these errors were encountered: