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,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"))
|
||||||
|
|
||||||
|
@ -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.",
|
||||||
|
Loading…
Reference in New Issue
Block a user