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()
|