[yelp/gnome-2-30] [yelp-toc] Fix TOC title I18N
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/gnome-2-30] [yelp-toc] Fix TOC title I18N
- Date: Tue, 18 May 2010 14:41:00 +0000 (UTC)
commit 72412557f05822c9f670849300f8f47d91fa5963
Author: Takao Fujiwara <tfujiwar redhat com>
Date: Tue May 18 11:20:13 2010 +0900
[yelp-toc] Fix TOC title I18N
https://bugzilla.gnome.org/show_bug.cgi?id=615141
src/yelp-toc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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])) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]