Blame 0002-Change-domain-name-for-gettext.patch

b25042f
From 28d7db0bbced2ceae6bf79bdd95e6d94b11e2006 Mon Sep 17 00:00:00 2001
b25042f
From: mcomix3 Fedora maintainer <mcomix3-owner@fedoraproject.org>
b25042f
Date: Mon, 4 Nov 2019 14:42:04 +0900
b25042f
Subject: [PATCH] Change domain name for gettext
b25042f
b25042f
Change domain name for gettext for now.
b25042f
---
b25042f
 mcomix/mcomix/constants.py | 1 +
b25042f
 mcomix/mcomix/i18n.py      | 2 +-
b25042f
 2 files changed, 2 insertions(+), 1 deletion(-)
b25042f
b25042f
diff --git a/mcomix/mcomix/constants.py b/mcomix/mcomix/constants.py
b25042f
index a71588e..19c3eff 100644
b25042f
--- a/mcomix/mcomix/constants.py
b25042f
+++ b/mcomix/mcomix/constants.py
b25042f
@@ -8,6 +8,7 @@ import operator
b25042f
 from mcomix import tools
b25042f
 
b25042f
 APPNAME = 'MComix'
b25042f
+APPNAME_DOMAIN = 'mcomix3'
b25042f
 VERSION = '1.3.0.dev0'
b25042f
 
a041f78
 REQUIRED_PYTHON_VERSION = (3, 8, 0)
b25042f
diff --git a/mcomix/mcomix/i18n.py b/mcomix/mcomix/i18n.py
b25042f
index 5d067db..96a209c 100644
b25042f
--- a/mcomix/mcomix/i18n.py
b25042f
+++ b/mcomix/mcomix/i18n.py
b25042f
@@ -103,7 +103,7 @@ def install_gettext():
b25042f
     # Make sure GTK uses the correct language.
b25042f
     os.environ['LANGUAGE'] = lang
b25042f
 
b25042f
-    domain = constants.APPNAME.lower()
b25042f
+    domain = constants.APPNAME_DOMAIN.lower()
b25042f
 
b25042f
     for lang in lang_identifiers:
b25042f
         resource_path = tools.pkg_path('messages', lang,
b25042f
-- 
b25042f
2.23.0
b25042f