Fix untranslated strings

This commit is contained in:
Matthias Clasen 2011-04-28 07:41:47 -04:00
parent bc3aa1e60b
commit 6e2e4db6cb
2 changed files with 24 additions and 1 deletions

15
yelp-gettext.patch Normal file
View File

@ -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);

View File

@ -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 <mclasen@redhat.com> 1:3.0.2-2
- Fix some strings appearing untranslated (e.g. 'Show Text Cursor')
* Mon Apr 25 2011 Matthias Clasen <mclasen@redhat.com> 1:3.0.2-1
- Update to 3.0.2