Set initial config

This commit is contained in:
Mauricio Baeza 2021-07-12 21:42:26 -05:00
parent 9d3fdfedd1
commit 286c06592a
2 changed files with 16 additions and 32 deletions

48
conf.py
View File

@ -26,14 +26,14 @@ import logging
TYPE_EXTENSION = 1 TYPE_EXTENSION = 1
# ~ Your great extension name, not used spaces # ~ Your great extension name, not used spaces
NAME = 'MyFirstExtension' NAME = 'ZAZExtensions'
# ~ https://semver.org/ # ~ https://semver.org/
VERSION = '0.1.0' VERSION = '0.1.0'
# ~ Should be unique, used URL inverse # ~ Should be unique, used URL inverse
ID = 'org.myfirstextension' ID = 'net.elmau.zaz.extensions'
# ~ If you extension will be multilanguage set: True # ~ If you extension will be multilanguage set: True
# ~ This feature used gettext, set pythonpath and easymacro in True # ~ This feature used gettext, set pythonpath and easymacro in True
@ -48,9 +48,10 @@ PATH_MSGMERGE = 'msgmerge'
# ~ Show in extension manager # ~ Show in extension manager
URL_GIT = 'https://git.cuates.net/elmau/zaz-extensions'
PUBLISHER = { PUBLISHER = {
'en': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'}, 'en': {'text': 'El Mau', 'link': URL_GIT},
'es': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'}, 'es': {'text': 'El Mau', 'link': URL_GIT},
} }
# ~ Name in this folder for copy # ~ Name in this folder for copy
@ -79,13 +80,13 @@ LICENSE_ES = LICENSE_EN
INFO = { INFO = {
'en': { 'en': {
'display_name': 'My first extension', 'display_name': 'ZAZ Extensions',
'description': 'My great extension', 'description': 'Wizard for make LibreOffice extensions',
'license': LICENSE_EN, 'license': LICENSE_EN,
}, },
'es': { 'es': {
'display_name': 'Mi primer extensión', 'display_name': 'ZAZ Extensiones',
'description': 'Mi gran extensión', 'description': 'Asistenten para generar extensiones para LibreOffice',
'license': LICENSE_ES, 'license': LICENSE_ES,
}, },
} }
@ -102,33 +103,16 @@ INFO = {
# ~ MOD1 is mapped to Ctrl on Windows/Linux, while it is mapped to Cmd on Mac. # ~ MOD1 is mapped to Ctrl on Windows/Linux, while it is mapped to Cmd on Mac.
# ~ MOD2 is mapped to Alt on all platforms. # ~ MOD2 is mapped to Alt on all platforms.
# ~ For example: Shift+Ctrl+Alt+T -> T_SHIFT_MOD1_MOD2 # ~ For example: Shift+Ctrl+Alt+T -> T_SHIFT_MOD1_MOD2
PARENT = 'OfficeMenuBar' PARENT = 'AddonMenu'
MENU_MAIN = { MENU_MAIN = {}
'en': 'My Extension',
'es': 'Mi Extensión',
}
MENUS = ( MENUS = (
{ {
'title': {'en': 'Option 1', 'es': 'Opción 1'}, 'title': {'en': 'ZAZ Wizard', 'es': 'ZAZ Asistente'},
'argument': 'option1', 'argument': 'wizard',
'context': 'calc,writer', 'context': 'calc,writer,draw,impress',
'icon': 'icon', 'icon': 'icon',
'toolbar': True, 'toolbar': False,
'shortcut': 'T_SHIFT_MOD1_MOD2', 'shortcut': 'W_SHIFT_MOD1_MOD2',
},
{
'title': {'en': 'Submenu', 'es': 'Submenu'},
'context': 'calc,writer',
'submenu': (
{
'title': {'en': 'Option 2', 'es': 'Opción 2'},
'argument': 'option2',
'context': 'calc,writer',
'icon': 'icon',
'toolbar': True,
'shortcut': '',
},
),
}, },
) )

0
zaz.py Normal file → Executable file
View File