Fix untranslated strings
This commit is contained in:
parent
bc3aa1e60b
commit
6e2e4db6cb
15
yelp-gettext.patch
Normal file
15
yelp-gettext.patch
Normal 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);
|
10
yelp.spec
10
yelp.spec
@ -2,9 +2,13 @@ Summary: Help browser for the GNOME desktop
|
|||||||
Name: yelp
|
Name: yelp
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
#VCS: git:git://git.gnome.org/yelp
|
#VCS: git:git://git.gnome.org/yelp
|
||||||
Source: http://download.gnome.org/sources/yelp/3.0/%{name}-%{version}.tar.bz2
|
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
|
URL: http://live.gnome.org/Yelp
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -52,6 +56,7 @@ the libraries in the yelp-libs package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .gettext
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -116,6 +121,9 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 25 2011 Matthias Clasen <mclasen@redhat.com> 1:3.0.2-1
|
||||||
- Update to 3.0.2
|
- Update to 3.0.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user