]> Pileus Git - ~andy/gtk/commitdiff
Show translators properly in the new about dialog
authorMatthias Clasen <mclasen@redhat.com>
Wed, 22 Dec 2010 05:31:05 +0000 (00:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 22 Dec 2010 05:31:05 +0000 (00:31 -0500)
translator-credits is a single string, typically with newline-
separated names.

gtk/gtkaboutdialog.c

index 2e042bdd2f78b509fc027eed3aaafc3abd50e168..9edf0b647e9a929b3c2396d61971d7c5e7152227 100644 (file)
@@ -2373,12 +2373,11 @@ create_credits_page (GtkAboutDialog *about)
       strcmp (priv->translator_credits, "translator_credits") != 0 &&
       strcmp (priv->translator_credits, "translator-credits") != 0)
     {
-      gchar *translators[2];
-
-      translators[0] = priv->translator_credits;
-      translators[1] = NULL;
+      gchar **translators;
 
+      translators = g_strsplit (priv->translator_credits, "\n", 0);
       add_credits_section (about, GTK_GRID (grid), &row, _("Translated by"), translators);
+      g_strfreev (translators);
     }
 
   if (priv->artists != NULL)