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.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to