diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-02-20 15:31:18 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-02-20 15:31:18 (GMT) |
commit | 385f575bc7f59d10d4e85fabee1e44237cdcc0e3 (patch) | |
tree | 6b28166c45b99c1b8cbb3cdbad8bd995f502b852 | |
parent | 4176f798165efcf0acad22896a3f330d7b710bd2 (diff) |
Fixes from Aleksey Lim.
-rw-r--r-- | MANIFEST | 3 | ||||
-rw-r--r-- | keyboard.py | 4 | ||||
-rw-r--r-- | mainscreen.py | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -81,3 +81,6 @@ lessons/ne_NP/out.log lessons/ne_NP/rightcapital.lesson lessons/ne_NP/bottomrow.lesson lessons/ne_NP/leftcapital.lesson +locale/ne_NP/activity.linfo +locale/ne_NP/LC_MESSAGES/org.laptop.community.TypingTurtle.mo +po/ne_NP.po diff --git a/keyboard.py b/keyboard.py index 5c0f04f..81eaa5e 100644 --- a/keyboard.py +++ b/keyboard.py @@ -534,7 +534,9 @@ class KeyboardWidget(KeyboardData, gtk.DrawingArea): image = k['key-image-altgr'] elif self.active_state == gtk.gdk.SHIFT_MASK|gtk.gdk.MOD5_MASK: image = k['key-image-shift-altgr'] - + else: + continue + self.window.draw_image(gc, image, 0, 0, x1, y1, x2-x1, y2-y1) # Draw overlay images. diff --git a/mainscreen.py b/mainscreen.py index d8ce76c..3771c91 100644 --- a/mainscreen.py +++ b/mainscreen.py @@ -130,7 +130,7 @@ class MainScreen(gtk.VBox): # Load lessons for this language. bundle_path = sugar.activity.activity.get_bundle_path() - code = locale.getlocale(locale.LC_ALL)[0] + code = locale.getdefaultlocale()[0] path = bundle_path + '/lessons/' + code self.load_lessons(path) |