[kupfer] google_translate: Use .com for showing translated web page
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] google_translate: Use .com for showing translated web page
- Date: Thu, 7 Jan 2010 17:43:09 +0000 (UTC)
commit f8f3211a33a43f853031a47d35f4eed672c62b8c
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Jan 7 16:52:19 2010 +0100
google_translate: Use .com for showing translated web page
By mistake, the plugin used translate.google.pl, which may fall back
to Polish interface (for the top frame, not the translation); a
fallback in English is better for more users, so we use .com :-)
kupfer/plugin/google_translate.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/google_translate.py b/kupfer/plugin/google_translate.py
index c0547aa..3b12c7e 100644
--- a/kupfer/plugin/google_translate.py
+++ b/kupfer/plugin/google_translate.py
@@ -217,7 +217,7 @@ class TranslateUrl(Action):
def activate(self, leaf, iobj):
dest_lang = iobj.object
params = urllib.urlencode(dict(u=leaf.object, sl='auto', tl=dest_lang ))
- url = 'http://translate.google.pl/translate?' + params
+ url = 'http://translate.google.com/translate?' + params
utils.show_url(url)
def item_types(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]