From: Christian Dywan Date: Fri, 9 Apr 2010 20:56:21 +0000 (+0200) Subject: Make the license in the about dialogue localizable X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=130eb0e46aaf5af673b12d0eff3fe8e7b58c5699;p=midori Make the license in the about dialogue localizable --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 18a2c378..d8216e8d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4973,12 +4973,6 @@ static const gchar* credits_documenters[] = static const gchar* credits_artists[] = { "Nancy Runge ", NULL }; -static const gchar* license = - "This library is free software; you can redistribute it and/or\n" - "modify it under the terms of the GNU Lesser General Public\n" - "License as published by the Free Software Foundation; either\n" - "version 2.1 of the License, or (at your option) any later version.\n"; - static void _action_about_activate_link (GtkAboutDialog* about, const gchar* uri, @@ -5014,6 +5008,11 @@ _action_about_activate (GtkAction* action, GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION, WEBKIT_MAJOR_VERSION, WEBKIT_MINOR_VERSION, WEBKIT_MICRO_VERSION, _("A lightweight web browser.")); + const gchar* license = + _("This library is free software; you can redistribute it and/or " + "modify it under the terms of the GNU Lesser General Public " + "License as published by the Free Software Foundation; either " + "version 2.1 of the License, or (at your option) any later version."); gtk_about_dialog_set_email_hook (_action_about_activate_email, NULL, NULL); gtk_about_dialog_set_url_hook (_action_about_activate_link, browser, NULL); @@ -5031,6 +5030,7 @@ _action_about_activate (GtkAction* action, "wrap-license", TRUE, "translator-credits", _("translator-credits"), NULL); + g_free (comments); } static void