Index: gc_lang/fr/oxt/ContextMenu/ContextMenu.py ================================================================== --- gc_lang/fr/oxt/ContextMenu/ContextMenu.py +++ gc_lang/fr/oxt/ContextMenu/ContextMenu.py @@ -52,11 +52,11 @@ self._addItemToContextMenu(xSubMenuContainer, j, "ActionTrigger", Text=s, CommandURL="service:net.grammalecte.AppLauncher?None") # create root menu entry i = self._addItemToContextMenu(xContextMenu, i, "ActionTrigger", Text=sRoot, SubContainer=xSubMenuContainer) else: i = self._addItemToContextMenu(xContextMenu, i, "ActionTrigger", Text="# erreur : {}".format(item)) - + # Links to Conjugueur if aVerb: i = self._addItemToContextMenu(xContextMenu, i, "ActionTriggerSeparator", SeparatorType=nUnoConstantLine) for sVerb in aVerb: i = self._addItemToContextMenu(xContextMenu, i, "ActionTrigger", Text="Conjuguer “{}”…".format(sVerb), @@ -134,11 +134,11 @@ oSpellChecker = SpellChecker("${lang}", "fr-allvars.bdic") if not oLexicographe: oLexicographe = lxg.Lexicographe(oSpellChecker) except: traceback.print_exc() - + def execute (self, args): if not args: return try: # what version of the software? @@ -145,11 +145,11 @@ xSettings = helpers.getConfigSetting("org.openoffice.Setup/Product", False) sProdName = xSettings.getByName("ooName") sVersion = xSettings.getByName("ooSetupVersion") if (sProdName == "LibreOffice" and sVersion < "4") or sProdName == "OpenOffice.org": return - + # what event? bCorrectEvent = False for arg in args: if arg.Name == "Environment": for v in arg.Value: @@ -167,9 +167,9 @@ if xController: xController.registerContextMenuInterceptor(MyContextMenuInterceptor(self.ctx)) #print("OFF") except: traceback.print_exc() - + g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation(JobExecutor, "grammalecte.ContextMenuHandler", ("grammalecte.ContextMenuHandler",),)