Commit 5462c4a9 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Don't display untranslated translator credits.

Tue Jul 13 01:50:06 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
	display untranslated translator credits.
parent 3eac5fbb
Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
display untranslated translator credits.
Tue Jul 13 01:15:05 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.c: Some documentation updates.
......
Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
display untranslated translator credits.
Tue Jul 13 01:15:05 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.c: Some documentation updates.
......
Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
display untranslated translator credits.
Tue Jul 13 01:15:05 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.c: Some documentation updates.
......
Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
display untranslated translator credits.
Tue Jul 13 01:15:05 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.c: Some documentation updates.
......
......@@ -1157,8 +1157,12 @@ gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
* Using gettext(), a simple way to achieve that is to mark the
* string for translation:
* <informalexample><programlisting>
* gtk_about_dialog_set_translator_credits (about, _("translator-credits"));
* gtk_about_dialog_set_translator_credits (about, _("translator_credits"));
* </programlisting></informalexample>
* It is a good idea to use the customary msgid "translator_credits" for this
* purpose, since translators will already know the purpose of that msgid, and
* since #GtkAboutDialog will detect if "translator_credits" is untranslated
* and hide the tab.
*
* Since: 2.6
**/
......@@ -1661,7 +1665,9 @@ display_credits_dialog (GtkWidget *button,
if (priv->documenters != NULL)
add_credits_page (about, notebook, _("Documented by"), priv->documenters);
if (priv->translator_credits != NULL)
if (priv->translator_credits != NULL &&
!strcmp (priv->translator_credits, "translator_credits") &&
!strcmp (priv->translator_credits, "translator-credits"))
{
gchar *translators[2];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment