From acd6123cf163948434e364c419d96cf1cfcae32a Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 15 Feb 2019 21:12:55 +0100 Subject: License text in About dialog --- src/callbacks.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/callbacks.cpp b/src/callbacks.cpp index fbd4f27..ee297ba 100644 --- a/src/callbacks.cpp +++ b/src/callbacks.cpp @@ -181,6 +181,23 @@ cb_about (GtkAction *action, gpointer data) NULL }; + const gchar * license[] = { + N_("System Monitor is free software; you can redistribute it and/or modify " + "it under the terms of the GNU General Public License as published by " + "the Free Software Foundation; either version 2 of the License, or " + "(at your option) any later version."), + N_("System Monitor is distributed in the hope that it will be useful, " + "but WITHOUT ANY WARRANTY; without even the implied warranty of " + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " + "GNU General Public License for more details."), + N_("You should have received a copy of the GNU General Public License " + "along with System Monitor; if not, write to the Free Software Foundation, Inc., " + "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA") + }; + + gchar *license_trans; + license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL); + gtk_show_about_dialog ( GTK_WINDOW (procdata->app), "name", _("System Monitor"), @@ -194,11 +211,13 @@ cb_about (GtkAction *action, gpointer data) "artists", artists, "documenters", documenters, "translator-credits", _("translator-credits"), - "license", "GPL 2+", + "license", license_trans, "wrap-license", TRUE, "website", "http://www.mate-desktop.org", NULL ); + + g_free (license_trans); } -- cgit v1.2.1