mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
33 lines
1,004 B
Diff
33 lines
1,004 B
Diff
Patch-Source: https://github.com/pithos/pithos/pull/666
|
|
|
|
From fd1b3647014c7ffc81ba75d9c17361b62984d4f2 Mon Sep 17 00:00:00 2001
|
|
From: Adam Plumb <adamplumb@gmail.com>
|
|
Date: Fri, 7 Jan 2022 20:02:32 -0500
|
|
Subject: [PATCH] Do not fail if locale attributes are not present
|
|
|
|
---
|
|
bin/pithos.in | 8 ++++++--
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bin/pithos.in b/bin/pithos.in
|
|
index 77e8134..48287ca 100755
|
|
--- a/bin/pithos.in
|
|
+++ b/bin/pithos.in
|
|
@@ -33,8 +33,12 @@ if builddir:
|
|
theme.append_search_path(os.path.join(pkgdatadir, 'icons'))
|
|
|
|
sys.path.insert(1, srcdir)
|
|
-locale.bindtextdomain('pithos', localedir)
|
|
-locale.textdomain('pithos')
|
|
+try:
|
|
+ locale.bindtextdomain('pithos', localedir)
|
|
+ locale.textdomain('pithos')
|
|
+except AttributeError:
|
|
+ print("Could not bind to locale translation domain. Some translations won't work")
|
|
+ pass
|
|
gettext.install('pithos', localedir)
|
|
|
|
resource = Gio.resource_load(os.path.join(pkgdatadir, 'pithos.gresource'))
|
|
--
|
|
2.34.1
|
|
|