diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-08-22 11:04:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-09-29 23:05:21 -0400 |
commit | e3568419579af7a8682dd7e4065a47be6e6a370e (patch) | |
tree | 37e63ef8c00fc663ee8b91ca6af39134a725f63b /gtk/gtkbuilderparser.c | |
parent | c7930417b4d7912753a64f4e61186599f22610ad (diff) | |
download | gtk+-e3568419579af7a8682dd7e4065a47be6e6a370e.tar.gz |
GtkBuilder: Improve error messages
No `' looks just terrible. For quoting in non-UI contexts, we
prefer either '' or "".
https://bugzilla.gnome.org/show_bug.cgi?id=735192
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r-- | gtk/gtkbuilderparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 9b34993866..ab7d3d49a8 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -337,7 +337,7 @@ parse_object (GMarkupParseContext *context, g_markup_parse_context_get_position (context, &line, NULL); g_set_error (error, GTK_BUILDER_ERROR, GTK_BUILDER_ERROR_INVALID_VALUE, - _("Invalid object type `%s' on line %d"), + _("Invalid object type '%s' on line %d"), values[i], line); return; } @@ -772,7 +772,7 @@ parse_signal (ParserData *data, g_markup_parse_context_get_position (data->ctx, &line, NULL); g_set_error (error, GTK_BUILDER_ERROR, GTK_BUILDER_ERROR_INVALID_SIGNAL, - _("Invalid signal `%s' for type `%s' on line %d"), + _("Invalid signal '%s' for type '%s' on line %d"), values[i], g_type_name (object_info->type), line); return; } @@ -1064,7 +1064,7 @@ start_element (GMarkupParseContext *context, { g_set_error (error, GTK_BUILDER_ERROR, GTK_BUILDER_ERROR_UNHANDLED_TAG, - _("Invalid root element: '%s'"), + _("Invalid root element: <%s>"), element_name); return; } @@ -1107,7 +1107,7 @@ start_element (GMarkupParseContext *context, data, error)) g_set_error (error, GTK_BUILDER_ERROR, GTK_BUILDER_ERROR_UNHANDLED_TAG, - _("Unhandled tag: '%s'"), + _("Unhandled tag: <%s>"), element_name); } |