diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-06-01 13:21:32 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-06-01 13:21:32 +0100 |
commit | 8863766ca4792383dad0e48550f8fb79d4c104e4 (patch) | |
tree | ba0efa89049cf053a230d00a3d550355e9f05e2c /json-glib/json-gobject.c | |
parent | 67edce08670ce1da4956f87948985434ac5ae2ca (diff) | |
download | json-glib-8863766ca4792383dad0e48550f8fb79d4c104e4.tar.gz |
Mark GError messages for translations
These errors might find their way into a UI.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | json-glib/json-gobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c index d6e0045..ccb3007 100644 --- a/json-glib/json-gobject.c +++ b/json-glib/json-gobject.c @@ -886,10 +886,10 @@ json_gobject_from_data (GType gtype, root = json_parser_get_root (parser); if (root == NULL || JSON_NODE_TYPE (root) != JSON_NODE_OBJECT) { + /* translators: the %s is the name of the data structure */ g_set_error (error, JSON_PARSER_ERROR, JSON_PARSER_ERROR_PARSE, - "Expecting a JSON object, but the root node " - "is of type `%s'", + _("Expecting a JSON object, but the root node is of type `%s'"), json_node_type_name (root)); g_object_unref (parser); return NULL; |