mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
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
This commit is contained in:
parent
8ff5668a45
commit
5c68fc9f93
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user