forked from AuroraMiddleware/gtk
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:
parent
af87a7e7c8
commit
ac7c6b25bd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user