From 937dabe644928cb6896baeaa615a03e80db95f07 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 28 Apr 2011 07:51:31 -0400 Subject: [PATCH] make translations appear --- yelp-gettext.patch | 15 +++++++++++++++ yelp.spec | 10 +++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 yelp-gettext.patch diff --git a/yelp-gettext.patch b/yelp-gettext.patch new file mode 100644 index 0000000..916da8a --- /dev/null +++ b/yelp-gettext.patch @@ -0,0 +1,15 @@ +diff -up yelp-3.0.2/src/yelp.c.gettext yelp-3.0.2/src/yelp.c +--- yelp-3.0.2/src/yelp.c.gettext 2011-04-28 07:38:27.792883667 -0400 ++++ yelp-3.0.2/src/yelp.c 2011-04-28 07:37:51.174341461 -0400 +@@ -40,6 +40,11 @@ main (int argc, char **argv) + g_thread_init (NULL); + g_type_init (); + ++ setlocale (LC_ALL, ""); ++ textdomain (GETTEXT_PACKAGE); ++ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); ++ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); ++ + app = yelp_application_new (); + + return g_application_run (G_APPLICATION (app), argc, argv); diff --git a/yelp.spec b/yelp.spec index 50ad2de..f7997ad 100644 --- a/yelp.spec +++ b/yelp.spec @@ -2,9 +2,13 @@ Summary: Help browser for the GNOME desktop Name: yelp Epoch: 1 Version: 3.0.2 -Release: 1%{?dist} +Release: 2%{?dist} #VCS: git:git://git.gnome.org/yelp Source: http://download.gnome.org/sources/yelp/3.0/%{name}-%{version}.tar.bz2 + +# https://bugzilla.gnome.org/show_bug.cgi?id=648840 +Patch0: yelp-gettext.patch + URL: http://live.gnome.org/Yelp License: GPLv2+ Group: Applications/System @@ -52,6 +56,7 @@ the libraries in the yelp-libs package. %prep %setup -q +%patch0 -p1 -b .gettext %build %configure @@ -116,6 +121,9 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || : %changelog +* Thu Apr 28 2011 Matthias Clasen 1:3.0.2-2 +- Fix some strings appearing untranslated (e.g. 'Show Text Cursor') + * Mon Apr 25 2011 Matthias Clasen 1:3.0.2-1 - Update to 3.0.2