[med-svn] [Git][med-team/invesalius][master] Added patch: python-3.11 gettext.translation doesn't have the 'codeset' parameter anymore

Thiago Franco de Moraes (@tfmoraes-guest) gitlab at salsa.debian.org
Wed Feb 8 14:02:33 GMT 2023



Thiago Franco de Moraes pushed to branch master at Debian Med / invesalius


Commits:
1c53271d by Thiago Franco de Moraes at 2023-02-08T11:02:20-03:00
Added patch: python-3.11 gettext.translation doesn't have the 'codeset' parameter anymore

- - - - -


2 changed files:

- + debian/patches/11_python311.patch
- debian/patches/series


Changes:

=====================================
debian/patches/11_python311.patch
=====================================
@@ -0,0 +1,18 @@
+Author: Thiago Franco de Moraes
+Last-Update: 2023-02-08 10:58:03 -0300
+Description: Python-3.11 gettext.translation doesn't have the 'codeset' parameter anymore
+
+diff --git a/invesalius/i18n.py b/invesalius/i18n.py
+index fe701f3..c222bd9 100644
+--- a/invesalius/i18n.py
++++ b/invesalius/i18n.py
+@@ -78,8 +78,7 @@ def InstallLanguage(language):
+         abs_file_path = os.path.abspath(os.path.join(file_path, '..', '..',  '..', '..'))
+         language_dir = os.path.join(abs_file_path, 'locale')
+ 
+-    lang = gettext.translation('invesalius', language_dir,
+-                               languages=[language], codeset='utf8')
++    lang = gettext.translation('invesalius', language_dir, languages=[language])
+ 
+     # Using unicode
+     try:


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 11_add_auibar.patch
 11_wxpython_int_fix.patch
+11_python311.patch



View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/1c53271df0a0c0a53b0d8c76ab2fa7c342801d8a

-- 
View it on GitLab: https://salsa.debian.org/med-team/invesalius/-/commit/1c53271df0a0c0a53b0d8c76ab2fa7c342801d8a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230208/cee66d94/attachment-0001.htm>


More information about the debian-med-commit mailing list