[gnome-software/wip/piotrdrag/translatable-links] details-page: Mark links to licenses for translation



commit 58736ea90f1c4d4830c38068afeb6ca26b960662
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Jan 25 17:44:06 2018 +0100

    details-page: Mark links to licenses for translation
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/issues/294

 src/gs-details-page.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 992e87cd..d508119a 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -2154,12 +2154,16 @@ gs_details_page_license_widget_for_token (GsDetailsPage *self, const gchar *toke
        if (g_strcmp0 (token, "@LicenseRef-public-domain") == 0) {
                /* TRANSLATORS: see the wikipedia page */
                return gs_details_page_label_widget (self, _("Public domain"),
-                       "https://en.wikipedia.org/wiki/Public_domain";);
+                       /* TRANSLATORS: Replace the link with a version in your language,
+                        * e.g. https://de.wikipedia.org/wiki/Gemeinfreiheit */
+                       _("https://en.wikipedia.org/wiki/Public_domain";));
        }
 
        /* free software, license unspecified */
        if (g_str_has_prefix (token, "@LicenseRef-free")) {
-               const gchar *url = "https://www.gnu.org/philosophy/free-sw";;
+               /* TRANSLATORS: Replace the link with a version in your language,
+                * e.g. https://www.gnu.org/philosophy/free-sw.de */
+               const gchar *url = _("https://www.gnu.org/philosophy/free-sw";);
                gchar *tmp;
 
                /* we support putting a custom URL in the


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