[gnome-software] Add a link to Wikipedia to explain proprietary and public domain software



commit 9be07568cd77052b4baebba28083aede19cf6788
Author: Richard Hughes <richard hughsie com>
Date:   Wed Dec 9 11:03:49 2015 +0000

    Add a link to Wikipedia to explain proprietary and public domain software

 src/gs-app.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 6e51a5b..cbfbaba 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1330,6 +1330,26 @@ gs_app_set_licence (GsApp *app, const gchar *licence, GsAppQuality quality)
                        continue;
                }
 
+               /* proprietary software */
+               if (g_strcmp0 (tokens[i], "@LicenseRef-proprietary") == 0) {
+                       const gchar *url = "https://en.wikipedia.org/wiki/Proprietary_software";;
+                       g_string_append_printf (urld,
+                                               "<a href=\"%s\">%s</a>",
+                                               /* TRANSLATORS: non-free app */
+                                               url, _("Proprietary"));
+                       continue;
+               }
+
+               /* public domain */
+               if (g_strcmp0 (tokens[i], "@LicenseRef-public-domain") == 0) {
+                       const gchar *url = "https://en.wikipedia.org/wiki/Public_domain";;
+                       g_string_append_printf (urld,
+                                               "<a href=\"%s\">%s</a>",
+                                               /* TRANSLATORS: see the wikipedia page */
+                                               url, _("Public domain"));
+                       continue;
+               }
+
                /* SPDX value */
                if (g_str_has_prefix (tokens[i], "@")) {
                        g_string_append_printf (urld,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]