From 53e915056e3a4264c231cf903f8b603b5bcc7c4c Mon Sep 17 00:00:00 2001 From: The Dod Date: Mon, 13 Oct 2014 06:32:53 +0700 Subject: [PATCH] i18n for "Tor control password" prompt --- locale/en.json | 3 ++- onionshare/onionshare.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/locale/en.json b/locale/en.json index fa6c5b69..5ddacd8c 100644 --- a/locale/en.json +++ b/locale/en.json @@ -40,5 +40,6 @@ "gui_starting_server1": "Starting Tor hidden service...", "gui_starting_server2": "Crunching files...", "gui_starting_server3": "Waiting for Tor hidden service...", - "gui_please_wait": "Please wait..." + "gui_please_wait": "Please wait...", + "tor_control_password":"Tor control password" } diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py index 6c28cea0..e83595bb 100644 --- a/onionshare/onionshare.py +++ b/onionshare/onionshare.py @@ -109,7 +109,7 @@ class OnionShare(object): authed = False while not authed: try: - controller.authenticate(getpass('Tor control password: ')) + controller.authenticate(getpass('{0}: '.format(strings._('tor_control_password')))) authed = True except AuthenticationFailure: pass