From df1390cd1efcf8c694f9aa1a8493886c9585e505 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Thu, 18 Apr 2024 20:59:45 +0900 Subject: [PATCH] fix: Setup locale --- src/breathing.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/breathing.in b/src/breathing.in index ae1cb42..b67bc33 100755 --- a/src/breathing.in +++ b/src/breathing.in @@ -7,6 +7,7 @@ import os import sys import signal import gettext +import locale VERSION = '@VERSION@' pkgdatadir = '@pkgdatadir@' @@ -14,6 +15,10 @@ localedir = '@localedir@' sys.path.insert(1, pkgdatadir) signal.signal(signal.SIGINT, signal.SIG_DFL) +locale.bindtextdomain('breathing', localedir) +locale.textdomain('breathing') +gettext.bindtextdomain('breathing', localedir) +gettext.textdomain('breathing') gettext.install('breathing', localedir) if __name__ == '__main__':