From 281f6e3691b5dc8c99decaaa95604cb9f665993c Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Thu, 09 Aug 2012 18:53:56 +0000 Subject: Fix error using the activity in spanish due to special chars in translation Signed-off-by: Manuel Kaufmann --- 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') -- cgit v0.9.1