GNOME Bugzilla – Bug 692536
Remove markup from translatable strings
Last modified: 2019-02-22 11:59:42 UTC
See https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
Created attachment 234413 [details] [review] GNOME Goal: Remove markup in translatable strings
Review of attachment 234413 [details] [review]: Thanks for the patch. Could you remove all the various 'mode' changes from the patch? It seems to touch a lot of unrelated files. ::: ui/gcr-certificate-exporter.c @@ +219,3 @@ os = g_file_create_finish (self->pv->output_file, res, &self->pv->error); + s = g_strdup_printf("<b>%s</b>",_("A file already exists with this name.")); + msg = g_strdup_printf(_("%s\n\nDo you want to replace it with a new file?",s)); Although this removes markup, there is still formatting included in translated text. Could you do something like: msg = g_strdup_printf ("<b>%s</b>\n\n%s", _("heading"), _("question")); That also has the benefit of one less allocation. As far as formatting, please note the space after the function names, and the way indentation is done with tabs up to the indentation level, and then spaces if something wraps to a specific column. Thanks!
Created attachment 234457 [details] [review] Patch: Remove markup from translatable strings.
Attachment 234457 [details] pushed as 0708299 - Patch: Remove markup from translatable strings. Fixed a memory leak, and indentation issues in the patch.