After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766175 - Translation of quotes may misinterpreted by GTK sidebar
Translation of quotes may misinterpreted by GTK sidebar
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.20.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-05-09 13:53 UTC by Rafael Fontenelle
Modified: 2016-05-11 01:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rafael Fontenelle 2016-05-09 13:53:12 UTC
In gtk/gtkplacesidebar.c, translating the string 'Mount and open “%s”' using '\"' (instead of “ and ”) results in displaying 'quot;' where it'd be expected  a double quotes character '"'.  e.g. In pt_BR, we translated it as "Monta e abre \"%s\"" and an user spotted "Monta e abre "foo-bar@gnome.org""

Please allow other quotes character in this string or, alternatively, add a comment for the translation to NOT change the quotes character.
Comment 1 Matthias Clasen 2016-05-09 13:57:03 UTC
add_place() is wrong in escaping the translated string. If something needs escaping, it is the volume name, and that needs to happen before the g_strdup_printf puts it into the translated string
Comment 2 Matthias Clasen 2016-05-11 01:39:47 UTC
Actually, no. It should be fine. And I can't reproduce the problem you describe: \" works just fine here, in tooltips on the places sidebar