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
# ~ Your great extension name, not used spaces
NAME = 'MyFirstExtension'
NAME = 'ZAZExtensions'
# ~ https://semver.org/
VERSION = '0.1.0'
# ~ Should be unique, used URL inverse
ID = 'org.myfirstextension'
ID = 'net.elmau.zaz.extensions'
# ~ If you extension will be multilanguage set: True
# ~ This feature used gettext, set pythonpath and easymacro in True
@ -48,9 +48,10 @@ PATH_MSGMERGE = 'msgmerge'
# ~ Show in extension manager
URL_GIT = 'https://git.cuates.net/elmau/zaz-extensions'
PUBLISHER = {
'en': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'},
'es': {'text': 'El Mau', 'link': 'https://gitlab.com/mauriciobaeza'},
'en': {'text': 'El Mau', 'link': URL_GIT},
'es': {'text': 'El Mau', 'link': URL_GIT},
}
# ~ Name in this folder for copy
@ -79,13 +80,13 @@ LICENSE_ES = LICENSE_EN
INFO = {
'en': {
'display_name': 'My first extension',
'description': 'My great extension',
'display_name': 'ZAZ Extensions',
'description': 'Wizard for make LibreOffice extensions',
'license': LICENSE_EN,
},
'es': {
'display_name': 'Mi primer extensión',
'description': 'Mi gran extensión',
'display_name': 'ZAZ Extensiones',
'description': 'Asistenten para generar extensiones para LibreOffice',
'license': LICENSE_ES,
},
}
@ -102,33 +103,16 @@ INFO = {
# ~ 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+T -> T_SHIFT_MOD1_MOD2
PARENT = 'OfficeMenuBar'
MENU_MAIN = {
'en': 'My Extension',
'es': 'Mi Extensión',
}
PARENT = 'AddonMenu'
MENU_MAIN = {}
MENUS = (
{
'title': {'en': 'Option 1', 'es': 'Opción 1'},
'argument': 'option1',
'context': 'calc,writer',
'title': {'en': 'ZAZ Wizard', 'es': 'ZAZ Asistente'},
'argument': 'wizard',
'context': 'calc,writer,draw,impress',
'icon': 'icon',
'toolbar': True,
'shortcut': 'T_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': '',
},
),
'toolbar': False,
'shortcut': 'W_SHIFT_MOD1_MOD2',
},
)

0
zaz.py Normal file → Executable file
View File