diff options
author | rbuj <[email protected]> | 2019-02-15 21:12:55 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-02-15 21:50:41 +0100 |
commit | acd6123cf163948434e364c419d96cf1cfcae32a (patch) | |
tree | f1831302ef2f9d2af8816af49d00238ceef11989 | |
parent | 9fa6ae50758c370342b8fd8e07e1f316ad5210dd (diff) | |
download | mate-system-monitor-acd6123cf163948434e364c419d96cf1cfcae32a.tar.bz2 mate-system-monitor-acd6123cf163948434e364c419d96cf1cfcae32a.tar.xz |
License text in About dialog
-rw-r--r-- | src/callbacks.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
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); } |