Skip to content
Snippets Groups Projects
Commit 3ba19d95 authored by Nick Schermer's avatar Nick Schermer
Browse files

Make string in about translatable (bug #8545).

parent bbc68f68
No related branches found
No related tags found
No related merge requests found
...@@ -58,14 +58,19 @@ panel_dialogs_show_about_email_hook (GtkAboutDialog *dialog, ...@@ -58,14 +58,19 @@ panel_dialogs_show_about_email_hook (GtkAboutDialog *dialog,
void void
panel_dialogs_show_about (void) panel_dialogs_show_about (void)
{ {
static const gchar *authors[] = gchar **authors;
{
"Maintainer:\nNick Schermer <nick@xfce.org>\n", authors = g_new0 (gchar *, 4);
"Deskbar Mode:\nAndrzej Radecki <ndrwrdck@gmail.com>\n", authors[0] = g_strdup_printf ("%s:\n%s\n",
"Inactive Maintainers:\nJasper Huijsmans <jasper@xfce.org>", _("Maintainers"),
"Tic-tac-toe <tictactoe@xfce.org>", "Nick Schermer <nick@xfce.org>");
NULL authors[1] = g_strdup_printf ("%s:\n%s\n",
}; _("Deskbar Mode"),
"Andrzej Radecki <ndrwrdck@gmail.com>");
authors[2] = g_strdup_printf ("%s:\n%s\n%s\n",
_("Inactive Maintainers"),
"Jasper Huijsmans <jasper@xfce.org>",
"Tic-tac-toe <tictactoe@xfce.org>");
gtk_about_dialog_set_email_hook (panel_dialogs_show_about_email_hook, NULL, NULL); gtk_about_dialog_set_email_hook (panel_dialogs_show_about_email_hook, NULL, NULL);
#if !GTK_CHECK_VERSION (2, 18, 0) #if !GTK_CHECK_VERSION (2, 18, 0)
...@@ -75,7 +80,7 @@ panel_dialogs_show_about (void) ...@@ -75,7 +80,7 @@ panel_dialogs_show_about (void)
gtk_show_about_dialog (NULL, gtk_show_about_dialog (NULL,
"authors", authors, "authors", authors,
"comments", _("The panel of the Xfce Desktop Environment"), "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, "destroy-with-parent", TRUE,
"license", XFCE_LICENSE_GPL, "license", XFCE_LICENSE_GPL,
"program-name", PACKAGE_NAME, "program-name", PACKAGE_NAME,
...@@ -85,6 +90,7 @@ panel_dialogs_show_about (void) ...@@ -85,6 +90,7 @@ panel_dialogs_show_about (void)
"logo-icon-name", PACKAGE_NAME, "logo-icon-name", PACKAGE_NAME,
NULL); NULL);
g_strfreev (authors);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment