forked from AuroraMiddleware/gtk
builder-tool: Don't simplify translatable="yes"
It turns out that xgettext does not understand translatable="1", so don't make gtk-builder-tool produce this, even though GtkBuilder can parse it just fine. https://bugzilla.gnome.org/show_bug.cgi?id=754928
This commit is contained in:
parent
0db331d244
commit
fda5b4ce4c
@ -295,16 +295,9 @@ maybe_emit_property (MyParserData *data)
|
|||||||
strcmp (data->attribute_names[i], "context") == 0))
|
strcmp (data->attribute_names[i], "context") == 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strcmp (data->attribute_names[i], "translatable") == 0)
|
escaped = g_markup_escape_text (data->attribute_values[i], -1);
|
||||||
{
|
g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
|
||||||
g_print (" %s=\"%s\"", data->attribute_names[i], canonical_boolean_value (data, data->attribute_values[i]));
|
g_free (escaped);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
escaped = g_markup_escape_text (data->attribute_values[i], -1);
|
|
||||||
g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
|
|
||||||
g_free (escaped);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bound)
|
if (bound)
|
||||||
|
Loading…
Reference in New Issue
Block a user