10 Commits

Author SHA1 Message Date
eff9495b70 Lightproof: undo some import order changes advised by Ruff linter
Change-Id: Iec2b9a1ed9bf2f9a41dc098fcf6ee8026917e3a3
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/171140
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-28 18:53:39 +02:00
54a7536548 Fix issues found by Ruff linter
Change-Id: I0517a69b52e9f5b3da2648e82e63bc35a48e3e99
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/171091
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-27 12:52:15 +02:00
95ad46565d Python: use is None/is not None instead of == None/!= None
Change-Id: Id5d2fdd780ad703deb893df567e716e913efdf64
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/170361
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-07-22 22:51:14 +02:00
3fdd5e2b1d tdf#156101 add en-IL alongside the other English locales
Change-Id: Iae8812e6bd0f10c2ecbf2f985d465e8fd1c4993e
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/153852
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-07-02 15:51:24 +02:00
5d9d7d50c9 tdf#144730: Replace CONVERT_ADD to CONVERT to fix metric/non metric conversions
Regression from
https://cgit.freedesktop.org/libreoffice/core/commit/?id=ced79363cc30f225e766195ace4f892754fc85a0
author	Eike Rathke <erack@redhat.com>	2016-08-03 18:56:01 +0200
committer	Eike Rathke <erack@redhat.com>	2016-08-03 18:57:37 +0200
commit	ced79363cc30f225e766195ace4f892754fc85a0 (patch)
tree	94b2554faecda3744b05dcf61b99ebc2b25be5ab
parent	fa2fdb6607a7b961affadb6ca633b8feed828467 (diff)
Resolves: tdf#69539 UI rename CONVERT to CONVERT_OOO, CONVERT_ADD to CONVERT
... with same syntax but different semantics that was even more confusing.

Change-Id: I8d0badb231e58c9208f58fcbe013bbad4309ce74
2021-09-26 13:03:42 +02:00
bdedc84127 Fix "invalid escape sequence \w" Python exceptions
(Like

> Python exception: <class 'SyntaxError'>: invalid escape sequence \w (lightproof_impl_en.py, line 126), traceback follows
>   File "instdir/program/pythonloader.py", line 133, in activate
>     mod = self.getModuleFromUrl( locationUrl )
>   File "instdir/program/pythonloader.py", line 101, in getModuleFromUrl
>     exec(codeobject, mod.__dict__)
>   File "instdir/share/extensions/dict-en/Lightproof.py", line 6, in <module>
>     from lightproof_impl_en import locales
>   File "instdir/program/uno.py", line 345, in _uno_import
>     return _builtin_import(name, *optargs, **kwargs)

I noticed e.g. during UITest_writer_tests3.)  Appears those suspicious escapes
were present ever since 2214a3731aaffc4a51d1c712dbee553a0ba35af0 "Hungarian
sentence checking", 95445a70a29c6a1166a19f483566f2c9cfc7563b "English sentence
checking", and c9cdf3fb4752e8b0c641a3aff15d554135beb0e7 "Add Russian grammar
checking + update English and Hungarian".

Change-Id: Ia2af7e0adb00b4737b22d460dd75fa47a4ae70d5
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/99047
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-20 20:25:17 +02:00
38b1410ca6 fix LightProof measurement conversion for Python 3
Change-Id: I6d36bc804271956e1c8649df0832615311fcf5e1
2014-05-15 13:06:22 +02:00
350dc590b0 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.
2013-02-08 09:20:29 +01:00
8be323a6b7 Python 3 port of Lightproof en/hu modules 2012-11-30 17:29:41 +01:00
a4473e06b5 move dictionaries structure one directory up
Change-Id: I70388bf6b95d8692cc6f25fc5a9c7baf3a675710
2012-10-16 11:09:27 -05:00