Standardize language: device name/id -> device id, syncing -> synchronization/synchronizing

This commit is contained in:
2024-01-03 22:56:13 -05:00
parent d4f1831486
commit 18d03279b9
5 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -260,7 +260,7 @@ def line_edit(_lines, _edit_data, _edit_line):
return _lines
# attempts to connect to the user's server via ssh to register the device for syncing
# attempts to connect to the user's server via ssh to register the device for synchronization
def copy_id_check(_port, _username_ssh, _ip, _client_device_id, _identity, _sshyp_data):
from stweak import write_config
if not _sshyp_data.has_section('CLIENT-ONLINE'):
@@ -271,8 +271,8 @@ def copy_id_check(_port, _username_ssh, _ip, _client_device_id, _identity, _sshy
f'{_client_device_id}").touch(mode=0o400, exist_ok=True)\''), stderr=DEVNULL, check=True)
except CalledProcessError:
print(f'\n\u001b[38;5;9mwarning: ssh connection could not be made - ensure the public key ({_identity}) is '
'registered on the remote server and that the entered ip, port, and username are correct\n\nsyncing '
'functionality will be disabled until this is addressed\u001b[0m\n')
'registered on the remote server and that the entered ip, port, and username are correct\n\n'
'synchronization functionality will be disabled until this is addressed\u001b[0m\n')
_sshyp_data.set('CLIENT-ONLINE', 'ssh_error', 'true')
write_config(_sshyp_data)
return True
@@ -392,7 +392,7 @@ def read_shortcut():
# calls sshync to sync changes to the user's server
def sync(_start_text=''):
print(f"{_start_text}syncing entries with the server device...\n")
print(f"{_start_text}synchronizing entries with the server device...\n")
# set permissions before uploading
for _root, _dirs, _files in walk(f"{home}/.local/share/sshyp"):
for _path in _root.splitlines():