[gnome-software] Put markup directly in the string
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Put markup directly in the string
- Date: Wed, 25 Feb 2015 18:15:52 +0000 (UTC)
commit 05c701120d7c772af30b21f34454f6dd538bfdc9
Author: Alexandre Franke <alexandre franke gmail com>
Date: Tue Feb 24 12:08:30 2015 +0100
Put markup directly in the string
* There's no point in inserting the link the way it was done
* moreover the link was not translatable
* and the order of parameters was wrong anyway, origin_url should be
fourth not second
We should also use https instead of plain http.
https://bugzilla.gnome.org/show_bug.cgi?id=745080
src/gs-utils.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index 2c62002..799d3ae 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -261,16 +261,13 @@ gs_app_notify_unavailable (GsApp *app, GtkWindow *parent)
g_string_append_printf (body,
/* TRANSLATORS: the replacements are as follows:
* 1. Application name, e.g. "Firefox"
- * 2. Start of hypertext e.g. <a>
- * 3. End of hypertext e.g. </a>
- * 4. Software source name, e.g. fedora-optional
+ * 2. Software source name, e.g. fedora-optional
*/
- _("%s is not %sfree and open source "
- "software%s, and is provided by ā%sā."),
+ _("%s is not <a
href=\"https://en.wikipedia.org/wiki/Free_and_open-source_software\">"
+ "free and open source software</a>, "
+ "and is provided by ā%sā."),
gs_app_get_name (app),
- origin_url,
- "<a
href=\"http://en.wikipedia.org/wiki/Free_and_open-source_software\">",
- "</a>");
+ origin_url);
} else {
g_string_append_printf (body,
/* TRANSLATORS: the replacements are as follows:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]