From ef7ba0fe40a9a98e2ef1bdd4e9adf7305a995b2f Mon Sep 17 00:00:00 2001 From: Jose Manuel Delicado Date: Sun, 2 Oct 2016 20:46:27 +0200 Subject: [PATCH] Updated Windows 10 keymap. The authorization message returned by the webbrowser when authorizing a new account now is translatable --- src/keymaps/Windows 10.keymap | 2 +- src/twitter/authorisationHandler.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/keymaps/Windows 10.keymap b/src/keymaps/Windows 10.keymap index 95a60ab8..3ed9f5b0 100644 --- a/src/keymaps/Windows 10.keymap +++ b/src/keymaps/Windows 10.keymap @@ -11,7 +11,7 @@ right = string(default="alt+win+right") next_account = string(default="alt+win+shift+right") previous_account = string(default="alt+win+shift+left") open_conversation = string(default="alt+win+c") -show_hide = string(default="alt+win+w") +show_hide = string(default="control+win+w") post_tweet = string(default="alt+win+n") post_reply = string(default="control+win+r") post_retweet = string(default="alt+win+shift+r") diff --git a/src/twitter/authorisationHandler.py b/src/twitter/authorisationHandler.py index 7981f872..0d4110f1 100644 --- a/src/twitter/authorisationHandler.py +++ b/src/twitter/authorisationHandler.py @@ -17,5 +17,4 @@ class handler(BaseHTTPServer.BaseHTTPRequestHandler): params = parse_qs(urlparse(self.path).query) global verifier verifier = params.get('oauth_verifier', [None])[0] - self.wfile.write("You have successfully logged into Twitter with" + application.name + ". " - "You can close this window now.") \ No newline at end of file + self.wfile.write(_(u"You have successfully logged into Twitter with {0}. You can close this window now.").format(application.name))