[gnome-color-manager] Translate the 'firmware required' output from Argyll



commit c1039ba4a2000ed5a072988c93b1c66e5b02be52
Author: Richard Hughes <richard hughsie com>
Date:   Mon Feb 8 08:51:42 2010 +0000

    Translate the 'firmware required' output from Argyll

 src/gcm-calibrate-argyll.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index 7616859..072a634 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -1299,8 +1299,15 @@ gcm_calibrate_argyll_process_output_cmd (GcmCalibrateArgyll *calibrate_argyll, c
 		/* TRANSLATORS: title, the calibration failed */
 		title = _("Calibration error");
 
+		if (g_strstr_len (line, -1, "No PLD firmware pattern is available") != NULL) {
+			/* TRANSLATORS: message, no firmware is available */
+			message = _("No firmware is installed for this device.");
+		} else {
+			message = found + 8;
+		}
+
 		/* push new messages into the UI */
-		gcm_calibrate_argyll_set_dialog (calibrate_argyll, title, found+8, TRUE);
+		gcm_calibrate_argyll_set_dialog (calibrate_argyll, title, message, TRUE);
 		egg_debug ("VTE: error: %s", found+8);
 
 		/* set state */



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