[Xfce4-commits] <xfce4-panel:master> Make string in about translatable (bug #8545).
Nick Schermer
noreply at xfce.org
Sat Mar 10 15:22:01 CET 2012
Updating branch refs/heads/master
to 3ba19d957205a7ce8a333c095a33c539c48829c3 (commit)
from bbc68f68cee387e2e05cf3f305434057e734f407 (commit)
commit 3ba19d957205a7ce8a333c095a33c539c48829c3
Author: Nick Schermer <nick at xfce.org>
Date: Sat Mar 10 15:20:25 2012 +0100
Make string in about translatable (bug #8545).
panel/panel-dialogs.c | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/panel/panel-dialogs.c b/panel/panel-dialogs.c
index f268ba6..9f6a0bd 100644
--- a/panel/panel-dialogs.c
+++ b/panel/panel-dialogs.c
@@ -58,14 +58,19 @@ panel_dialogs_show_about_email_hook (GtkAboutDialog *dialog,
void
panel_dialogs_show_about (void)
{
- static const gchar *authors[] =
- {
- "Maintainer:\nNick Schermer <nick at xfce.org>\n",
- "Deskbar Mode:\nAndrzej Radecki <ndrwrdck at gmail.com>\n",
- "Inactive Maintainers:\nJasper Huijsmans <jasper at xfce.org>",
- "Tic-tac-toe <tictactoe at xfce.org>",
- NULL
- };
+ gchar **authors;
+
+ authors = g_new0 (gchar *, 4);
+ authors[0] = g_strdup_printf ("%s:\n%s\n",
+ _("Maintainers"),
+ "Nick Schermer <nick at xfce.org>");
+ authors[1] = g_strdup_printf ("%s:\n%s\n",
+ _("Deskbar Mode"),
+ "Andrzej Radecki <ndrwrdck at gmail.com>");
+ authors[2] = g_strdup_printf ("%s:\n%s\n%s\n",
+ _("Inactive Maintainers"),
+ "Jasper Huijsmans <jasper at xfce.org>",
+ "Tic-tac-toe <tictactoe at xfce.org>");
gtk_about_dialog_set_email_hook (panel_dialogs_show_about_email_hook, NULL, NULL);
#if !GTK_CHECK_VERSION (2, 18, 0)
@@ -75,7 +80,7 @@ panel_dialogs_show_about (void)
gtk_show_about_dialog (NULL,
"authors", authors,
"comments", _("The panel of the Xfce Desktop Environment"),
- "copyright", "Copyright \302\251 2004-2011 Xfce Development Team",
+ "copyright", "Copyright \302\251 2004-2012 Xfce Development Team",
"destroy-with-parent", TRUE,
"license", XFCE_LICENSE_GPL,
"program-name", PACKAGE_NAME,
@@ -85,6 +90,7 @@ panel_dialogs_show_about (void)
"logo-icon-name", PACKAGE_NAME,
NULL);
+ g_strfreev (authors);
}
More information about the Xfce4-commits
mailing list