Add spanish messages

This commit is contained in:
Mauricio Baeza 2019-10-19 15:25:49 -05:00
parent 939c6d54bd
commit f1ba247a23
8 changed files with 180 additions and 23 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
*.po~
*.log *.log
images/ images/

Binary file not shown.

View File

@ -46,7 +46,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 install PIP?')
if not app.question(msg, 'ZAZ-Pip'): if not app.question(msg, 'ZAZ-Pip'):
return return
@ -64,20 +64,20 @@ class Controllers(object):
self.d.lst_log.insert('Download PIP...') self.d.lst_log.insert('Download PIP...')
data = app.url_open(URL_PIP) data = app.url_open(URL_PIP)
if not data: if not data:
msg = 'Do you have internet connection?' msg = _('Do you have internet connection?')
app.errorbox(msg) app.errorbox(msg)
return return
app.save_file(path_pip, 'wb', data) app.save_file(path_pip, 'wb', data)
if not app.is_created(path_pip): if not app.is_created(path_pip):
msg = 'File PIP not save' msg = _('File PIP not save')
app.errorbox(msg) app.errorbox(msg)
return return
self.d.lst_log.insert('PIP save correctly...') self.d.lst_log.insert(_('PIP save correctly...'))
try: try:
self.d.lst_log.insert('Start installing PIP...') self.d.lst_log.insert(_('Start installing PIP...'))
cmd = '"{}" "{}" --user'.format(self.path_python, path_pip) cmd = '"{}" "{}" --user'.format(self.path_python, path_pip)
for line in app.popen(cmd): for line in app.popen(cmd):
if isinstance(line, tuple): if isinstance(line, tuple):
@ -91,10 +91,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 installed sucesfully')
app.msgbox(msg) app.msgbox(msg)
else: else:
msg = 'PIP not installed, see log.' msg = _('PIP not installed, see log')
app.warning(msg) app.warning(msg)
except Exception as e: except Exception as e:
app.errorbox(e) app.errorbox(e)
@ -170,7 +170,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(_('Not found...'), 'error.png', show=False)
return return
def cmd_search_action(self, event): def cmd_search_action(self, event):
@ -206,7 +206,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 {}:\n\n{} ?').format(opt, name)
if not app.question(msg, TITLE): if not app.question(msg, TITLE):
return return
@ -232,12 +232,12 @@ class Controllers(object):
def cmd_uninstall_action(self, event): def cmd_uninstall_action(self, event):
if not self._states['list']: if not self._states['list']:
msg = 'Select installed package' msg = _('Select installed package')
app.warning(msg) app.warning(msg)
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 uninstall:\n\n{} ?').format(name)
if not app.question(msg): if not app.question(msg):
return return

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2019-10-19 14:42-0500\n" "POT-Creation-Date: 2019-10-19 15:19-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -15,6 +15,56 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: source/ZAZPip.py:49
msgid "Do you want install PIP?"
msgstr ""
#: source/ZAZPip.py:67
msgid "Do you have internet connection?"
msgstr ""
#: source/ZAZPip.py:73
msgid "File PIP not save"
msgstr ""
#: source/ZAZPip.py:76
msgid "PIP save correctly..."
msgstr ""
#: source/ZAZPip.py:80
msgid "Start installing PIP..."
msgstr ""
#: source/ZAZPip.py:94
msgid "PIP installed sucesfully"
msgstr ""
#: source/ZAZPip.py:97
msgid "PIP not installed, see log"
msgstr ""
#: source/ZAZPip.py:173
msgid "Not found..."
msgstr ""
#: source/ZAZPip.py:209
msgid ""
"Do you want {}:\n"
"\n"
"{} ?"
msgstr ""
#: source/ZAZPip.py:235
msgid "Select installed package"
msgstr ""
#: source/ZAZPip.py:240
msgid ""
"Do you want uninstall:\n"
"\n"
"{} ?"
msgstr ""
#: source/ZAZPip.py:327 #: source/ZAZPip.py:327
msgid "PIP not installed" msgid "PIP not installed"
msgstr "" msgstr ""

View File

@ -5,8 +5,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2019-10-19 14:42-0500\n" "POT-Creation-Date: 2019-10-19 15:19-0500\n"
"PO-Revision-Date: 2019-10-19 15:13-0500\n" "PO-Revision-Date: 2019-10-19 15:20-0500\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -17,22 +17,72 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: en\n" "Language: en\n"
#: source/ZAZPip.py:49
msgid "Do you want install PIP?"
msgstr ""
#: source/ZAZPip.py:67
msgid "Do you have internet connection?"
msgstr ""
#: source/ZAZPip.py:73
msgid "File PIP not save"
msgstr ""
#: source/ZAZPip.py:76
msgid "PIP save correctly..."
msgstr ""
#: source/ZAZPip.py:80
msgid "Start installing PIP..."
msgstr ""
#: source/ZAZPip.py:94
msgid "PIP installed sucesfully"
msgstr ""
#: source/ZAZPip.py:97
msgid "PIP not installed, see log"
msgstr ""
#: source/ZAZPip.py:173
msgid "Not found..."
msgstr ""
#: source/ZAZPip.py:209
msgid ""
"Do you want {}:\n"
"\n"
"{} ?"
msgstr ""
#: source/ZAZPip.py:235
msgid "Select installed package"
msgstr ""
#: source/ZAZPip.py:240
msgid ""
"Do you want uninstall:\n"
"\n"
"{} ?"
msgstr ""
#: source/ZAZPip.py:327 #: source/ZAZPip.py:327
msgid "PIP not installed" msgid "PIP not installed"
msgstr "PIP not installed" msgstr ""
#: source/ZAZPip.py:346 #: source/ZAZPip.py:346
msgid "Admin PIP" msgid "Admin PIP"
msgstr "Admin PIP" msgstr ""
#: source/ZAZPip.py:359 #: source/ZAZPip.py:359
msgid "Install PIP" msgid "Install PIP"
msgstr "Install PIP" msgstr ""
#: source/ZAZPip.py:397 #: source/ZAZPip.py:397
msgid "Packages" msgid "Packages"
msgstr "Packages" msgstr ""
#: source/ZAZPip.py:429 #: source/ZAZPip.py:429
msgid "~Close" msgid "~Close"
msgstr "~Close" msgstr ""

View File

@ -5,17 +5,73 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2019-10-19 14:42-0500\n" "POT-Creation-Date: 2019-10-19 15:19-0500\n"
"PO-Revision-Date: 2019-10-19 15:14-0500\n" "PO-Revision-Date: 2019-10-19 15:24-0500\n"
"Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 2.2.4\n" "X-Generator: Poedit 2.2.4\n"
"Last-Translator: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
#: source/ZAZPip.py:49
msgid "Do you want install PIP?"
msgstr "¿Desea instalar PIP?"
#: source/ZAZPip.py:67
msgid "Do you have internet connection?"
msgstr "¿Tiene conexión a Internet?"
#: source/ZAZPip.py:73
msgid "File PIP not save"
msgstr "No se guardo el archivo PIP"
#: source/ZAZPip.py:76
msgid "PIP save correctly..."
msgstr "Archivo PIP guardado correctamente..."
#: source/ZAZPip.py:80
msgid "Start installing PIP..."
msgstr "Iniciando instalación de PIP..."
#: source/ZAZPip.py:94
msgid "PIP installed sucesfully"
msgstr "PIP instalado correctamente"
#: source/ZAZPip.py:97
msgid "PIP not installed, see log"
msgstr "PIP no fue instalado, vea el registro"
#: source/ZAZPip.py:173
msgid "Not found..."
msgstr "No encontrado..."
#: source/ZAZPip.py:209
msgid ""
"Do you want {}:\n"
"\n"
"{} ?"
msgstr ""
"¿Desea {}:\n"
"\n"
"{} ?"
#: source/ZAZPip.py:235
msgid "Select installed package"
msgstr "Seleccione un paquete instalado"
#: source/ZAZPip.py:240
msgid ""
"Do you want uninstall:\n"
"\n"
"{} ?"
msgstr ""
"¿Desea desinstalar:\n"
"\n"
"{} ?"
#: source/ZAZPip.py:327 #: source/ZAZPip.py:327
msgid "PIP not installed" msgid "PIP not installed"