diff --git a/ChangeLog b/ChangeLog index a88eccb5f9..0788a37398 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-29 Michael Natterer + + * plug-ins/dbbrowser/gimpprocbrowser.c + * plug-ins/dbbrowser/plugin-browser.c: don't say "1 Procedures" or + "1 Plug-In Interfaces" but use the singular form instead. + 2004-10-29 Michael Natterer * plug-ins/common/flarefx.c diff --git a/libgimp/gimpprocbrowserdialog.c b/libgimp/gimpprocbrowserdialog.c index cb26a11f78..408dc56d85 100644 --- a/libgimp/gimpprocbrowserdialog.c +++ b/libgimp/gimpprocbrowserdialog.c @@ -421,7 +421,11 @@ browser_response (GtkWidget *widget, &num_procs, &proc_list); } - str = g_strdup_printf (_("%d Procedures"), num_procs); + if (num_procs == 1) + str = g_strdup (_("1 Procedure")); + else + str = g_strdup_printf (_("%d Procedures"), num_procs); + gtk_label_set_text (GTK_LABEL (browser->count_label), str); g_free (str); diff --git a/plug-ins/common/plugin-browser.c b/plug-ins/common/plugin-browser.c index d630b43235..a3e7b55df7 100644 --- a/plug-ins/common/plugin-browser.c +++ b/plug-ins/common/plugin-browser.c @@ -414,7 +414,12 @@ get_plugin_info (PluginBrowser *browser, time_ints = return_vals[10].data.d_int32array; realname_strs = return_vals[12].data.d_stringarray; - str = g_strdup_printf (_("%d Plug-In Interfaces"), browser->num_plugins); + if (browser->num_plugins == 1) + str = g_strdup (_("1 Plug-In Interface")); + else + str = g_strdup_printf (_("%d Plug-In Interfaces"), + browser->num_plugins); + gtk_label_set_text (GTK_LABEL (browser->count_label), str); g_free (str); diff --git a/plug-ins/dbbrowser/gimpprocbrowser.c b/plug-ins/dbbrowser/gimpprocbrowser.c index cb26a11f78..408dc56d85 100644 --- a/plug-ins/dbbrowser/gimpprocbrowser.c +++ b/plug-ins/dbbrowser/gimpprocbrowser.c @@ -421,7 +421,11 @@ browser_response (GtkWidget *widget, &num_procs, &proc_list); } - str = g_strdup_printf (_("%d Procedures"), num_procs); + if (num_procs == 1) + str = g_strdup (_("1 Procedure")); + else + str = g_strdup_printf (_("%d Procedures"), num_procs); + gtk_label_set_text (GTK_LABEL (browser->count_label), str); g_free (str); diff --git a/plug-ins/dbbrowser/plugin-browser.c b/plug-ins/dbbrowser/plugin-browser.c index d630b43235..a3e7b55df7 100644 --- a/plug-ins/dbbrowser/plugin-browser.c +++ b/plug-ins/dbbrowser/plugin-browser.c @@ -414,7 +414,12 @@ get_plugin_info (PluginBrowser *browser, time_ints = return_vals[10].data.d_int32array; realname_strs = return_vals[12].data.d_stringarray; - str = g_strdup_printf (_("%d Plug-In Interfaces"), browser->num_plugins); + if (browser->num_plugins == 1) + str = g_strdup (_("1 Plug-In Interface")); + else + str = g_strdup_printf (_("%d Plug-In Interfaces"), + browser->num_plugins); + gtk_label_set_text (GTK_LABEL (browser->count_label), str); g_free (str);