Overview
| Comment: | [lo] remove autoconsole (was a bad idea) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | lo |
| Files: | files | file ages | folders |
| SHA3-256: |
8a986b76c6122895cfa40668ca2e0b0a |
| User & Date: | olr on 2019-07-14 17:39:48 |
| Other Links: | manifest | tags |
Context
|
2019-07-14
| ||
| 18:25 | [fr] ajustements check-in: 5172a0f02b user: olr tags: trunk, fr | |
| 17:39 | [lo] remove autoconsole (was a bad idea) check-in: 8a986b76c6 user: olr tags: trunk, lo | |
| 17:28 | [fr] ajustements check-in: 5fc1001885 user: olr tags: trunk, fr | |
Changes
Modified gc_core/py/oxt/Grammalecte.py from [3e7e733b85] to [b7f3044398].
| ︙ | ︙ | |||
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
self.SupportedServiceNames = (self.ServiceName, )
self.locales = []
for i in gce.locales:
l = gce.locales[i]
self.locales.append(Locale(l[0], l[1], l[2]))
self.locales = tuple(self.locales)
xContext = uno.getComponentContext()
# init
gce.load("Writer", "nInt")
# GC options
# opt_handler.load(xContext)
dOpt = Options.load(xContext)
gce.setOptions(dOpt)
# dictionaries options
| > > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
self.SupportedServiceNames = (self.ServiceName, )
self.locales = []
for i in gce.locales:
l = gce.locales[i]
self.locales.append(Locale(l[0], l[1], l[2]))
self.locales = tuple(self.locales)
xContext = uno.getComponentContext()
# debug
#helpers.startConsole()
# init
gce.load("Writer", "nInt")
# GC options
# opt_handler.load(xContext)
dOpt = Options.load(xContext)
gce.setOptions(dOpt)
# dictionaries options
|
| ︙ | ︙ |
Modified gc_lang/fr/oxt/About/About.py from [4ef478c592] to [fbcf41e9ef].
| ︙ | ︙ | |||
75 76 77 78 79 80 81 |
# Infos
self._addWidget('lblVersion', 'FixedText', 10, 90, nLblWidth, 10, Label = dUI.get('version', "#err"), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblLicence', 'FixedText', 10, 100, nLblWidth, 10, Label = dUI.get('license', "#err"), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblWebsite', 'FixedHyperlink', 10, 110, nLblWidth, 10, Label = dUI.get('website', "#err"), Align = 1, \
URL="https://grammalecte.net/?from=grammalecte-lo", FontDescriptor = xFD1, TextColor = nURLcolor)
# Python
| | | < < < < < < < < < < < < < < < < < | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# Infos
self._addWidget('lblVersion', 'FixedText', 10, 90, nLblWidth, 10, Label = dUI.get('version', "#err"), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblLicence', 'FixedText', 10, 100, nLblWidth, 10, Label = dUI.get('license', "#err"), Align = 1, FontDescriptor = xFD2)
self._addWidget('lblWebsite', 'FixedHyperlink', 10, 110, nLblWidth, 10, Label = dUI.get('website', "#err"), Align = 1, \
URL="https://grammalecte.net/?from=grammalecte-lo", FontDescriptor = xFD1, TextColor = nURLcolor)
# Python
self._addWidget('lblpython', 'FixedText', 10, 125, nLblWidth//2, 10, Align = 1, TextColor = 0x666666, FontDescriptor = xFD2, \
Label = dUI.get('pythonver', "#err") + "{0[0]}.{0[1]}.{0[2]}".format(sys.version_info))
self._addWidget('console_button', 'Button', nLblWidth-40, 124, 40, 10, \
Label = dUI.get('console', "#err"), FontDescriptor = xFD2, TextColor = 0x666666)
# other
self._addWidget('line', 'FixedLine', 10, 140, nLblWidth, 10)
# sponsors
self._addWidget('lblMsg', 'FixedText', 10, 155, nLblWidth, 10, Label = dUI.get('message', "#err"), FontDescriptor = xFD2, Align = 1)
self._addWidget('lblURL1', 'FixedHyperlink', 10, 170, nLblWidth, 10, Label = dUI.get('sponsor', "#err"), \
Align = 1, URL="http://lamouette.org/?from=grammalecte-lo", FontDescriptor = xFD3, TextColor = nURLcolor)
self._addWidget('imgSponsor', 'ImageControl', 5, 180, 150, 50, ImageURL = sExtPath+"/img/LaMouette_small.png", Border = 0, ScaleMode = 1)
self._addWidget('lblURL2', 'FixedHyperlink', 10, 235, nLblWidth, 10, Label = dUI.get('sponsor2', "#err"), \
Align = 1, URL="https://www.algoo.fr/?from=grammalecte-lo", FontDescriptor = xFD3, TextColor = nURLcolor)
self._addWidget('imgSponsor2', 'ImageControl', 5, 245, 150, 50, ImageURL = sExtPath+"/img/Algoo_logo.png", Border = 0, ScaleMode = 1)
self._addWidget('lblURL3', 'FixedHyperlink', 10, 300, nLblWidth, 10, Label = dUI.get('link', "#err"), \
Align = 1, URL="https://grammalecte.net/#thanks", FontDescriptor = xFD1, TextColor = nURLcolor)
# container
self.xContainer = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.UnoControlDialog', self.ctx)
self.xContainer.setModel(self.xDialog)
self.xContainer.getControl('console_button').addActionListener(self)
self.xContainer.getControl('console_button').setActionCommand('Console')
self.xContainer.setVisible(False)
xToolkit = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.ExtToolkit', self.ctx)
self.xContainer.createPeer(xToolkit, None)
self.xContainer.execute()
except:
traceback.print_exc()
# XActionListener
def actionPerformed (self, xActionEvent):
try:
if xActionEvent.ActionCommand == 'Console':
helpers.startConsole()
else:
self.xContainer.endExecute()
except:
traceback.print_exc()
|
Modified gc_lang/fr/oxt/About/ab_strings.py from [8f55eaf617] to [251411e233].
| ︙ | ︙ | |||
11 12 13 14 15 16 17 |
"title": "Grammalecte",
"version": "Version : ${version}",
"license": "Licence : GPL 3",
"website": "Site web",
"pythonver": "Python v",
"console": "Console",
| < < < < | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
"title": "Grammalecte",
"version": "Version : ${version}",
"license": "Licence : GPL 3",
"website": "Site web",
"pythonver": "Python v",
"console": "Console",
"message": "Avec le soutien de",
"sponsor": "La Mouette…",
"sponsor2": "Algoo…",
"link": "… et de nombreux contributeurs.",
"close": "~OK"
},
"en": {
"windowtitle": "About…",
"title": "Grammalecte",
"version": "Version: ${version}",
"license": "License: GPL 3",
"website": "Web site",
"pythonver": "Python v",
"console": "Console",
"message": "With the support of",
"sponsor": "La Mouette…",
"sponsor2": "Algoo…",
"link": "… and many contributors.",
"close": "~OK"
}
}
|
Modified gc_lang/fr/oxt/AppLauncher.py from [d099028ae8] to [cc21e56bdc].
| ︙ | ︙ | |||
18 19 20 21 22 23 24 |
def __init__ (self, ctx):
self.ctx = ctx
# In this extension, French is default language.
# It is assumed that those who need to use the French dictionaries understand French and may not understand English.
xSettings = helpers.getConfigSetting("/org.openoffice.Setup/L10N", False)
sLocale = xSettings.getByName("ooLocale") # Note: look at ooSetupSystemLocale value?
self.sLang = sLocale[0:2]
| < < < < < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
def __init__ (self, ctx):
self.ctx = ctx
# In this extension, French is default language.
# It is assumed that those who need to use the French dictionaries understand French and may not understand English.
xSettings = helpers.getConfigSetting("/org.openoffice.Setup/L10N", False)
sLocale = xSettings.getByName("ooLocale") # Note: look at ooSetupSystemLocale value?
self.sLang = sLocale[0:2]
# XJobExecutor
def trigger (self, sCmd):
try:
if sCmd == "About":
import About
xDialog = About.AboutGrammalecte(self.ctx)
|
| ︙ | ︙ |