Grammalecte  Check-in [fb172815a5]

Overview
Comment:[lo] fix personal dictionary loading
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256: fb172815a50c41d10e93a289d0711e3dba1d176f3724479779148f7930ad5c85
User & Date: olr on 2018-04-06 14:50:06
Other Links: manifest | tags
Context
2018-04-06
14:57
[lo] dict options: restart message check-in: 40b4c15c46 user: olr tags: trunk, lo
14:50
[lo] fix personal dictionary loading check-in: fb172815a5 user: olr tags: trunk, lo
14:47
[lo] update Graphspell spelling options check-in: 86c4743b22 user: olr tags: trunk, lo
Changes

Modified gc_lang/fr/oxt/Graphspell.py from [d947f3db6b] to [37463449be].

53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
            self.sImplementationName = "net.grammalecte.graphspell"
            self.tSupportedServiceNames = (self.sServiceName, )
            self.xSvMgr = ctx.ServiceManager
            self.locales = tuple([ Locale(t[0], t[1], t[2])  for t in lLocale ])
            self.xSettingNode = helpers.getConfigSetting("/org.openoffice.Lightproof_grammalecte/Other/", False)
            xChild = self.xSettingNode.getByName("o_fr")
            personal_dic = ""
            if (xChild.getPropertyValue("use_graphspell")):
                sPersonalDicJSON = xChild.getPropertyValue("personal_dic")
                if sPersonalDicJSON:
                    try:
                        personal_dic = json.loads(sPersonalDicJSON)
                    except:
                        print("Graphspell: wrong personal_dic")
                        traceback.print_exc()







|







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
            self.sImplementationName = "net.grammalecte.graphspell"
            self.tSupportedServiceNames = (self.sServiceName, )
            self.xSvMgr = ctx.ServiceManager
            self.locales = tuple([ Locale(t[0], t[1], t[2])  for t in lLocale ])
            self.xSettingNode = helpers.getConfigSetting("/org.openoffice.Lightproof_grammalecte/Other/", False)
            xChild = self.xSettingNode.getByName("o_fr")
            personal_dic = ""
            if (xChild.getPropertyValue("use_personal_dic")):
                sPersonalDicJSON = xChild.getPropertyValue("personal_dic")
                if sPersonalDicJSON:
                    try:
                        personal_dic = json.loads(sPersonalDicJSON)
                    except:
                        print("Graphspell: wrong personal_dic")
                        traceback.print_exc()