mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
4e55bebb7a
commit
191f09b044
@ -794,7 +794,7 @@ is_valid_keyname (const gchar *key,
|
||||
{
|
||||
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
|
||||
_("invalid name '%s': invalid character '%c'; "
|
||||
"only lowercase letters, numbers and dash ('-') "
|
||||
"only lowercase letters, numbers and hyphen ('-') "
|
||||
"are permitted."), key, key[i]);
|
||||
return FALSE;
|
||||
}
|
||||
@ -802,7 +802,7 @@ is_valid_keyname (const gchar *key,
|
||||
if (key[i] == '-' && key[i + 1] == '-')
|
||||
{
|
||||
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);
|
||||
return FALSE;
|
||||
}
|
||||
@ -812,7 +812,7 @@ is_valid_keyname (const gchar *key,
|
||||
{
|
||||
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
|
||||
_("invalid name '%s': the last character may not be a "
|
||||
"dash ('-')."), key);
|
||||
"hyphen ('-')."), key);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user