Skip to content

Commit cba76c2

Browse files
committed
Localization fix. hzbd#26
1 parent a996151 commit cba76c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kazam/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,11 @@ def run_counter(self):
828828
def setup_translations(self):
829829
gettext.bindtextdomain("kazam", "/usr/share/locale")
830830
gettext.textdomain("kazam")
831+
locale.bindtextdomain("kazam", "/usr/share/locale")
832+
locale.textdomain("kazam")
833+
currentLocale = locale.getlocale()
831834
try:
832-
locale.setlocale(locale.LC_ALL, "")
835+
locale.setlocale(locale.LC_ALL, currentLocale)
833836
except Exception as e:
834837
logger.exception("EXCEPTION: Setlocale failed, no language support.")
835838

0 commit comments

Comments
 (0)