Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-08-09 18:53:56 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-08-09 18:53:56 (GMT)
commit281f6e3691b5dc8c99decaaa95604cb9f665993c (patch)
tree8b27200b19e2f041c70c998acc50f14d4d6070f3
parent52cdd25b95027678e1aaa2d29ce899cdfcc95e9c (diff)
Fix error using the activity in spanish due to special chars in translation
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r--lessonscreen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lessonscreen.py b/lessonscreen.py
index fb38bff..9098dca 100644
--- a/lessonscreen.py
+++ b/lessonscreen.py
@@ -509,18 +509,18 @@ class LessonScreen(Gtk.VBox):
shift_finger = FINGERS['RP']
instructions = _('Press and hold the shift key with your %(finger)s, ') % { 'finger': shift_finger }
- instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': letter, 'finger': finger }
+ instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': str(letter), 'finger': finger }
elif state == Gdk.ModifierType.MOD5_MASK:
instructions = _('Press and hold the altgr key, ')
- instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': letter, 'finger': finger }
+ instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': str(letter), 'finger': finger }
elif state == Gdk.ModifierType.SHIFT_MASK | Gdk.ModifierType.MOD5_MASK:
instructions = _('Press and hold the altgr and shift keys, ')
- instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': letter, 'finger': finger }
+ instructions += _('then press the %(letter)s key with your %(finger)s.') % { 'letter': str(letter), 'finger': finger }
else:
- instructions = _('Press the %(letter)s key with your %(finger)s.') % { 'letter': letter, 'finger': finger }
+ instructions = _('Press the %(letter)s key with your %(finger)s.') % { 'letter': str(letter), 'finger': finger }
self.lessonbuffer.insert(self.lessonbuffer.get_end_iter(), instructions + '\n\n')