From cba76c2c3f90fc12750659e453454bc4148a90d0 Mon Sep 17 00:00:00 2001 From: niknah Date: Wed, 17 Mar 2021 13:17:07 +1100 Subject: [PATCH] Localization fix. https://github.com/hzbd/kazam/pull/26 --- kazam/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kazam/app.py b/kazam/app.py index 7e55ab5..7918fc3 100644 --- a/kazam/app.py +++ b/kazam/app.py @@ -828,8 +828,11 @@ def run_counter(self): def setup_translations(self): gettext.bindtextdomain("kazam", "/usr/share/locale") gettext.textdomain("kazam") + locale.bindtextdomain("kazam", "/usr/share/locale") + locale.textdomain("kazam") + currentLocale = locale.getlocale() try: - locale.setlocale(locale.LC_ALL, "") + locale.setlocale(locale.LC_ALL, currentLocale) except Exception as e: logger.exception("EXCEPTION: Setlocale failed, no language support.")