[orca] Fix the capitalization of accented braille rolenames



commit 6644220c9c940b1c1b45827df7aadfd7621eb504
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Feb 23 07:24:28 2012 -0500

    Fix the capitalization of accented braille rolenames

 src/orca/rolenames.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/rolenames.py b/src/orca/rolenames.py
index eca54ca..89c662d 100644
--- a/src/orca/rolenames.py
+++ b/src/orca/rolenames.py
@@ -1271,7 +1271,8 @@ def getLongBrailleForRoleName(obj, role=None):
     """
 
     localized = getLocalizedRoleName(obj, role)
-    return ''.join(map(str.title, localized.split()))
+    localized = [x[0].upper() + x[1:len(x)] for x in localized.split()]
+    return ''.join(localized)
 
 def getBrailleForRoleName(obj, role=None):
     """Returns the localized name of the given Accessible object; the name is



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