Corrections to the english labels
Note: x-terminal-emulator is a generic command for all *NIX Desktop Environment *terminal commands. Signed-off-by: LibreOfficiant <libreofficiant@noreply.localhost>
This commit is contained in:
parent
9910b5302b
commit
cac0b4fb59
|
@ -75,7 +75,7 @@ class Controllers(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
def cmd_install_pip_action(self, event):
|
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):
|
if not app.question(msg, TITLE):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -87,22 +87,22 @@ class Controllers(object):
|
||||||
self.d.link_proyect.visible = False
|
self.d.link_proyect.visible = False
|
||||||
self.d.lst_log.visible = True
|
self.d.lst_log.visible = True
|
||||||
path_pip = app.paths.tmp()
|
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)
|
data, h, err = app.url_open(URL_PIP, verify=False)
|
||||||
if err:
|
if err:
|
||||||
msg = _('Do you have internet connection?')
|
msg = _('Unable to connect to internet')
|
||||||
app.errorbox('{}\n\n{}'.format(msg, err))
|
app.errorbox('{}\n\n{}'.format(msg, err))
|
||||||
return
|
return
|
||||||
|
|
||||||
app.paths.save_bin(path_pip, data)
|
app.paths.save_bin(path_pip, data)
|
||||||
if not app.paths.exists(path_pip):
|
if not app.paths.exists(path_pip):
|
||||||
msg = _('File PIP not save')
|
msg = _('Unable to copy PIP installation file')
|
||||||
app.errorbox(msg)
|
app.errorbox(msg)
|
||||||
return
|
return
|
||||||
self.d.lst_log.insert(_('PIP save correctly...'))
|
self.d.lst_log.insert(_('PIP installation file has been saved'))
|
||||||
|
|
||||||
try:
|
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'
|
cmd = f'"{self.path_python}" "{path_pip}" --user'
|
||||||
for line in app.popen(cmd):
|
for line in app.popen(cmd):
|
||||||
if isinstance(line, tuple):
|
if isinstance(line, tuple):
|
||||||
|
@ -116,10 +116,10 @@ class Controllers(object):
|
||||||
self.d.lbl_pip.value = label
|
self.d.lbl_pip.value = label
|
||||||
self.d.cmd_install_pip.visible = False
|
self.d.cmd_install_pip.visible = False
|
||||||
self.d.cmd_admin_pip.visible = True
|
self.d.cmd_admin_pip.visible = True
|
||||||
msg = _('PIP installed sucesfully')
|
msg = _('PIP was installed sucessfully')
|
||||||
app.msgbox(msg)
|
app.msgbox(msg)
|
||||||
else:
|
else:
|
||||||
msg = _('PIP not installed, see log')
|
msg = _('PIP installation has failed, see log')
|
||||||
app.warning(msg)
|
app.warning(msg)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
app.errorbox(e)
|
app.errorbox(e)
|
||||||
|
@ -192,7 +192,7 @@ class Controllers(object):
|
||||||
if line:
|
if line:
|
||||||
self.d.lst_package.select()
|
self.d.lst_package.select()
|
||||||
else:
|
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
|
return
|
||||||
|
|
||||||
def cmd_search_action(self, event):
|
def cmd_search_action(self, event):
|
||||||
|
@ -207,12 +207,12 @@ class Controllers(object):
|
||||||
def cmd_install_action(self, event):
|
def cmd_install_action(self, event):
|
||||||
name = self.d.txt_search.value.strip()
|
name = self.d.txt_search.value.strip()
|
||||||
if not name:
|
if not name:
|
||||||
msg = _('Enter package name to install')
|
msg = _('Enter the package name to install')
|
||||||
app.warning(msg)
|
app.warning(msg)
|
||||||
self.d.txt_search.set_focus()
|
self.d.txt_search.set_focus()
|
||||||
return
|
return
|
||||||
|
|
||||||
msg = _(f'Install package: {name} ?')
|
msg = _(f'Do you really want to install package: {name}?')
|
||||||
if not app.question(msg):
|
if not app.question(msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ class Controllers(object):
|
||||||
opt = 'upgrade'
|
opt = 'upgrade'
|
||||||
|
|
||||||
name = self.d.lst_package.value
|
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):
|
if not app.question(msg, TITLE):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ class Controllers(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
name = self.d.lst_package.value
|
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):
|
if not app.question(msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ class Controllers(object):
|
||||||
if app.IS_MAC:
|
if app.IS_MAC:
|
||||||
cmd = 'open "{}"'
|
cmd = 'open "{}"'
|
||||||
elif app.DESKTOP == 'gnome':
|
elif app.DESKTOP == 'gnome':
|
||||||
cmd = 'gnome-terminal -- {}'
|
cmd = 'x-terminal-emulator -- {}'
|
||||||
|
|
||||||
cmd = cmd.format(self.path_python)
|
cmd = cmd.format(self.path_python)
|
||||||
app.run(cmd)
|
app.run(cmd)
|
||||||
|
@ -304,7 +304,7 @@ class Controllers(object):
|
||||||
if not path:
|
if not path:
|
||||||
return
|
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):
|
if not app.question(msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -331,25 +331,25 @@ class ControllersProxy(object):
|
||||||
txt_proxy_user = self.d.txt_proxy_user.value,
|
txt_proxy_user = self.d.txt_proxy_user.value,
|
||||||
txt_proxy_pass = self.d.txt_proxy_pass.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):
|
if not app.question(msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
app.set_config('proxy', data, TITLE)
|
app.set_config('proxy', data, TITLE)
|
||||||
|
|
||||||
msg = _('Save data sucesfully')
|
msg = _('Proxy settings saved sucessfully')
|
||||||
app.msgbox(msg)
|
app.msgbox(msg)
|
||||||
self.d.close()
|
self.d.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
def cmd_proxy_delete_action(self, event):
|
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):
|
if not app.question(msg):
|
||||||
return
|
return
|
||||||
|
|
||||||
app.set_config('proxy', {}, TITLE)
|
app.set_config('proxy', {}, TITLE)
|
||||||
|
|
||||||
msg = _('Delete data sucesfully')
|
msg = _('Proxy settings deleted sucessfully')
|
||||||
app.msgbox(msg)
|
app.msgbox(msg)
|
||||||
self.d.close()
|
self.d.close()
|
||||||
return
|
return
|
||||||
|
@ -407,7 +407,7 @@ def _create_dialog():
|
||||||
exists_pip = True
|
exists_pip = True
|
||||||
if not label:
|
if not label:
|
||||||
exists_pip = False
|
exists_pip = False
|
||||||
label = _('PIP not installed')
|
label = _("'Python installer package' (PIP) is not installed")
|
||||||
args = {
|
args = {
|
||||||
'Type': 'Label',
|
'Type': 'Label',
|
||||||
'Name': 'lbl_pip',
|
'Name': 'lbl_pip',
|
||||||
|
@ -629,7 +629,7 @@ def _create_dialog():
|
||||||
def _create_dialog_proxy():
|
def _create_dialog_proxy():
|
||||||
args= {
|
args= {
|
||||||
'Name': 'dlg_proxy',
|
'Name': 'dlg_proxy',
|
||||||
'Title': 'Zaz-Pip - Config Proxy',
|
'Title': 'Zaz-Pip - Proxy settings',
|
||||||
'Width': 150,
|
'Width': 150,
|
||||||
'Height': 100,
|
'Height': 100,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue