[devhelp] Parse language attribute of devhelp files
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [devhelp] Parse language attribute of devhelp files
- Date: Sun, 30 Aug 2009 15:15:17 +0000 (UTC)
commit 2b05ef181107f5352d6635620f0a65fefcd6fa1e
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Aug 30 17:14:05 2009 +0200
Parse language attribute of devhelp files
src/dh-parser.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-parser.c b/src/dh-parser.c
index 9cb3b76..949ffcd 100644
--- a/src/dh-parser.c
+++ b/src/dh-parser.c
@@ -70,6 +70,7 @@ parser_start_node_book (DhParser *parser,
const gchar *base = NULL;
const gchar *name = NULL;
const gchar *uri = NULL;
+ const gchar *lang = NULL;
DhLink *link;
if (g_ascii_strcasecmp (node_name, "book") != 0) {
@@ -115,6 +116,9 @@ parser_start_node_book (DhParser *parser,
else if (g_ascii_strcasecmp (attribute_names[i], "link") == 0) {
uri = attribute_values[i];
}
+ else if (g_ascii_strcasecmp (attribute_names[i], "language") == 0) {
+ lang = attribute_values[i];
+ }
}
if (!title || !name || !uri) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]