From 2b50369ee99da8c6aedab3abe54eb9109f75d1a3 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:13:11 +0200 Subject: [PATCH] Add fix for Hebrew on Nspanel (Reverse every string in locale file) --- HMI/code_gen/localization/iobroker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HMI/code_gen/localization/iobroker.py b/HMI/code_gen/localization/iobroker.py index b6dcb74d..6bc53529 100644 --- a/HMI/code_gen/localization/iobroker.py +++ b/HMI/code_gen/localization/iobroker.py @@ -57,6 +57,8 @@ def lookup(path_frontend_file, path_backend_file, lookupstr): def get_translation(locale, lookupstr): path_frontend_file, path_backend_file = build_locale_filestring(locale) res = lookup(path_frontend_file, path_backend_file, lookupstr) + if locale == "he_IL": + res = res[::-1] return res out = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))