Pull an upstream fix to prevent broken translations
This commit is contained in:
parent
4981695522
commit
a07cbc929a
@ -0,0 +1,29 @@
|
||||
From a89f1e0d060e3690591ba441fa0b322260007c14 Mon Sep 17 00:00:00 2001
|
||||
From: Bastien Nocera <hadess@hadess.net>
|
||||
Date: Tue, 26 Feb 2019 16:59:49 +0100
|
||||
Subject: [PATCH] Fix broken translations in all libhandy applications
|
||||
|
||||
Translations in all the applications using libhandy would be broken
|
||||
after a call to hdy_init() as it changed the default gettext translation
|
||||
domain.
|
||||
|
||||
See https://gitlab.gnome.org/GNOME/gnome-control-center/issues/393
|
||||
---
|
||||
src/hdy-main.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/src/hdy-main.c b/src/hdy-main.c
|
||||
index 08ef1e3..d6e71da 100644
|
||||
--- a/src/hdy-main.c
|
||||
+++ b/src/hdy-main.c
|
||||
@@ -42,7 +42,6 @@ hdy_init (int *argc, char ***argv)
|
||||
if (hdy_initialized)
|
||||
return TRUE;
|
||||
|
||||
- textdomain (GETTEXT_PACKAGE);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
g_resources_register (hdy_get_resource ());
|
||||
--
|
||||
2.21.0
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
Name: libhandy
|
||||
Version: 0.0.8
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Library with GTK+ widgets for mobile phones
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://source.puri.sm/Librem5/libhandy/
|
||||
Source0: https://source.puri.sm/Librem5/libhandy/-/archive/v%{version}/libhandy-v%{version}.tar.bz2
|
||||
|
||||
Patch1: 0001-Fix-broken-translations-in-all-libhandy-applications.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: meson
|
||||
@ -57,6 +59,10 @@ developing applications that use %{name}.
|
||||
%{_datadir}/vala/
|
||||
|
||||
%changelog
|
||||
* Fri Mar 1 2019 Yanko Kaneti <yaneti@declera.com> - 0.0.8-2
|
||||
- Pull an upstream fix to prevent broken translations in
|
||||
libhandy using apps
|
||||
|
||||
* Sat Feb 16 2019 Kalev Lember <klember@redhat.com> - 0.0.8-1
|
||||
- Update to 0.0.8
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user