[tasks] gtk: fix i18n in the license
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasks] gtk: fix i18n in the license
- Date: Thu, 14 Oct 2010 13:47:26 +0000 (UTC)
commit 39464323f9b3725bdba932363798898c92c2196e
Author: Ross Burton <ross linux intel com>
Date: Thu Oct 14 14:48:52 2010 +0100
gtk: fix i18n in the license
src/gtk/main.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/src/gtk/main.c b/src/gtk/main.c
index bb693f9..5806c94 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -442,19 +442,15 @@ on_about_action (GtkAction *action, gpointer user_data)
"Jakub Steiner <jimmac ximian com>",
NULL,
};
-#define COPYRIGHT_STRING "Copyright \302\251 2007-2010 Intel Corp"
- const char *license = _(
- "Tasks"
- "\n\n"
- COPYRIGHT_STRING
- "\n\n"
- "This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
- );
+ char *license = g_strdup_printf ("%s\n\n%s\n\n%s",
+ g_get_application_name (),
+ "Copyright \302\251 2007-2010 Intel Corp",
+ _("This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"));
gtk_show_about_dialog (GTK_WINDOW (window),
"version", VERSION,
"logo-icon-name", "tasks",
- "copyright", COPYRIGHT_STRING,
+ "copyright", "Copyright \302\251 2007-2010 Intel Corp",
"authors", authors,
"artists", artists,
"translator-credits", _("translator-credits"),
@@ -463,7 +459,8 @@ on_about_action (GtkAction *action, gpointer user_data)
"website", "http://pimlico-project.org",
"website-label", _("The Pimlico Project"),
NULL);
-#undef COPYRIGHT_STRING
+
+ g_free (license);
}
static const GtkActionEntry actions[] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]