mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 07:49:48 -05:00
Show different message for receive mode than for send mode
This commit is contained in:
parent
649afa2fad
commit
5d42e76eb8
@ -144,13 +144,23 @@ def main(cwd=None):
|
||||
settings.set('slug', web.slug)
|
||||
settings.save()
|
||||
|
||||
if(stealth):
|
||||
print(strings._("give_this_url_stealth"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(app.auth_string)
|
||||
print('')
|
||||
if receive:
|
||||
if stealth:
|
||||
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:
|
||||
print(strings._("give_this_url"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
if stealth:
|
||||
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(strings._("ctrlc_to_stop"))
|
||||
|
||||
|
@ -5,8 +5,10 @@
|
||||
"wait_for_hs_trying": "Trying...",
|
||||
"wait_for_hs_nope": "Not ready yet.",
|
||||
"wait_for_hs_yup": "Ready!",
|
||||
"give_this_url": "Give this address 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 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 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",
|
||||
"not_a_file": "{0:s} is not a valid file.",
|
||||
"not_a_readable_file": "{0:s} is not a readable file.",
|
||||
|
Loading…
Reference in New Issue
Block a user