Fix extraction of some translatable strings

The reason why some of the strings in gtkprintunixdialog.ui
were missing is that we did not extract translatable string
from <item> elements. Fix that.
This commit is contained in:
Matthias Clasen 2013-12-17 07:35:10 -05:00
parent af87a7e7c8
commit ac7c6b25bd

View File

@ -35,7 +35,8 @@ start_element_handler (GMarkupParseContext *contexts,
{
ParserData *data = user_data;
if (g_str_equal (element_name, "property"))
if (g_str_equal (element_name, "property") ||
g_str_equal (element_name, "item"))
{
gboolean translatable;
gchar *context;
@ -45,7 +46,7 @@ start_element_handler (GMarkupParseContext *contexts,
attribute_names,
attribute_values,
error,
G_MARKUP_COLLECT_STRING, "name", NULL,
G_MARKUP_COLLECT_STRING|G_MARKUP_COLLECT_OPTIONAL, "name", NULL,
G_MARKUP_COLLECT_TRISTATE, "translatable", &translatable,
G_MARKUP_COLLECT_STRDUP|G_MARKUP_COLLECT_OPTIONAL, "context", &context,
G_MARKUP_COLLECT_STRDUP|G_MARKUP_COLLECT_OPTIONAL, "comments", &comments,