diff --git a/.gitignore b/.gitignore index 03b69a9..399bdd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ __pycache__/ *.py[cod] +*.po~ *.log images/ diff --git a/files/ZAZPip_v0.2.0.oxt b/files/ZAZPip_v0.2.0.oxt index cf22e07..a6ab8ca 100644 Binary files a/files/ZAZPip_v0.2.0.oxt and b/files/ZAZPip_v0.2.0.oxt differ diff --git a/source/ZAZPip.py b/source/ZAZPip.py index cf8724d..7f3a8a7 100644 --- a/source/ZAZPip.py +++ b/source/ZAZPip.py @@ -46,7 +46,7 @@ class Controllers(object): return 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'): return @@ -64,20 +64,20 @@ class Controllers(object): self.d.lst_log.insert('Download PIP...') data = app.url_open(URL_PIP) if not data: - msg = 'Do you have internet connection?' + msg = _('Do you have internet connection?') app.errorbox(msg) return app.save_file(path_pip, 'wb', data) if not app.is_created(path_pip): - msg = 'File PIP not save' + msg = _('File PIP not save') app.errorbox(msg) return - self.d.lst_log.insert('PIP save correctly...') + self.d.lst_log.insert(_('PIP save correctly...')) 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) for line in app.popen(cmd): if isinstance(line, tuple): @@ -91,10 +91,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 installed sucesfully') app.msgbox(msg) else: - msg = 'PIP not installed, see log.' + msg = _('PIP not installed, see log') app.warning(msg) except Exception as e: app.errorbox(e) @@ -170,7 +170,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(_('Not found...'), 'error.png', show=False) return def cmd_search_action(self, event): @@ -206,7 +206,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 {}:\n\n{} ?').format(opt, name) if not app.question(msg, TITLE): return @@ -232,12 +232,12 @@ class Controllers(object): def cmd_uninstall_action(self, event): if not self._states['list']: - msg = 'Select installed package' + msg = _('Select installed package') app.warning(msg) return 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): return diff --git a/source/locales/base.pot b/source/locales/base.pot index 7966382..efec610 100644 --- a/source/locales/base.pot +++ b/source/locales/base.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,6 +15,56 @@ msgstr "" "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 msgid "PIP not installed" msgstr "" diff --git a/source/locales/en/LC_MESSAGES/base.mo b/source/locales/en/LC_MESSAGES/base.mo index 9f5c026..ba5e52a 100644 Binary files a/source/locales/en/LC_MESSAGES/base.mo and b/source/locales/en/LC_MESSAGES/base.mo differ diff --git a/source/locales/en/LC_MESSAGES/base.po b/source/locales/en/LC_MESSAGES/base.po index c79d6b8..c752f52 100644 --- a/source/locales/en/LC_MESSAGES/base.po +++ b/source/locales/en/LC_MESSAGES/base.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2019-10-19 14:42-0500\n" -"PO-Revision-Date: 2019-10-19 15:13-0500\n" +"POT-Creation-Date: 2019-10-19 15:19-0500\n" +"PO-Revision-Date: 2019-10-19 15:20-0500\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -17,22 +17,72 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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 msgid "PIP not installed" -msgstr "PIP not installed" +msgstr "" #: source/ZAZPip.py:346 msgid "Admin PIP" -msgstr "Admin PIP" +msgstr "" #: source/ZAZPip.py:359 msgid "Install PIP" -msgstr "Install PIP" +msgstr "" #: source/ZAZPip.py:397 msgid "Packages" -msgstr "Packages" +msgstr "" #: source/ZAZPip.py:429 msgid "~Close" -msgstr "~Close" +msgstr "" diff --git a/source/locales/es/LC_MESSAGES/base.mo b/source/locales/es/LC_MESSAGES/base.mo index 1e5863d..4d88f20 100644 Binary files a/source/locales/es/LC_MESSAGES/base.mo and b/source/locales/es/LC_MESSAGES/base.mo differ diff --git a/source/locales/es/LC_MESSAGES/base.po b/source/locales/es/LC_MESSAGES/base.po index 86df997..3970f03 100644 --- a/source/locales/es/LC_MESSAGES/base.po +++ b/source/locales/es/LC_MESSAGES/base.po @@ -5,17 +5,73 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2019-10-19 14:42-0500\n" -"PO-Revision-Date: 2019-10-19 15:14-0500\n" +"POT-Creation-Date: 2019-10-19 15:19-0500\n" +"PO-Revision-Date: 2019-10-19 15:24-0500\n" +"Last-Translator: \n" "Language-Team: \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: pygettext.py 1.5\n" "X-Generator: Poedit 2.2.4\n" -"Last-Translator: \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 msgid "PIP not installed"