[epiphany] embed: Properly allow translation of concatenated ", "%s"" in mailto: handling
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed: Properly allow translation of concatenated ", "%s"" in mailto: handling
- Date: Sat, 29 Jan 2022 19:13:52 +0000 (UTC)
commit c7acc8b185ef9e0e0373bfb92c54480df5c57160
Author: vanadiae <vanadiae35 gmail com>
Date: Sat Jan 22 00:06:24 2022 +0100
embed: Properly allow translation of concatenated ", "%s"" in mailto: handling
This part wasn't allowed as a translatable string, so in french for example
we'd have a mismatch of quotes type since the first email address would have
«» as quotes but the next addresses have "" instead.
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1065>
embed/ephy-embed-utils.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 6b27d8c0c..c3a915984 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -69,7 +69,15 @@ ephy_embed_utils_link_message_parse (const char *message)
(splitted_message[0] + 7)));
while (splitted_message [i] != NULL) {
- g_string_append_printf (tmp, ", “%s”", splitted_message[i]);
+ /* TRANSLATORS: This string is part of the previous translatable string.
+ * It is appended for each extraneous mailto: URI email address. For
+ * example if you have mailto:foo example com,bar example com,baz example com
+ * it will show
+ * Send an email to “foo example com”, “bar example com”, “baz example com”
+ * when you hover such link, at the same place as regular URLs when you hover
+ * a link in a web page.
+ */
+ g_string_append_printf (tmp, _(", “%s”"), splitted_message[i]);
i++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]