mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 00:09:50 -05:00
Show different message for receive mode than for send mode
This commit is contained in:
parent
649afa2fad
commit
5d42e76eb8
@ -144,7 +144,17 @@ def main(cwd=None):
|
||||
settings.set('slug', web.slug)
|
||||
settings.save()
|
||||
|
||||
if(stealth):
|
||||
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:
|
||||
if stealth:
|
||||
print(strings._("give_this_url_stealth"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(app.auth_string)
|
||||
|
@ -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