Show different message for receive mode than for send mode

This commit is contained in:
Micah Lee 2018-03-06 03:24:17 -08:00
parent 649afa2fad
commit 5d42e76eb8
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 20 additions and 8 deletions

View File

@ -144,13 +144,23 @@ def main(cwd=None):
settings.set('slug', web.slug) settings.set('slug', web.slug)
settings.save() settings.save()
if(stealth): print('')
print(strings._("give_this_url_stealth")) if receive:
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug)) if stealth:
print(app.auth_string) print(strings._("give_this_url_receive_stealth"))
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
print(app.auth_string)
else:
print(strings._("give_this_url_receive"))
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
else: else:
print(strings._("give_this_url")) if stealth:
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug)) print(strings._("give_this_url_stealth"))
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
print(app.auth_string)
else:
print(strings._("give_this_url"))
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
print('') print('')
print(strings._("ctrlc_to_stop")) print(strings._("ctrlc_to_stop"))

View File

@ -5,8 +5,10 @@
"wait_for_hs_trying": "Trying...", "wait_for_hs_trying": "Trying...",
"wait_for_hs_nope": "Not ready yet.", "wait_for_hs_nope": "Not ready yet.",
"wait_for_hs_yup": "Ready!", "wait_for_hs_yup": "Ready!",
"give_this_url": "Give this address to the person you're sending the file to:", "give_this_url": "Give this address to the person you're sending the files to:",
"give_this_url_stealth": "Give this address and HidServAuth line to the person you're sending the file to:", "give_this_url_stealth": "Give this address and HidServAuth line to the person you're sending the files to:",
"give_this_url_receive": "Give this address to the people sending you files:",
"give_this_url_receive_stealth": "Give this address and HidServAuth line to the people sending you files:",
"ctrlc_to_stop": "Press Ctrl-C to stop server", "ctrlc_to_stop": "Press Ctrl-C to stop server",
"not_a_file": "{0:s} is not a valid file.", "not_a_file": "{0:s} is not a valid file.",
"not_a_readable_file": "{0:s} is not a readable file.", "not_a_readable_file": "{0:s} is not a readable file.",