mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
30 lines
979 B
Diff
30 lines
979 B
Diff
From bd58063d17a23fbce5aa62635247d0b4629c4a76 Mon Sep 17 00:00:00 2001
|
|
From: Clayton Craft <clayton@craftyguy.net>
|
|
Date: Sun, 14 Nov 2021 22:07:55 -0800
|
|
Subject: [PATCH] Use gettext module
|
|
|
|
---
|
|
bin/meld | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bin/meld b/bin/meld
|
|
index a3883d1d..05d49ee9 100755
|
|
--- a/bin/meld
|
|
+++ b/bin/meld
|
|
@@ -138,9 +138,9 @@ try:
|
|
libintl.textdomain(locale_domain)
|
|
del libintl
|
|
else:
|
|
- locale.bindtextdomain(locale_domain, str(locale_dir))
|
|
- locale.bind_textdomain_codeset(locale_domain, 'UTF-8')
|
|
- locale.textdomain(locale_domain)
|
|
+ gettext.bindtextdomain(locale_domain, str(locale_dir))
|
|
+ gettext.bind_textdomain_codeset(locale_domain, 'UTF-8')
|
|
+ gettext.textdomain(locale_domain)
|
|
except AttributeError as e:
|
|
# Python builds linked without libintl (i.e., OSX) don't have
|
|
# bindtextdomain(), which causes Gtk.Builder translations to fail.
|
|
--
|
|
2.33.1
|
|
|