i18n for "Tor control password" prompt

This commit is contained in:
The Dod 2014-10-13 06:32:53 +07:00
parent c250cbeba4
commit 53e915056e
2 changed files with 3 additions and 2 deletions

View File

@ -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"
}

View File

@ -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