[gcompris] fixes to no more accept space prefix in translation.



commit 9b645dc5fa086693560fca5cb5f60d422d6ff981
Author: Bruno Coudoin <bcoudoin rcsmobility com>
Date:   Mon Apr 1 01:41:10 2013 +0200

    fixes to no more accept space prefix in translation.

 src/explore-activity/explore.py |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/explore-activity/explore.py b/src/explore-activity/explore.py
index 8629f3a..15f1e46 100644
--- a/src/explore-activity/explore.py
+++ b/src/explore-activity/explore.py
@@ -291,8 +291,7 @@ dialogue to\nenable the sound."), None)
             # WRITE LOCATION-SPECIFIC CONTENT TO PAGE
             # ---------------------------------------------------------------------
 
-            # FIXME Should remove the space in the data file instead
-            name = _(" " + self.data.get(sectionNum, '_title'))
+            name = _(self.data.get(sectionNum, '_title'))
             goocanvas.Text(
               parent=self.location_rootitem,
               x=410,
@@ -438,14 +437,11 @@ dialogue to\nenable the sound."), None)
                 except: errors.append("Missing 'background' key")
                 try: self.author = self.data.get('common', 'author')
                 except: self.author = ''
-                # FIXME Should remove the space in the data file instead
-                try: self.generalText = _(" " + self.data.get('common', '_GeneralText'))
+                try: self.generalText = _(self.data.get('common', '_GeneralText'))
                 except: errors.append("Missing '_GeneralText' key")
-                # FIXME Should remove the space in the data file instead
-                try: self.SoundMatchingGameText = _(" " + self.data.get('common', '_SoundMatchingGameText'))
+                try: self.SoundMatchingGameText = _(self.data.get('common', '_SoundMatchingGameText'))
                 except:pass
-                # FIXME Should remove the space in the data file instead
-                try: self.TextMatchingGameText = _(" " + self.data.get('common', '_TextMatchingGameText'))
+                try: self.TextMatchingGameText = _(self.data.get('common', '_TextMatchingGameText'))
                 except:pass
                 try: self.textBoxX = int(self.data.get('common', 'textBoxX'))
                 except:pass
@@ -456,8 +452,7 @@ dialogue to\nenable the sound."), None)
                     self.allSoundClips.append( (self.data.get(section, 'music'), section))
                 except:
                     pass
-                # FIXME Should remove the space in the data file instead
-                self.allTextPrompts.append( ( _(" " + self.data.get(section, '_shortPrompt')), section))
+                self.allTextPrompts.append( ( _(self.data.get(section, '_shortPrompt')), section))
 
                 self.sectionNames.append(section)
 


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