summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-extra/yelp/files/yelp-2.30.1-fix-toc.patch')
-rw-r--r--gnome-extra/yelp/files/yelp-2.30.1-fix-toc.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnome-extra/yelp/files/yelp-2.30.1-fix-toc.patch b/gnome-extra/yelp/files/yelp-2.30.1-fix-toc.patch
new file mode 100644
index 000000000000..3d959fc722ce
--- /dev/null
+++ b/gnome-extra/yelp/files/yelp-2.30.1-fix-toc.patch
@@ -0,0 +1,22 @@
+From 72412557f05822c9f670849300f8f47d91fa5963 Mon Sep 17 00:00:00 2001
+From: Takao Fujiwara <tfujiwar@redhat.com>
+Date: Tue, 18 May 2010 02:20:13 +0000
+Subject: [yelp-toc] Fix TOC title I18N
+
+https://bugzilla.gnome.org/show_bug.cgi?id=615141
+---
+diff --git a/src/yelp-toc.c b/src/yelp-toc.c
+index 201cabb..085c47c 100644
+--- a/src/yelp-toc.c
++++ b/src/yelp-toc.c
+@@ -553,7 +553,7 @@ xml_trim_titles (xmlNodePtr node, xmlChar * nodetype)
+ if (!xmlStrcmp (cur->name, nodetype)) {
+ xmlChar *cur_lang = NULL;
+ int cur_pri = INT_MAX;
+- cur_lang = xmlNodeGetLang (cur);
++ cur_lang = xmlGetNsProp(cur, BAD_CAST "lang", XML_XML_NAMESPACE);
+ if (cur_lang) {
+ for (j = 0; langs[j]; j++) {
+ if (g_str_equal (cur_lang, langs[j])) {
+--
+cgit v0.8.3.1