[gnome-color-manager] trivial: make the preferences no-working-space combobox more verbose



commit d2b8b24d1e071773649e4a87bf14afbff835bde3
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jan 11 12:41:35 2010 +0000

    trivial: make the preferences no-working-space combobox more verbose

 src/gcm-prefs.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 8c88cc1..2d2dda0 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2309,6 +2309,7 @@ gcm_prefs_setup_space_combobox (GtkWidget *widget, GcmProfileColorspace colorspa
 	GcmProfileColorspace colorspace_tmp;
 	guint added_count = 0;
 	gboolean has_vcgt;
+	gchar *text = NULL;
 	const gchar *search = "RGB";
 	GPtrArray *profile_array = NULL;
 
@@ -2346,11 +2347,13 @@ gcm_prefs_setup_space_combobox (GtkWidget *widget, GcmProfileColorspace colorspa
 	if (profile_array != NULL)
 		g_ptr_array_unref (profile_array);
 	if (added_count == 0) {
-		/* TRANSLATORS: this is when there are no profiles that can be used */
-		gtk_combo_box_append_text (GTK_COMBO_BOX(widget), _("No profiles available"));
+		/* TRANSLATORS: this is when there are no profiles that can be used; the search term is either "RGB" or "CMYK" */
+		text = g_strdup_printf (_("No %s color spaces available"), search);
+		gtk_combo_box_append_text (GTK_COMBO_BOX(widget), text);
 		gtk_combo_box_set_active (GTK_COMBO_BOX (widget), added_count);
 		gtk_widget_set_sensitive (widget, FALSE);
 	}
+	g_free (text);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]