diff options
author | László Németh <nemeth@numbertext.org> | 2022-09-30 11:21:16 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-02 20:38:05 +0200 |
commit | ff0d53bd4a557387ffd0e15a10e48e1127db337d (patch) | |
tree | d9ce479fc91bedca3cfb2510cfd7ab8a067b5f21 /librelogo | |
parent | 4c935de2e6fa4124672c87e326225c01001cd79c (diff) |
LibreLogo: fix ast, gug, hsb and sid language support
Asturian (ast), Paraguayan Guaraní (gug), Sidamo (sid)
and Upper-Sorbian (hsb) localizations did't work despite
their existing localization stored in the language fallback
dictionary of LibreLogo.py, because their 3-letter language
identifiers with their country codes trimmed to 2-letter,
for example: "hsb-DE" -> "hs" instead of the correct "hsb".
Missing Upper-Sorbian support was reported by Michael Wolf.
Change-Id: I57aa6752d05452d1f8bb95ff91f4d4456dffcd80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140796
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
(cherry picked from commit d843b01c98ce1d9e9f43f2cc09cb2b4169f2f49e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140756
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'librelogo')
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index 7aa71cac7be0..2b7af994eb61 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -35,7 +35,7 @@ def __l12n__(lng): __lng__[lng][i] = __lng_fallback__[i][lng] except: try: - __lng__[lng][i] = __lng_fallback__[i][lng[:2]] + __lng__[lng][i] = __lng_fallback__[i][lng.split('_')[0]] except: __lng__[lng][i] = __lng_fallback__[i]["en_US"] return __lng__[lng] |