mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
guri: Tweak quotes in error strings
Use nice curly Unicode quotes. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
40873f8452
commit
ae6a0ef8b8
16
glib/guri.c
16
glib/guri.c
@ -458,7 +458,7 @@ parse_host (const gchar *start,
|
|||||||
bad_ipv6_literal:
|
bad_ipv6_literal:
|
||||||
g_free (addr);
|
g_free (addr);
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
||||||
_("Invalid IPv6 address '%.*s' in URI"),
|
_("Invalid IPv6 address ‘%.*s’ in URI"),
|
||||||
(gint)length, start);
|
(gint)length, start);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -520,7 +520,7 @@ parse_host (const gchar *start,
|
|||||||
{
|
{
|
||||||
g_free (decoded);
|
g_free (decoded);
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
||||||
_("Illegal encoded IP address '%.*s' in URI"),
|
_("Illegal encoded IP address ‘%.*s’ in URI"),
|
||||||
(gint)length, start);
|
(gint)length, start);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -554,7 +554,7 @@ parse_port (const gchar *start,
|
|||||||
if (!g_ascii_isdigit (*start))
|
if (!g_ascii_isdigit (*start))
|
||||||
{
|
{
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
||||||
_("Could not parse port '%.*s' in URI"),
|
_("Could not parse port ‘%.*s’ in URI"),
|
||||||
(gint)length, start);
|
(gint)length, start);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -566,14 +566,14 @@ parse_port (const gchar *start,
|
|||||||
if (end != start + length)
|
if (end != start + length)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
||||||
_("Could not parse port '%.*s' in URI"),
|
_("Could not parse port ‘%.*s’ in URI"),
|
||||||
(gint)length, start);
|
(gint)length, start);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else if (parsed_port > 65535)
|
else if (parsed_port > 65535)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_PORT,
|
||||||
_("Port '%.*s' in URI is out of range"),
|
_("Port ‘%.*s’ in URI is out of range"),
|
||||||
(gint)length, start);
|
(gint)length, start);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -1051,13 +1051,13 @@ g_uri_split_network (const gchar *uri_string,
|
|||||||
if (!my_scheme)
|
if (!my_scheme)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_SCHEME,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_SCHEME,
|
||||||
_("URI '%s' is not an absolute URI"),
|
_("URI ‘%s’ is not an absolute URI"),
|
||||||
uri_string);
|
uri_string);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
g_set_error (error, G_URI_ERROR, G_URI_ERROR_BAD_HOST,
|
||||||
_("URI '%s' has no host component"),
|
_("URI ‘%s’ has no host component"),
|
||||||
uri_string);
|
uri_string);
|
||||||
}
|
}
|
||||||
g_free (my_scheme);
|
g_free (my_scheme);
|
||||||
@ -1982,7 +1982,7 @@ g_uri_params_iter_next (GUriParamsIter *iter,
|
|||||||
if (!attr_end)
|
if (!attr_end)
|
||||||
{
|
{
|
||||||
g_set_error_literal (error, G_URI_ERROR, G_URI_ERROR_FAILED,
|
g_set_error_literal (error, G_URI_ERROR, G_URI_ERROR_FAILED,
|
||||||
_("Missing '=' and parameter value"));
|
_("Missing ‘=’ and parameter value"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (!uri_decode (&decoded_attr, NULL, ri->attr, attr_end - ri->attr,
|
if (!uri_decode (&decoded_attr, NULL, ri->attr, attr_end - ri->attr,
|
||||||
|
Loading…
Reference in New Issue
Block a user