From 350dc590b04041f15d6c570075ade425e4db93ad Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Feb 2013 09:12:31 +0100 Subject: fdo#60139: Rename bundled extensions's Lightproof service implementation names ... from org.openoffice.comp.pyuno.Lightproof... to org.libreoffice.comp.pyuno.Lightproof... (and increment the corresponding extensions' version numbers) to avoid clashes with any freestanding Lightproof extension. --- pt_BR/Lightproof.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pt_BR/Lightproof.py') diff --git a/pt_BR/Lightproof.py b/pt_BR/Lightproof.py index 80d83da..eabf54b 100644 --- a/pt_BR/Lightproof.py +++ b/pt_BR/Lightproof.py @@ -231,7 +231,7 @@ class Lightproof( unohelper.Base, XProofreader, XServiceInfo, XServiceName, XSer global SMGR self.ctx = ctx self.ServiceName = "com.sun.star.linguistic2.Proofreader" - self.ImplementationName = "org.openoffice.comp.pyuno.Lightproof." + pkg + self.ImplementationName = "org.libreoffice.comp.pyuno.Lightproof." + pkg self.SupportedServiceNames = (self.ServiceName, ) self.locales = [] for i in locales: @@ -313,11 +313,11 @@ class Lightproof( unohelper.Base, XProofreader, XServiceInfo, XServiceName, XSer g_ImplementationHelper = unohelper.ImplementationHelper() g_ImplementationHelper.addImplementation( Lightproof, \ - "org.openoffice.comp.pyuno.Lightproof." + pkg, + "org.libreoffice.comp.pyuno.Lightproof." + pkg, ("com.sun.star.linguistic2.Proofreader",),) g_ImplementationHelper.addImplementation( lightproof_handler_pt_BR.LightproofOptionsEventHandler, \ - "org.openoffice.comp.pyuno.LightproofOptionsEventHandler." + pkg, + "org.libreoffice.comp.pyuno.LightproofOptionsEventHandler." + pkg, ("com.sun.star.awt.XContainerWindowEventHandler",),) # pattern matching for common English abbreviations abbrev = re.compile("(?i)\\b([a-z]|acct|approx|appt|apr|apt|assoc|asst|aug|ave|avg|co(nt|rp)?|ct|dec|defn|dept|dr|eg|equip|esp|est|etc|excl|ext|feb|fri|ft|govt?|hrs?|ib(id)?|ie|in(c|t)?|jan|jr|jul|lit|ln|mar|max|mi(n|sc)?|mon|Mrs?|mun|natl?|neg?|no(rm|s|v)?|nw|obj|oct|org|orig|pl|pos|prev|proj|psi|qty|rd|rec|rel|reqd?|resp|rev|sat|sci|se(p|pt)?|spec(if)?|sq|sr|st|subj|sun|sw|temp|thurs|tot|tues|univ|var|vs)\\.") @@ -18612,4 +18612,4 @@ def measurement(mnum, min, mout, mstr, decimal, remove): m = calc("CONVERT_ADD", (float(eval(mnum.replace(remove, "").replace(decimal, ".").replace(u"\u2212", "-"))), min, mout)) a = list(set([str(calc("ROUND", (m, 0)))[:-2], str(calc("ROUND", (m, 1))), str(calc("ROUND", (m, 2))), str(m)])) # remove duplicated rounded items a.sort(lambda x, y: len(x) - len(y)) # sort by string length - return (mstr + "\n").join(a).replace(".", decimal).replace("-", u"\u2212") + mstr \ No newline at end of file + return (mstr + "\n").join(a).replace(".", decimal).replace("-", u"\u2212") + mstr -- cgit