[orca] Fix for bgo#606962 - availability of gnomespeech not handled in orca console setup



commit c4ae8df2efa7b9769e7e3a0b5423a3aad0e1473f
Author: Willie Walker <william walker sun com>
Date:   Thu Jan 14 11:58:20 2010 -0500

    Fix for bgo#606962 - availability of gnomespeech not handled in orca console setup

 src/orca/orca_console_prefs.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/orca_console_prefs.py b/src/orca/orca_console_prefs.py
index b91d7b3..c6c575f 100644
--- a/src/orca/orca_console_prefs.py
+++ b/src/orca/orca_console_prefs.py
@@ -140,7 +140,15 @@ def setupSpeech(prefsDict):
         print _("Speech is unavailable.")
         return False
 
-    speech.init()
+    try:
+        speech.init()
+    except:
+        # Translators: this means speech synthesis (i.e., the machine
+        # speaks to you from its speakers) is not installed or working.
+        #
+        print _("Speech is unavailable.")
+        return False
+
     sayAndPrint(_("Welcome to Orca setup."))
 
     workingFactories = []



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