From cac0b4fb594ad34fbee7c7624e4a49511cb3f1e2 Mon Sep 17 00:00:00 2001 From: LibreOfficiant Date: Thu, 27 Jan 2022 07:53:37 -0600 Subject: [PATCH] Corrections to the english labels Note: x-terminal-emulator is a generic command for all *NIX Desktop Environment *terminal commands. Signed-off-by: LibreOfficiant --- source/pythonpath/main.py | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/source/pythonpath/main.py b/source/pythonpath/main.py index 16b0069..51c90ea 100644 --- a/source/pythonpath/main.py +++ b/source/pythonpath/main.py @@ -75,7 +75,7 @@ class Controllers(object): return def cmd_install_pip_action(self, event): - msg = _('Do you want install PIP?') + msg = _("Do you want to install 'Python installer package' (PIP)?") if not app.question(msg, TITLE): return @@ -87,22 +87,22 @@ class Controllers(object): self.d.link_proyect.visible = False self.d.lst_log.visible = True path_pip = app.paths.tmp() - self.d.lst_log.insert(_('Download PIP...')) + self.d.lst_log.insert(_('Downloading PIP…')) data, h, err = app.url_open(URL_PIP, verify=False) if err: - msg = _('Do you have internet connection?') + msg = _('Unable to connect to internet') app.errorbox('{}\n\n{}'.format(msg, err)) return app.paths.save_bin(path_pip, data) if not app.paths.exists(path_pip): - msg = _('File PIP not save') + msg = _('Unable to copy PIP installation file') app.errorbox(msg) return - self.d.lst_log.insert(_('PIP save correctly...')) + self.d.lst_log.insert(_('PIP installation file has been saved')) try: - self.d.lst_log.insert(_('Start installing PIP...')) + self.d.lst_log.insert(_("Starting PIP installation…")) cmd = f'"{self.path_python}" "{path_pip}" --user' for line in app.popen(cmd): if isinstance(line, tuple): @@ -116,10 +116,10 @@ class Controllers(object): self.d.lbl_pip.value = label self.d.cmd_install_pip.visible = False self.d.cmd_admin_pip.visible = True - msg = _('PIP installed sucesfully') + msg = _('PIP was installed sucessfully') app.msgbox(msg) else: - msg = _('PIP not installed, see log') + msg = _('PIP installation has failed, see log') app.warning(msg) except Exception as e: app.errorbox(e) @@ -192,7 +192,7 @@ class Controllers(object): if line: self.d.lst_package.select() else: - self.d.lst_package.insert(_('Not found...'), 'error.png', show=False) + self.d.lst_package.insert(_('Package not found…'), 'error.png', show=False) return def cmd_search_action(self, event): @@ -207,12 +207,12 @@ class Controllers(object): def cmd_install_action(self, event): name = self.d.txt_search.value.strip() if not name: - msg = _('Enter package name to install') + msg = _('Enter the package name to install') app.warning(msg) self.d.txt_search.set_focus() return - msg = _(f'Install package: {name} ?') + msg = _(f'Do you really want to install package: {name}?') if not app.question(msg): return @@ -246,7 +246,7 @@ class Controllers(object): opt = 'upgrade' name = self.d.lst_package.value - msg = _('Do you want {}:\n\n{} ?').format(opt, name) + msg = _('Do you want to {}:\n\n{}?').format(opt, name) if not app.question(msg, TITLE): return @@ -277,7 +277,7 @@ class Controllers(object): return name = self.d.lst_package.value - msg = _('Do you want uninstall:\n\n{} ?').format(name) + msg = _('Do you want to uninstall:\n\n{}?').format(name) if not app.question(msg): return @@ -293,7 +293,7 @@ class Controllers(object): if app.IS_MAC: cmd = 'open "{}"' elif app.DESKTOP == 'gnome': - cmd = 'gnome-terminal -- {}' + cmd = 'x-terminal-emulator -- {}' cmd = cmd.format(self.path_python) app.run(cmd) @@ -304,7 +304,7 @@ class Controllers(object): if not path: return - msg = _(f'Confirm install from:\n\n{path}') + msg = _(f'Do you want to install from:\n\n{path}') if not app.question(msg): return @@ -331,25 +331,25 @@ class ControllersProxy(object): txt_proxy_user = self.d.txt_proxy_user.value, txt_proxy_pass = self.d.txt_proxy_pass.value, ) - msg = _('Are you shure save data?') + msg = _('Do you want to save this Proxy settings?') if not app.question(msg): return app.set_config('proxy', data, TITLE) - msg = _('Save data sucesfully') + msg = _('Proxy settings saved sucessfully') app.msgbox(msg) self.d.close() return def cmd_proxy_delete_action(self, event): - msg = _("Are you shure delete data?") + msg = _("Do you want to remove Proxy settings?") if not app.question(msg): return app.set_config('proxy', {}, TITLE) - msg = _('Delete data sucesfully') + msg = _('Proxy settings deleted sucessfully') app.msgbox(msg) self.d.close() return @@ -407,7 +407,7 @@ def _create_dialog(): exists_pip = True if not label: exists_pip = False - label = _('PIP not installed') + label = _("'Python installer package' (PIP) is not installed") args = { 'Type': 'Label', 'Name': 'lbl_pip', @@ -629,7 +629,7 @@ def _create_dialog(): def _create_dialog_proxy(): args= { 'Name': 'dlg_proxy', - 'Title': 'Zaz-Pip - Config Proxy', + 'Title': 'Zaz-Pip - Proxy settings', 'Width': 150, 'Height': 100, }