summaryrefslogtreecommitdiff
path: root/hu_HU
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-09-26 13:01:02 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-09-26 13:03:42 +0200
commit5d9d7d50c9000119abd7b89fe0f48a41cc6a2502 (patch)
tree8c0dc8220a4ce57f54e9bc71e0884481e721d8df /hu_HU
parente9915d1db36ed686095e9f1c095423455b5bd151 (diff)
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
Diffstat (limited to 'hu_HU')
-rw-r--r--hu_HU/pythonpath/lightproof_impl_hu_HU.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hu_HU/pythonpath/lightproof_impl_hu_HU.py b/hu_HU/pythonpath/lightproof_impl_hu_HU.py
index ef8fb0a..144b2b5 100644
--- a/hu_HU/pythonpath/lightproof_impl_hu_HU.py
+++ b/hu_HU/pythonpath/lightproof_impl_hu_HU.py
@@ -256,7 +256,7 @@ def suggest_foreign(word):
def measurement(mnum, min, mout, mstr):
- m = calc("CONVERT_ADD", (float(mnum.replace(",", ".").replace(u"\u2212", "-")), min, mout))
+ m = calc("CONVERT", (float(mnum.replace(",", ".").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(key=lambda x: len(x)) # sort by string length
return (mstr + "|").join(a).replace(".", ",").replace("-", u"\u2212") + mstr