Change "dash" to "hyphen" in translatable strings

GSchemas use hyphens, not dashes.
Patch by Philip Withnall, bug
https://bugzilla.gnome.org/review?bug=628193
This commit is contained in:
Matthias Clasen 2012-08-16 22:23:20 -04:00
parent 4e55bebb7a
commit 191f09b044

View File

@ -794,7 +794,7 @@ is_valid_keyname (const gchar *key,
{ {
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
_("invalid name '%s': invalid character '%c'; " _("invalid name '%s': invalid character '%c'; "
"only lowercase letters, numbers and dash ('-') " "only lowercase letters, numbers and hyphen ('-') "
"are permitted."), key, key[i]); "are permitted."), key, key[i]);
return FALSE; return FALSE;
} }
@ -802,7 +802,7 @@ is_valid_keyname (const gchar *key,
if (key[i] == '-' && key[i + 1] == '-') if (key[i] == '-' && key[i + 1] == '-')
{ {
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
_("invalid name '%s': two successive dashes ('--') " _("invalid name '%s': two successive hyphens ('--') "
"are not permitted."), key); "are not permitted."), key);
return FALSE; return FALSE;
} }
@ -812,7 +812,7 @@ is_valid_keyname (const gchar *key,
{ {
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
_("invalid name '%s': the last character may not be a " _("invalid name '%s': the last character may not be a "
"dash ('-')."), key); "hyphen ('-')."), key);
return FALSE; return FALSE;
} }