mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
Remove more CLI strings
This commit is contained in:
parent
69249f81b1
commit
bea6e3878c
@ -272,7 +272,7 @@ class Onion(object):
|
||||
summary = res_parts[4].split('=')[1]
|
||||
|
||||
# "\033[K" clears the rest of the line
|
||||
print("{}: {}% - {}{}".format(strings._('connecting_to_tor'), progress, summary, "\033[K"), end="\r")
|
||||
print("Connecting to the Tor network: {}% - {}{}".format(progress, summary, "\033[K"), end="\r")
|
||||
|
||||
if callable(tor_status_update_func):
|
||||
if not tor_status_update_func(progress, summary):
|
||||
@ -446,7 +446,7 @@ class Onion(object):
|
||||
raise TorTooOld(strings._('error_stealth_not_supported'))
|
||||
|
||||
if not save_scheduled_key:
|
||||
print(strings._("config_onion_service").format(int(port)))
|
||||
print("Setting up onion service on port {0:d}.".format(int(port)))
|
||||
|
||||
if self.stealth:
|
||||
if self.settings.get('hidservauth_string'):
|
||||
|
@ -79,7 +79,7 @@ class ReceiveModeWeb(object):
|
||||
})
|
||||
|
||||
self.common.log('ReceiveModeWeb', 'define_routes', '/upload, uploaded {}, saving to {}'.format(f.filename, local_path))
|
||||
print('\n' + strings._('receive_mode_received_file').format(local_path))
|
||||
print('\n' + "Received: {}".format(local_path))
|
||||
|
||||
if request.upload_error:
|
||||
self.common.log('ReceiveModeWeb', 'define_routes', '/upload, there was an upload error')
|
||||
@ -87,7 +87,7 @@ class ReceiveModeWeb(object):
|
||||
self.web.add_request(self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE, request.path, {
|
||||
"receive_mode_dir": request.receive_mode_dir
|
||||
})
|
||||
print(strings._('error_cannot_create_data_dir').format(request.receive_mode_dir))
|
||||
print("Could not create OnionShare data folder: {}".format(request.receive_mode_dir))
|
||||
|
||||
msg = 'Error uploading, please inform the OnionShare user'
|
||||
if ajax:
|
||||
@ -313,7 +313,7 @@ class ReceiveModeRequest(Request):
|
||||
self.web.add_request(self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE, request.path, {
|
||||
"receive_mode_dir": self.receive_mode_dir
|
||||
})
|
||||
print(strings._('error_cannot_create_data_dir').format(self.receive_mode_dir))
|
||||
print("Could not create OnionShare data folder: {}".format(self.receive_mode_dir))
|
||||
self.web.common.log('ReceiveModeRequest', '__init__', 'Permission denied creating receive mode directory')
|
||||
self.upload_error = True
|
||||
|
||||
|
@ -201,7 +201,7 @@ class ShareModeWeb(object):
|
||||
|
||||
# Close the server, if necessary
|
||||
if not self.web.stay_open and not canceled:
|
||||
print(strings._("closing_automatically"))
|
||||
print("Stopped because transfer is complete")
|
||||
self.web.running = False
|
||||
try:
|
||||
if shutdown_func is None:
|
||||
|
@ -153,7 +153,7 @@ class Web(object):
|
||||
if self.error404_count == 20:
|
||||
self.add_request(Web.REQUEST_RATE_LIMIT, request.path)
|
||||
self.force_shutdown()
|
||||
print(strings._('error_rate_limit'))
|
||||
print("Someone has made too many wrong attempts on your address, which means they could be trying to guess it, so OnionShare has stopped the server. Start sharing again and send the recipient a new address to share.")
|
||||
|
||||
r = make_response(render_template('404.html'), 404)
|
||||
return self.add_security_headers(r)
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"config_onion_service": "Setting up onion service on port {0:d}.",
|
||||
"preparing_files": "Compressing files.",
|
||||
"not_a_readable_file": "{0:s} is not a readable file.",
|
||||
"no_available_port": "Could not find an available port to start the onion service",
|
||||
@ -170,7 +169,6 @@
|
||||
"gui_receive_mode_no_files": "No Files Received Yet",
|
||||
"gui_receive_mode_autostop_timer_waiting": "Waiting to finish receiving",
|
||||
"receive_mode_upload_starting": "Upload of total size {} is starting",
|
||||
"receive_mode_received_file": "Received: {}",
|
||||
"days_first_letter": "d",
|
||||
"hours_first_letter": "h",
|
||||
"minutes_first_letter": "m",
|
||||
|
Loading…
Reference in New Issue
Block a user