From 5462c4a92c1999016084884a5f299c39a06911a6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Jul 2004 05:50:54 +0000 Subject: [PATCH] Don't display untranslated translator credits. Tue Jul 13 01:50:06 2004 Matthias Clasen * gtk/gtkaboutdialog.c (display_credits_dialog): Don't display untranslated translator credits. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkaboutdialog.c | 10 ++++++++-- 5 files changed, 28 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e2c806ec78..60ee8fe2fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 13 01:50:06 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (display_credits_dialog): Don't + display untranslated translator credits. + Tue Jul 13 01:15:05 2004 Matthias Clasen * gtk/gtkiconview.c: Some documentation updates. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e2c806ec78..60ee8fe2fb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Tue Jul 13 01:50:06 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (display_credits_dialog): Don't + display untranslated translator credits. + Tue Jul 13 01:15:05 2004 Matthias Clasen * gtk/gtkiconview.c: Some documentation updates. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e2c806ec78..60ee8fe2fb 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Tue Jul 13 01:50:06 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (display_credits_dialog): Don't + display untranslated translator credits. + Tue Jul 13 01:15:05 2004 Matthias Clasen * gtk/gtkiconview.c: Some documentation updates. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e2c806ec78..60ee8fe2fb 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Tue Jul 13 01:50:06 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (display_credits_dialog): Don't + display untranslated translator credits. + Tue Jul 13 01:15:05 2004 Matthias Clasen * gtk/gtkiconview.c: Some documentation updates. diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index aa4c8b810a..f5df561280 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -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: * - * gtk_about_dialog_set_translator_credits (about, _("translator-credits")); + * gtk_about_dialog_set_translator_credits (about, _("translator_credits")); * + * 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];