summaryrefslogtreecommitdiff
path: root/json-glib/json-parser.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-06-01 13:21:32 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-06-01 13:21:32 +0100
commit8863766ca4792383dad0e48550f8fb79d4c104e4 (patch)
treeba0efa89049cf053a230d00a3d550355e9f05e2c /json-glib/json-parser.c
parent67edce08670ce1da4956f87948985434ac5ae2ca (diff)
downloadjson-glib-8863766ca4792383dad0e48550f8fb79d4c104e4.tar.gz
Mark GError messages for translations
These errors might find their way into a UI.
Diffstat (limited to 'json-glib/json-parser.c')
-rw-r--r--json-glib/json-parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c
index 4a05d62..526e2de 100644
--- a/json-glib/json-parser.c
+++ b/json-glib/json-parser.c
@@ -810,9 +810,12 @@ json_scanner_msg_handler (JsonScanner *scanner,
{
GError *error = NULL;
+ /* translators: %s: is the file name, %d is the line number
+ * and %s is the error message
+ */
g_set_error (&error, JSON_PARSER_ERROR,
priv->error_code,
- "%s:%d: Parse error: %s",
+ _("%s:%d: Parse error: %s"),
priv->is_filename ? priv->filename : "<none>",
scanner->line,
message);