Release v0.9.0

This commit is contained in:
El Mau 2022-01-27 12:02:38 -06:00
parent b1e24d4411
commit 354b5e1421
12 changed files with 258 additions and 119 deletions

View File

@ -1,3 +1,8 @@
v 0.9.0 [27-jan-2022]
- Fix - Add minimal version required, issue #5
- Fix - Corrections to english messages, issue #6
- Fix - Update and complete spanish translation, thanks to me, :)
v 0.8.0 [13-jun-2021] v 0.8.0 [13-jun-2021]
- Update easymacro.py - Update easymacro.py
- Add proxy config - Add proxy config

View File

@ -8,13 +8,12 @@ Thanks!
https://git.cuates.net/elmau/zaz https://git.cuates.net/elmau/zaz
### Free Software, not gratis ### Free Software, not gratis software
This extension have a cost of maintenance of 1 euro every year. This extension have a cost of maintenance of 1 euro every year.
G1: `A5DdXxCKPw3QKWVdDVs7CzkNugNUW1sHu5zDJFWxCU2h` G1: `A5DdXxCKPw3QKWVdDVs7CzkNugNUW1sHu5zDJFWxCU2h`
BCH: `qztd3l00xle5tffdqvh2snvadkuau2ml0uqm4n875d`
``` ```
Euros Euros
@ -22,10 +21,12 @@ IBAN: BE60 9671 0556 5870
SWIFT / BIC: TRWIBEB1XXX SWIFT / BIC: TRWIBEB1XXX
``` ```
* [Look the wiki](https://gitlab.com/mauriciobaeza/zaz-pip/wikis/home) * [Look the wiki](https://git.cuates.net/elmau/zaz-pip/wiki/home)
* [Mira la wiki](https://gitlab.com/mauriciobaeza/zaz-pip/wikis/home_es) * [Mira la wiki](https://git.cuates.net/elmau/zaz-pip/wiki/home_es)
Thanks for translations: Thanks for translations:
English - @LibreOfficiant
* Help Us * Help Us

View File

@ -1 +1 @@
0.8.1 0.9.0

View File

@ -26,7 +26,7 @@ import logging
TYPE_EXTENSION = 1 TYPE_EXTENSION = 1
# ~ https://semver.org/ # ~ https://semver.org/
VERSION = '0.8.1' VERSION = '0.9.0'
# ~ Your great extension name, not used spaces # ~ Your great extension name, not used spaces
NAME = 'ZAZPip' NAME = 'ZAZPip'
@ -41,7 +41,7 @@ ID = 'net.elmau.zaz.pip'
USE_LOCALES = True USE_LOCALES = True
DOMAIN = 'base' DOMAIN = 'base'
PATH_LOCALES = 'locales' PATH_LOCALES = 'locales'
PATH_PYGETTEXT = '/usr/lib/python3.8/Tools/i18n/pygettext.py' PATH_PYGETTEXT = '/usr/lib/python3.10/Tools/i18n/pygettext.py'
PATH_MSGMERGE = 'msgmerge' PATH_MSGMERGE = 'msgmerge'
@ -57,7 +57,6 @@ ICON = 'images/logo.png'
# ~ Name inside extensions # ~ Name inside extensions
ICON_EXT = f'{NAME.lower()}.png' ICON_EXT = f'{NAME.lower()}.png'
# ~ For example
DEPENDENCIES_MINIMAL = '7.0' DEPENDENCIES_MINIMAL = '7.0'
# ~ Change for you favorite license # ~ Change for you favorite license
@ -397,6 +396,7 @@ DATA_DESCRIPTION = {
'icon': ICON_EXT, 'icon': ICON_EXT,
'publisher': PUBLISHER, 'publisher': PUBLISHER,
'update': URL_XML_UPDATE, 'update': URL_XML_UPDATE,
'minimal': DEPENDENCIES_MINIMAL,
} }
DATA_ADDONS = { DATA_ADDONS = {

View File

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://openoffice.org/extensions/description/2006"> <description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:l="http://libreoffice.org/extensions/description/2011">
<identifier value="net.elmau.zaz.pip"/> <identifier value="net.elmau.zaz.pip"/>
<version value="0.8.0"/> <version value="0.9.0"/>
<dependencies>
<l:LibreOffice-minimal-version value="7.0"/>
</dependencies>
<display-name> <display-name>
<name lang="en">ZAZ Pip</name> <name lang="en">ZAZ Pip</name>
<name lang="es">ZAZ Pip</name> <name lang="es">ZAZ Pip</name>

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 15:19-0500\n" "POT-Creation-Date: 2022-01-27 11:44-0600\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,73 +15,105 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: source/ZAZPip.py:49 #: source/pythonpath/main.py:81
msgid "Do you want install PIP?" msgid "Do you want to install 'Python installer package' (PIP)?"
msgstr "" msgstr ""
#: source/ZAZPip.py:67 #: source/pythonpath/main.py:93
msgid "Do you have internet connection?" msgid "Downloading PIP…"
msgstr "" msgstr ""
#: source/ZAZPip.py:73 #: source/pythonpath/main.py:96
msgid "File PIP not save" msgid "Unable to connect to internet"
msgstr "" msgstr ""
#: source/ZAZPip.py:76 #: source/pythonpath/main.py:102
msgid "PIP save correctly..." msgid "Unable to copy PIP installation file"
msgstr "" msgstr ""
#: source/ZAZPip.py:80 #: source/pythonpath/main.py:105
msgid "Start installing PIP..." msgid "PIP installation file has been saved"
msgstr "" msgstr ""
#: source/ZAZPip.py:94 #: source/pythonpath/main.py:108
msgid "PIP installed sucesfully" msgid "Starting PIP installation…"
msgstr "" msgstr ""
#: source/ZAZPip.py:97 #: source/pythonpath/main.py:122
msgid "PIP not installed, see log" msgid "PIP was installed sucessfully"
msgstr "" msgstr ""
#: source/ZAZPip.py:173 #: source/pythonpath/main.py:125
msgid "Not found..." msgid "PIP installation has failed, see log"
msgstr "" msgstr ""
#: source/ZAZPip.py:209 #: source/pythonpath/main.py:198
msgid "Package not found…"
msgstr ""
#: source/pythonpath/main.py:213
msgid "Enter the package name to install"
msgstr ""
#: source/pythonpath/main.py:252
msgid "" msgid ""
"Do you want {}:\n" "Do you want to {}:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
#: source/ZAZPip.py:235 #: source/pythonpath/main.py:278
msgid "Select installed package" msgid "Select installed package"
msgstr "" msgstr ""
#: source/ZAZPip.py:240 #: source/pythonpath/main.py:283
msgid "" msgid ""
"Do you want uninstall:\n" "Do you want to uninstall:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
#: source/ZAZPip.py:327 #: source/pythonpath/main.py:337
msgid "PIP not installed" msgid "Do you want to save this Proxy settings?"
msgstr "" msgstr ""
#: source/ZAZPip.py:346 #: source/pythonpath/main.py:343
msgid "Proxy settings saved sucessfully"
msgstr ""
#: source/pythonpath/main.py:349
msgid "Do you want to remove Proxy settings?"
msgstr ""
#: source/pythonpath/main.py:355
msgid "Proxy settings deleted sucessfully"
msgstr ""
#: source/pythonpath/main.py:413
msgid "'Python installer package' (PIP) is not installed"
msgstr ""
#: source/pythonpath/main.py:432
msgid "Admin PIP" msgid "Admin PIP"
msgstr "" msgstr ""
#: source/ZAZPip.py:359 #: source/pythonpath/main.py:445
msgid "Install PIP" msgid "Install PIP"
msgstr "" msgstr ""
#: source/ZAZPip.py:397 #: source/pythonpath/main.py:494
msgid "Packages" msgid "Packages"
msgstr "" msgstr ""
#: source/ZAZPip.py:429 #: source/pythonpath/main.py:536
msgid "~Close" msgid "~Close"
msgstr "" msgstr ""
#: source/pythonpath/main.py:733
msgid "Save"
msgstr ""
#: source/pythonpath/main.py:745
msgid "Delete"
msgstr ""

View File

@ -5,84 +5,116 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2019-10-19 15:19-0500\n" "POT-Creation-Date: 2022-01-27 11:44-0600\n"
"PO-Revision-Date: 2021-01-21 16:32-0500\n" "PO-Revision-Date: 2021-01-21 16:32-0500\n"
"Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: en\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: en\n"
#: source/ZAZPip.py:49 #: source/pythonpath/main.py:81
msgid "Do you want to install PIP?" msgid "Do you want to install 'Python installer package' (PIP)?"
msgstr "" msgstr ""
#: source/ZAZPip.py:67 #: source/pythonpath/main.py:93
msgid "Do you have an internet connection?" msgid "Downloading PIP…"
msgstr "" msgstr ""
#: source/ZAZPip.py:73 #: source/pythonpath/main.py:96
msgid "PIP file has not been saved" msgid "Unable to connect to internet"
msgstr "" msgstr ""
#: source/ZAZPip.py:76 #: source/pythonpath/main.py:102
msgid "PIP correctly saved…" msgid "Unable to copy PIP installation file"
msgstr "" msgstr ""
#: source/ZAZPip.py:80 #: source/pythonpath/main.py:105
msgid "PIP installation starts…" msgid "PIP installation file has been saved"
msgstr "" msgstr ""
#: source/ZAZPip.py:94 #: source/pythonpath/main.py:108
msgid "Starting PIP installation…"
msgstr ""
#: source/pythonpath/main.py:122
msgid "PIP was installed sucessfully" msgid "PIP was installed sucessfully"
msgstr "" msgstr ""
#: source/ZAZPip.py:97 #: source/pythonpath/main.py:125
msgid "PIP not installed, see log" msgid "PIP installation has failed, see log"
msgstr "" msgstr ""
#: source/ZAZPip.py:173 #: source/pythonpath/main.py:198
msgid "Not found..." msgid "Package not found…"
msgstr "" msgstr ""
#: source/ZAZPip.py:209 #: source/pythonpath/main.py:213
msgid "Enter the package name to install"
msgstr ""
#: source/pythonpath/main.py:252
msgid "" msgid ""
"Do you want {}:\n" "Do you want to {}:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
#: source/ZAZPip.py:235 #: source/pythonpath/main.py:278
msgid "Select installed package" msgid "Select installed package"
msgstr "" msgstr ""
#: source/ZAZPip.py:240 #: source/pythonpath/main.py:283
msgid "" msgid ""
"Do you want uninstall:\n" "Do you want to uninstall:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
#: source/ZAZPip.py:327 #: source/pythonpath/main.py:337
msgid "PIP not installed" msgid "Do you want to save this Proxy settings?"
msgstr "" msgstr ""
#: source/ZAZPip.py:346 #: source/pythonpath/main.py:343
msgid "Proxy settings saved sucessfully"
msgstr ""
#: source/pythonpath/main.py:349
msgid "Do you want to remove Proxy settings?"
msgstr ""
#: source/pythonpath/main.py:355
msgid "Proxy settings deleted sucessfully"
msgstr ""
#: source/pythonpath/main.py:413
msgid "'Python installer package' (PIP) is not installed"
msgstr ""
#: source/pythonpath/main.py:432
msgid "Admin PIP" msgid "Admin PIP"
msgstr "" msgstr ""
#: source/ZAZPip.py:359 #: source/pythonpath/main.py:445
msgid "Install PIP" msgid "Install PIP"
msgstr "" msgstr ""
#: source/ZAZPip.py:397 #: source/pythonpath/main.py:494
msgid "Packages" msgid "Packages"
msgstr "" msgstr ""
#: source/ZAZPip.py:429 #: source/pythonpath/main.py:536
msgid "~Close" msgid "~Close"
msgstr "" msgstr ""
#: source/pythonpath/main.py:733
msgid "Save"
msgstr ""
#: source/pythonpath/main.py:745
msgid "Delete"
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 15:19-0500\n" "POT-Creation-Date: 2022-01-27 11:44-0600\n"
"PO-Revision-Date: 2019-10-19 15:24-0500\n" "PO-Revision-Date: 2022-01-27 11:53-0600\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: es\n" "Language: es\n"
@ -14,81 +14,134 @@ msgstr ""
"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 3.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: source/ZAZPip.py:49 #: source/pythonpath/main.py:81
msgid "Do you want install PIP?" msgid "Do you want to install 'Python installer package' (PIP)?"
msgstr "¿Desea instalar PIP?" msgstr "¿Desea instalar el instalador de paquetes Python (PIP)?"
#: source/ZAZPip.py:67 #: source/pythonpath/main.py:93
msgid "Do you have internet connection?" msgid "Downloading PIP…"
msgstr "¿Tiene conexión a Internet?" msgstr "Descargando PIP..."
#: source/ZAZPip.py:73 #: source/pythonpath/main.py:96
msgid "File PIP not save" msgid "Unable to connect to internet"
msgstr "No se guardo el archivo PIP" msgstr "No se puede conectar a Internet."
#: source/ZAZPip.py:76 #: source/pythonpath/main.py:102
msgid "PIP save correctly..." msgid "Unable to copy PIP installation file"
msgstr "Archivo PIP guardado correctamente..." msgstr "No se puede copiar el archivo de instalación de PIP."
#: source/ZAZPip.py:80 #: source/pythonpath/main.py:105
msgid "Start installing PIP..." msgid "PIP installation file has been saved"
msgstr "Iniciando instalación de PIP..." msgstr "Se ha guardado el archivo de instalación de PIP."
#: source/ZAZPip.py:94 #: source/pythonpath/main.py:108
msgid "PIP installed sucesfully" msgid "Starting PIP installation…"
msgstr "Iniciando la instalación de PIP..."
#: source/pythonpath/main.py:122
#, fuzzy
msgid "PIP was installed sucessfully"
msgstr "PIP instalado correctamente" msgstr "PIP instalado correctamente"
#: source/ZAZPip.py:97 #: source/pythonpath/main.py:125
msgid "PIP not installed, see log" msgid "PIP installation has failed, see log"
msgstr "PIP no fue instalado, vea el registro" msgstr "Ha fallado la instalación de PIP, vea el registro."
#: source/ZAZPip.py:173 #: source/pythonpath/main.py:198
msgid "Not found..." msgid "Package not found…"
msgstr "No encontrado..." msgstr "Paquete no encontrado..."
#: source/ZAZPip.py:209 #: source/pythonpath/main.py:213
msgid "Enter the package name to install"
msgstr "Introduzca el nombre del paquete a instalar."
#: source/pythonpath/main.py:252
#, fuzzy
msgid "" msgid ""
"Do you want {}:\n" "Do you want to {}:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
"¿Desea {}:\n" "¿Desea {}:\n"
"\n" "\n"
"{} ?" "{} ?"
#: source/ZAZPip.py:235 #: source/pythonpath/main.py:278
msgid "Select installed package" msgid "Select installed package"
msgstr "Seleccione un paquete instalado" msgstr "Seleccione un paquete instalado."
#: source/ZAZPip.py:240 #: source/pythonpath/main.py:283
#, fuzzy
msgid "" msgid ""
"Do you want uninstall:\n" "Do you want to uninstall:\n"
"\n" "\n"
"{} ?" "{}?"
msgstr "" msgstr ""
"¿Desea desinstalar:\n" "¿Desea desinstalar:\n"
"\n" "\n"
"{} ?" "{} ?"
#: source/ZAZPip.py:327 #: source/pythonpath/main.py:337
msgid "PIP not installed" msgid "Do you want to save this Proxy settings?"
msgstr "PIP no esta instalado" msgstr "¿Desea guardar la configuración del Proxy?"
#: source/ZAZPip.py:346 #: source/pythonpath/main.py:343
msgid "Proxy settings saved sucessfully"
msgstr "PIP instalado correctamente."
#: source/pythonpath/main.py:349
msgid "Do you want to remove Proxy settings?"
msgstr "¿Desea eliminar la configuración del Proxy?"
#: source/pythonpath/main.py:355
msgid "Proxy settings deleted sucessfully"
msgstr "PIP instalado correctamente."
#: source/pythonpath/main.py:413
msgid "'Python installer package' (PIP) is not installed"
msgstr "El \"instalador de paquetes de Python\" (PIP) no está instalado."
#: source/pythonpath/main.py:432
msgid "Admin PIP" msgid "Admin PIP"
msgstr "Administrar PIP" msgstr "Administrar PIP"
#: source/ZAZPip.py:359 #: source/pythonpath/main.py:445
msgid "Install PIP" msgid "Install PIP"
msgstr "Instalar PIP" msgstr "Instalar PIP"
#: source/ZAZPip.py:397 #: source/pythonpath/main.py:494
msgid "Packages" msgid "Packages"
msgstr "Paquetes" msgstr "Paquetes"
#: source/ZAZPip.py:429 #: source/pythonpath/main.py:536
msgid "~Close" msgid "~Close"
msgstr "~Cerrar" msgstr "~Cerrar"
#: source/pythonpath/main.py:733
msgid "Save"
msgstr "Guardar"
#: source/pythonpath/main.py:745
msgid "Delete"
msgstr "Eliminar"
#~ msgid "Do you have internet connection?"
#~ msgstr "¿Tiene conexión a Internet?"
#~ msgid "File PIP not save"
#~ msgstr "No se guardo el archivo PIP"
#~ msgid "PIP save correctly..."
#~ msgstr "Archivo PIP guardado correctamente..."
#~ msgid "Start installing PIP..."
#~ msgstr "Iniciando instalación de PIP..."
#~ msgid "Not found..."
#~ msgstr "No encontrado..."
#~ msgid "PIP not installed"
#~ msgstr "PIP no esta instalado"

27
zaz.py
View File

@ -75,10 +75,16 @@ class LiboXML(object):
'manifest': 'urn:oasis:names:tc:opendocument:xmlns:manifest:1.0', 'manifest': 'urn:oasis:names:tc:opendocument:xmlns:manifest:1.0',
'xmlns:loext': 'urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0', 'xmlns:loext': 'urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0',
} }
xmlns = 'http://openoffice.org/extensions/description/2006'
xmlns_xlink = 'http://www.w3.org/1999/xlink'
xmlns_l = 'http://libreoffice.org/extensions/description/2011'
NS_DESCRIPTION = { NS_DESCRIPTION = {
'xmlns': 'http://openoffice.org/extensions/description/2006', 'xmlns': xmlns,
'xmlns:xlink': 'http://www.w3.org/1999/xlink', 'xmlns:xlink': xmlns_xlink,
'xmlns:d': 'http://openoffice.org/extensions/description/2006', 'xmlns:d': xmlns,
'xmlns:l': xmlns_l,
} }
NS_ADDONS = { NS_ADDONS = {
'xmlns:xs': 'http://www.w3.org/2001/XMLSchema', 'xmlns:xs': 'http://www.w3.org/2001/XMLSchema',
@ -87,7 +93,7 @@ class LiboXML(object):
NS_UPDATE = { NS_UPDATE = {
'xmlns': 'http://openoffice.org/extensions/update/2006', 'xmlns': 'http://openoffice.org/extensions/update/2006',
'xmlns:d': 'http://openoffice.org/extensions/description/2006', 'xmlns:d': 'http://openoffice.org/extensions/description/2006',
'xmlns:xlink': 'http://www.w3.org/1999/xlink', 'xmlns:xlink': xmlns_xlink,
} }
def __init__(self): def __init__(self):
@ -158,6 +164,13 @@ class LiboXML(object):
key = 'version' key = 'version'
ET.SubElement(doc, key, data[key]) ET.SubElement(doc, key, data[key])
key = 'minimal'
if data[key]:
node = ET.SubElement(doc, 'dependencies')
# ~ attr = {'value': data[key], 'name': f'LibreOffice {data[key]}'}
attr = {'value': data[key]}
ET.SubElement(node, 'l:LibreOffice-minimal-version', attr)
key = 'display-name' key = 'display-name'
node = ET.SubElement(doc, key) node = ET.SubElement(doc, key)
for k, v in data[key].items(): for k, v in data[key].items():
@ -413,14 +426,14 @@ def _compress_oxt():
z.write(fullpath, file_name, zipfile.ZIP_DEFLATED) z.write(fullpath, file_name, zipfile.ZIP_DEFLATED)
z.close() z.close()
log.info('Extension OXT created sucesfully...') log.info('Extension OXT created successfully...')
return return
def _install_and_test(): def _install_and_test():
path_oxt = (_join(DIRS['files'], FILES['oxt']),) path_oxt = (_join(DIRS['files'], FILES['oxt']),)
call(PATHS['install'] + path_oxt) call(PATHS['install'] + path_oxt)
log.info('Install extension sucesfully...') log.info('Install extension successfully...')
log.info('Start LibreOffice...') log.info('Start LibreOffice...')
call(PATHS['soffice']) call(PATHS['soffice'])
return return
@ -525,7 +538,7 @@ def _compile_idl():
call([PATHS['regmerge'], path_rdb, '/UCR', path_urd]) call([PATHS['regmerge'], path_rdb, '/UCR', path_urd])
os.remove(path_urd) os.remove(path_urd)
log.info('Compilate IDL sucesfully...') log.info('Compilate IDL successfully...')
return return