Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MANIFEST3
-rw-r--r--keyboard.py4
-rw-r--r--mainscreen.py2
3 files changed, 7 insertions, 2 deletions
diff --git a/MANIFEST b/MANIFEST
index e6cceae..5b9fb29 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -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)