forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
c7930417b4
commit
e356841957
@ -314,7 +314,7 @@ gtk_builder_menu_text (GMarkupParseContext *context,
|
|||||||
|
|
||||||
else
|
else
|
||||||
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
|
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
|
||||||
_("text may not appear inside <%s>"),
|
_("Text may not appear inside <%s>"),
|
||||||
g_markup_parse_context_get_element (context));
|
g_markup_parse_context_get_element (context));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -337,7 +337,7 @@ parse_object (GMarkupParseContext *context,
|
|||||||
g_markup_parse_context_get_position (context, &line, NULL);
|
g_markup_parse_context_get_position (context, &line, NULL);
|
||||||
g_set_error (error, GTK_BUILDER_ERROR,
|
g_set_error (error, GTK_BUILDER_ERROR,
|
||||||
GTK_BUILDER_ERROR_INVALID_VALUE,
|
GTK_BUILDER_ERROR_INVALID_VALUE,
|
||||||
_("Invalid object type `%s' on line %d"),
|
_("Invalid object type '%s' on line %d"),
|
||||||
values[i], line);
|
values[i], line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -772,7 +772,7 @@ parse_signal (ParserData *data,
|
|||||||
g_markup_parse_context_get_position (data->ctx, &line, NULL);
|
g_markup_parse_context_get_position (data->ctx, &line, NULL);
|
||||||
g_set_error (error, GTK_BUILDER_ERROR,
|
g_set_error (error, GTK_BUILDER_ERROR,
|
||||||
GTK_BUILDER_ERROR_INVALID_SIGNAL,
|
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);
|
values[i], g_type_name (object_info->type), line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1064,7 +1064,7 @@ start_element (GMarkupParseContext *context,
|
|||||||
{
|
{
|
||||||
g_set_error (error, GTK_BUILDER_ERROR,
|
g_set_error (error, GTK_BUILDER_ERROR,
|
||||||
GTK_BUILDER_ERROR_UNHANDLED_TAG,
|
GTK_BUILDER_ERROR_UNHANDLED_TAG,
|
||||||
_("Invalid root element: '%s'"),
|
_("Invalid root element: <%s>"),
|
||||||
element_name);
|
element_name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1107,7 +1107,7 @@ start_element (GMarkupParseContext *context,
|
|||||||
data, error))
|
data, error))
|
||||||
g_set_error (error, GTK_BUILDER_ERROR,
|
g_set_error (error, GTK_BUILDER_ERROR,
|
||||||
GTK_BUILDER_ERROR_UNHANDLED_TAG,
|
GTK_BUILDER_ERROR_UNHANDLED_TAG,
|
||||||
_("Unhandled tag: '%s'"),
|
_("Unhandled tag: <%s>"),
|
||||||
element_name);
|
element_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user