[glib] GKeyFile: Unify error messsages a bit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GKeyFile: Unify error messsages a bit
- Date: Sat, 10 Sep 2011 20:11:24 +0000 (UTC)
commit 0db179e75e332de3bdecb1309ffe8018ab567484
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 10 16:09:39 2011 -0400
GKeyFile: Unify error messsages a bit
This marks a few forgotten error messages for translation, and
makes some other strings more uniform. String change!
https://bugzilla.gnome.org/show_bug.cgi?id=658715
glib/gkeyfile.c | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
index 9c5ed9b..0d35960 100644
--- a/glib/gkeyfile.c
+++ b/glib/gkeyfile.c
@@ -766,8 +766,8 @@ g_key_file_parse_line (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_PARSE,
_("Key file contains line '%s' which is not "
- "a key-value pair, group, or comment"),
- line_utf8);
+ "a key-value pair, group, or comment"),
+ line_utf8);
g_free (line_utf8);
return;
@@ -1448,7 +1448,7 @@ g_key_file_get_string (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_INVALID_VALUE,
_("Key file contains key '%s' "
- "which has value that cannot be interpreted."),
+ "which has a value that cannot be interpreted."),
key);
g_error_free (key_file_error);
}
@@ -1932,7 +1932,7 @@ g_key_file_get_boolean (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_INVALID_VALUE,
_("Key file contains key '%s' "
- "which has value that cannot be interpreted."),
+ "which has a value that cannot be interpreted."),
key);
g_error_free (key_file_error);
}
@@ -2149,8 +2149,8 @@ g_key_file_get_integer (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_INVALID_VALUE,
_("Key file contains key '%s' in group '%s' "
- "which has value that cannot be interpreted."), key,
- group_name);
+ "which has a value that cannot be interpreted."),
+ key, group_name);
g_error_free (key_file_error);
}
else
@@ -2226,8 +2226,9 @@ g_key_file_get_int64 (GKeyFile *key_file,
if (*s == '\0' || *end != '\0')
{
g_set_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE,
- "Key '%s' in group '%s' has value '%s' where int64 was expected",
- key, group_name, s);
+ _("Key '%s' in group '%s' has value '%s' "
+ "where %s was expected"),
+ key, group_name, s, "int64");
return 0;
}
@@ -2301,8 +2302,9 @@ g_key_file_get_uint64 (GKeyFile *key_file,
if (*s == '\0' || *end != '\0')
{
g_set_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE,
- "Key '%s' in group '%s' has value '%s' where uint64 was expected",
- key, group_name, s);
+ _("Key '%s' in group '%s' has value '%s' "
+ "where %s was expected"),
+ key, group_name, s, "uint64");
return 0;
}
@@ -2513,8 +2515,8 @@ g_key_file_get_double (GKeyFile *key_file,
g_set_error (error, G_KEY_FILE_ERROR,
G_KEY_FILE_ERROR_INVALID_VALUE,
_("Key file contains key '%s' in group '%s' "
- "which has value that cannot be interpreted."), key,
- group_name);
+ "which has a value that cannot be interpreted."),
+ key, group_name);
g_error_free (key_file_error);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]