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:
Matthias Clasen 2015-09-13 23:24:05 -04:00
parent 0db331d244
commit fda5b4ce4c

View File

@ -295,16 +295,9 @@ maybe_emit_property (MyParserData *data)
strcmp (data->attribute_names[i], "context") == 0))
continue;
if (strcmp (data->attribute_names[i], "translatable") == 0)
{
g_print (" %s=\"%s\"", data->attribute_names[i], canonical_boolean_value (data, data->attribute_values[i]));
}
else
{
escaped = g_markup_escape_text (data->attribute_values[i], -1);
g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
g_free (escaped);
}
escaped = g_markup_escape_text (data->attribute_values[i], -1);
g_print (" %s=\"%s\"", data->attribute_names[i], escaped);
g_free (escaped);
}
if (bound)