diff options
author | Christian Persch <chpe@gnome.org> | 2014-09-23 10:46:53 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2014-11-20 10:38:18 +0100 |
commit | 5c68fc9f93ee3d3cdb94cda2be5565584dfbb908 (patch) | |
tree | db72ca0df26888ee9063431a564a8710b0871428 | |
parent | 8ff5668a458344da22d30491e3ce726d861b3619 (diff) | |
download | glib-5c68fc9f93ee3d3cdb94cda2be5565584dfbb908.tar.gz |
gsettingsschema: Print the string that failed to parse
When parsing a translated value fails, print the actual string that
failed to parse instead of the 'domain\004string' untranslated string.
https://bugzilla.gnome.org/show_bug.cgi?id=737150
https://bugzilla.gnome.org/show_bug.cgi?id=737160
-rw-r--r-- | gio/gsettingsschema.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c index a7e0838b1..85cad60cb 100644 --- a/gio/gsettingsschema.c +++ b/gio/gsettingsschema.c @@ -1292,7 +1292,7 @@ g_settings_schema_key_get_translated_default (GSettingsSchemaKey *key) if (value == NULL) { g_warning ("Failed to parse translated string '%s' for " - "key '%s' in schema '%s': %s", key->unparsed, key->name, + "key '%s' in schema '%s': %s", translated, key->name, g_settings_schema_get_id (key->schema), error->message); g_warning ("Using untranslated default instead."); g_error_free (error); |