Index: gc_core/py/oxt/helpers.py ================================================================== --- gc_core/py/oxt/helpers.py +++ gc_core/py/oxt/helpers.py @@ -85,11 +85,11 @@ def getAbsolutePathOf (sPath=""): xDefaultContext = uno.getComponentContext().ServiceManager.DefaultContext xPackageInfoProvider = xDefaultContext.getValueByName("/singletons/com.sun.star.deployment.PackageInformationProvider") - sFullPath = xPackageInfoProvider.getPackageLocation("French.linguistic.resources.from.Dicollecte.by.OlivierR") + sFullPath = xPackageInfoProvider.getPackageLocation("${oxt_identifier}") if sPath and not sPath.startswith("/"): sPath = "/" + sPath sFullPath = sFullPath[8:] + sPath return os.path.abspath(sFullPath) Index: gc_lang/fr/config.ini ================================================================== --- gc_lang/fr/config.ini +++ gc_lang/fr/config.ini @@ -36,14 +36,19 @@ fsa_method = 1 # stemming method: S for suffixes only, A for prefixes and suffixes stemming_method = S # LibreOffice -unopkg = C:/Program Files/LibreOffice/program/unopkg.com oxt_version = 7.7 oxt_identifier = French.linguistic.resources.from.Dicollecte.by.OlivierR +# Warning! The oxt_identifier variable must be the same to the one used in LibreOffice for the +# dictionary. If you want to change this identifier, you must first change it in LibreOffice, +# then release a new version of your extension with this identifier. Dont forget to change the +# file to update the minimal version of LibreOffice required for the extension +# with the new oxt_identifier variable. oxt_update_info_URL = https://grammalecte.net/grammalecte/oxt/grammalecte.update.xml +unopkg = C:/Program Files/LibreOffice/program/unopkg.com # Firefox fx_identifier = French-GC@grammalecte.net fx_name = Grammalecte [fr] win_fx_path = C:\Program Files\Mozilla Firefox\firefox.exe Index: gc_lang/fr/oxt/About/About.py ================================================================== --- gc_lang/fr/oxt/About/About.py +++ gc_lang/fr/oxt/About/About.py @@ -67,11 +67,11 @@ xFD3.Name = "Verdana" # logo xDefaultContext = self.ctx.ServiceManager.DefaultContext xPackageInfoProvider = xDefaultContext.getValueByName("/singletons/com.sun.star.deployment.PackageInformationProvider") - sExtPath = xPackageInfoProvider.getPackageLocation("French.linguistic.resources.from.Dicollecte.by.OlivierR") + sExtPath = xPackageInfoProvider.getPackageLocation("${oxt_identifier}") self._addWidget('imgMainLogo', 'ImageControl', 5, 5, 150, 80, ImageURL = sExtPath+"/img/logo120_text.png", Border = 0, ScaleMode = 1) # Infos self._addWidget('lblVersion', 'FixedText', 10, 90, nLblWidth, 10, Label = ui.get('version'), Align = 1, FontDescriptor = xFD2) self._addWidget('lblLicence', 'FixedText', 10, 100, nLblWidth, 10, Label = ui.get('license'), Align = 1, FontDescriptor = xFD2)