[gnome-software] trivial: Don't join strings as it's hard to translate
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't join strings as it's hard to translate
- Date: Thu, 11 May 2017 15:52:48 +0000 (UTC)
commit 9e254ef5b9f8ddabe1e7e727c979f09faf4bc47d
Author: Richard Hughes <richard hughsie com>
Date: Thu May 11 16:52:22 2017 +0100
trivial: Don't join strings as it's hard to translate
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=782512
src/gs-editor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-editor.c b/src/gs-editor.c
index 74f7a8a..d8f7f45 100644
--- a/src/gs-editor.c
+++ b/src/gs-editor.c
@@ -788,10 +788,10 @@ gs_editor_button_remove_clicked_cb (GtkWidget *widget, GsEditor *self)
name = as_app_get_name (item_global, NULL);
}
if (name != NULL) {
- msg = g_strdup_printf ("<b>%s</b> %s", name,
- /* TRANSLATORS, this is prefixed with the
- * app name, e.g. 'Inkscape ' */
- _("banner design deleted."));
+ g_autofree gchar *name_markup = NULL;
+ name_markup = g_strdup_printf ("<b>%s</b>", name);
+ /* TRANSLATORS, the %s is the app name, e.g. 'Inkscape' */
+ msg = g_strdup_printf (_("%s banner design deleted."), name_markup);
} else {
/* TRANSLATORS, this is a notification */
msg = g_strdup (_("Banner design deleted."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]