diff --git a/conf.py b/conf.py index 664155b..92bb509 100644 --- a/conf.py +++ b/conf.py @@ -26,7 +26,7 @@ import logging TYPE_EXTENSION = 1 # ~ https://semver.org/ -VERSION = '0.2.0' +VERSION = '0.2.1' # ~ Your great extension name, not used spaces NAME = 'ZAZBarCode' @@ -34,9 +34,19 @@ NAME = 'ZAZBarCode' # ~ Should be unique, used URL inverse ID = 'net.elmau.zaz.BarCode' -# ~ If you extension will be multilanguage set True -USE_LOCALES = False +# ~ If you extension will be multilanguage set: True +# ~ This feature used gettext, set pythonpath and easymacro in True +# ~ Yu can used PoEdit for edit PO files and generate MO files. +# ~ https://poedit.net/ +USE_LOCALES = True +DOMAIN = 'base' +PATH_LOCALES = 'locales' +# ~ locate pygettext.py +PATH_PYGETTEXT = '/usr/lib/python3.7/Tools/i18n/pygettext.py' +PATH_MSGMERGE = 'msgmerge' + +# ~ Show in extension manager PUBLISHER = { 'en': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'}, 'es': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'}, @@ -97,8 +107,14 @@ CONTEXT = { # ~ Menus, only for TYPE_EXTENSION = 1 # ~ Parent can be: AddonMenu or OfficeMenuBar # ~ For icons con name: NAME_16.bmp, used only NAME -# ~ PARENT = 'AddonMenu' -# ~ MENU_MAIN = '' +# ~ PARENT = '' +# ~ MENU_MAIN = {} +# ~ Shortcut: Key + "Modifier Keys" +# ~ Important: Not used any shortcuts used for LibreOffice +# ~ SHIFT is mapped to Shift on all platforms. +# ~ MOD1 is mapped to Ctrl on Windows/Linux, while it is mapped to Cmd on Mac. +# ~ MOD2 is mapped to Alt on all platforms. +# ~ For example: Shift+Ctrl+Alt+M -> M_SHIFT_MOD1_MOD2 PARENT = 'OfficeMenuBar' MENU_MAIN = { 'en': 'ZAZ BarCode', @@ -247,11 +263,12 @@ EXTENSION = { 'name': NAME, 'id': ID, 'icon': (ICON, ICON_EXT), + 'languages': tuple(INFO.keys()) } # ~ If used more libraries set python path in True and copy inside -# ~ If used easymacro pythonpath always is True +# ~ If used easymacro pythonpath always is True, recommended DIRS = { 'meta': 'META-INF', 'source': 'source', @@ -259,8 +276,8 @@ DIRS = { 'images': 'images', 'registration': 'registration', 'files': 'files', - 'pythonpath': False, - 'locales': 'locales', + 'pythonpath': True, + 'locales': PATH_LOCALES, } diff --git a/files/ZAZBarCode_v0.2.1.oxt b/files/ZAZBarCode_v0.2.1.oxt new file mode 100644 index 0000000..eaf82f7 Binary files /dev/null and b/files/ZAZBarCode_v0.2.1.oxt differ diff --git a/files/zazbarcode.update.xml b/files/zazbarcode.update.xml index 5788adf..09e7bae 100644 --- a/files/zazbarcode.update.xml +++ b/files/zazbarcode.update.xml @@ -5,10 +5,10 @@ xmlns:xlink="http://www.w3.org/1999/xlink"> - + - + diff --git a/source/description.xml b/source/description.xml index 4d2d54a..02d2290 100644 --- a/source/description.xml +++ b/source/description.xml @@ -1,7 +1,7 @@ - + ZAZ Bar Code ZAZ Códigos de Barras