mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Use 'dumb quotes' rather than `really dumb quotes'
Back in the far-off twentieth century, it was normal on unix workstations for U+0060 GRAVE ACCENT to be drawn as "‛" and for U+0027 APOSTROPHE to be drawn as "’". This led to the convention of using them as poor-man's ‛smart quotes’ in ASCII-only text. However, "'" is now universally drawn as a vertical line, and "`" at a 45-degree angle, making them an `odd couple' when used together. Unfortunately, there are lots of very old strings in glib, and also lots of new strings in which people have kept up the old tradition, perhaps entirely unaware that it used to not look stupid. Fix this by just using 'dumb quotes' everywhere. https://bugzilla.gnome.org/show_bug.cgi?id=700746
This commit is contained in:
@@ -1395,7 +1395,7 @@ read_string (GMemoryBuffer *mbuf,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Expected NUL byte after the string `%s' but found byte %d"),
|
||||
_("Expected NUL byte after the string '%s' but found byte %d"),
|
||||
str, mbuf->data[mbuf->pos + len]);
|
||||
g_free (str);
|
||||
mbuf->pos += len + 1;
|
||||
@@ -1415,7 +1415,7 @@ read_string (GMemoryBuffer *mbuf,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Expected valid UTF-8 string but found invalid bytes at byte offset %d (length of string is %d). "
|
||||
"The valid UTF-8 string up until that point was `%s'"),
|
||||
"The valid UTF-8 string up until that point was '%s'"),
|
||||
offset,
|
||||
(gint) len,
|
||||
valid_str);
|
||||
@@ -1616,7 +1616,7 @@ parse_value_from_blob (GMemoryBuffer *buf,
|
||||
g_set_error (&local_error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Parsed value `%s' is not a valid D-Bus object path"),
|
||||
_("Parsed value '%s' is not a valid D-Bus object path"),
|
||||
v);
|
||||
goto fail;
|
||||
}
|
||||
@@ -1640,7 +1640,7 @@ parse_value_from_blob (GMemoryBuffer *buf,
|
||||
g_set_error (&local_error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Parsed value `%s' is not a valid D-Bus signature"),
|
||||
_("Parsed value '%s' is not a valid D-Bus signature"),
|
||||
v);
|
||||
goto fail;
|
||||
}
|
||||
@@ -1848,7 +1848,7 @@ parse_value_from_blob (GMemoryBuffer *buf,
|
||||
g_set_error (&local_error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Parsed value `%s' for variant is not a valid D-Bus signature"),
|
||||
_("Parsed value '%s' for variant is not a valid D-Bus signature"),
|
||||
sig);
|
||||
goto fail;
|
||||
}
|
||||
@@ -1872,7 +1872,7 @@ parse_value_from_blob (GMemoryBuffer *buf,
|
||||
g_set_error (&local_error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Error deserializing GVariant with type string `%s' from the D-Bus wire format"),
|
||||
_("Error deserializing GVariant with type string '%s' from the D-Bus wire format"),
|
||||
s);
|
||||
g_free (s);
|
||||
goto fail;
|
||||
@@ -2128,7 +2128,7 @@ g_dbus_message_new_from_blob (guchar *blob,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Signature header with signature `%s' found but message body is empty"),
|
||||
_("Signature header with signature '%s' found but message body is empty"),
|
||||
signature_str);
|
||||
goto out;
|
||||
}
|
||||
@@ -2142,7 +2142,7 @@ g_dbus_message_new_from_blob (guchar *blob,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Parsed value `%s' is not a valid D-Bus signature (for body)"),
|
||||
_("Parsed value '%s' is not a valid D-Bus signature (for body)"),
|
||||
signature_str);
|
||||
goto out;
|
||||
}
|
||||
@@ -2503,7 +2503,7 @@ append_value_to_blob (GVariant *value,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Error serializing GVariant with type string `%s' to the D-Bus wire format"),
|
||||
_("Error serializing GVariant with type string '%s' to the D-Bus wire format"),
|
||||
g_variant_get_type_string (value));
|
||||
goto fail;
|
||||
}
|
||||
@@ -2692,7 +2692,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Message body has signature `%s' but there is no signature header"),
|
||||
_("Message body has signature '%s' but there is no signature header"),
|
||||
signature_str);
|
||||
g_free (tupled_signature_str);
|
||||
goto out;
|
||||
@@ -2702,7 +2702,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Message body has type signature `%s' but signature in the header field is `%s'"),
|
||||
_("Message body has type signature '%s' but signature in the header field is '%s'"),
|
||||
tupled_signature_str, g_variant_get_type_string (message->body));
|
||||
g_free (tupled_signature_str);
|
||||
goto out;
|
||||
@@ -2718,7 +2718,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Message body is empty but signature in the header field is `(%s)'"),
|
||||
_("Message body is empty but signature in the header field is '(%s)'"),
|
||||
signature_str);
|
||||
goto out;
|
||||
}
|
||||
@@ -3268,7 +3268,7 @@ g_dbus_message_to_gerror (GDBusMessage *message,
|
||||
g_dbus_error_set_dbus_error (error,
|
||||
error_name,
|
||||
"",
|
||||
_("Error return with body of type `%s'"),
|
||||
_("Error return with body of type '%s'"),
|
||||
g_variant_get_type_string (body));
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user