[gcompris] louis braille activity: fixed to make it works with translations.



commit baa4afd395b31875001d8d72990d18210880c0a3
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Oct 1 16:58:15 2011 +0200

    louis braille activity: fixed to make it works with translations.

 src/louis_braille-activity/louis_braille.py        |    7 +-
 .../resources/louis_braille/activity.desktop.in    |   66 ++++++++++----------
 2 files changed, 37 insertions(+), 36 deletions(-)
---
diff --git a/src/louis_braille-activity/louis_braille.py b/src/louis_braille-activity/louis_braille.py
index 2e3a17c..dba067a 100644
--- a/src/louis_braille-activity/louis_braille.py
+++ b/src/louis_braille-activity/louis_braille.py
@@ -103,7 +103,8 @@ class Gcompris_louis_braille:
 
     # Insert the lines in the correct order
     for index in range(n_lines):
-      self.reordering.add_line( str(self.dataset.get(str(index + 1), _("story"))))
+      self.reordering.add_line( _(str(self.dataset.get(str(index + 1),
+                                                       "story"))) )
 
       ok = goocanvas.Svg(parent = self.rootitem,
                          svg_handle = gcompris.skin.svg_get(),
@@ -219,9 +220,9 @@ class Gcompris_louis_braille:
         gcompris.utils.load_pixmap( (str(self.dataset.get(str(self.gcomprisBoard.level),
                                                           "image"))) )
     self.imageitem.set_properties(pixbuf = pixbuf)
-    story = self.dataset.get( str(self.gcomprisBoard.level), _("story") )
+    story = _(self.dataset.get( str(self.gcomprisBoard.level), "story"))
     self.storyitem.set_properties(text = story)
-    year = self.dataset.get( str(self.gcomprisBoard.level) , _("year") )
+    year = self.dataset.get( str(self.gcomprisBoard.level) , "year")
     self.year_item.set_properties(text = year)
     bounds = self.year_item.get_bounds()
     gapx = 10
diff --git a/src/louis_braille-activity/resources/louis_braille/activity.desktop.in b/src/louis_braille-activity/resources/louis_braille/activity.desktop.in
index 99b923a..d84b099 100644
--- a/src/louis_braille-activity/resources/louis_braille/activity.desktop.in
+++ b/src/louis_braille-activity/resources/louis_braille/activity.desktop.in
@@ -1,55 +1,55 @@
 [1]
-year = 1809
-_story = Born on January 4th in Coupvary near Paris in France.
-image = louis_braille/louis.png
+year=1809
+_story=Born on January 4th in Coupvary near Paris in France.
+image=louis_braille/louis.png
 
 [2]
-year = 1812
-_story = Louis Braille injured his right eye with a stitching awl from his father's workshop.
-image = louis_braille/workshop.jpg
+year=1812
+_story=Louis Braille injured his right eye with a stitching awl from his father's workshop.
+image=louis_braille/workshop.jpg
 
 [3]
-year = 1812
-_story = At the age of three, Louis became blind due to a severe infection that spread to his left eye.
-image = louis_braille/fireplace.jpg
+year=1812
+_story=At the age of three, Louis became blind due to a severe infection that spread to his left eye.
+image=louis_braille/fireplace.jpg
 
 [4]
-year = 1819
-_story = At the age of 10, he was sent to Paris to study at the Royal Institute for Blind Youth.
-image = louis_braille/rnib.jpg
+year=1819
+_story=At the age of 10, he was sent to Paris to study at the Royal Institute for Blind Youth.
+image=louis_braille/rnib.jpg
 
 [5]
-year = 1820
-_story = He impressed his classmates and began to play the piano and the organ.
-image = louis_braille/piano.svg
+year=1820
+_story=He impressed his classmates and began to play the piano and the organ.
+image=louis_braille/piano.svg
 
 [6]
-year = 1821
-_story = Charles Barbier, a French soldier, visited his school and shared his invention of night writing, a code of 12 raised dots to share information on battlefields.
-image = louis_braille/night_printing.jpg
+year=1821
+_story=Charles Barbier, a French soldier, visited his school and shared his invention of night writing, a code of 12 raised dots to share information on battlefields.
+image=louis_braille/night_printing.jpg
 
 [7]
-year = 1824
-_story = Louis trimmed Barbier's 12 dots into 6 and invented the Braille language.
-image = louis_braille/braile.jpg
+year=1824
+_story=Louis trimmed Barbier's 12 dots into 6 and invented the Braille language.
+image=louis_braille/braile.jpg
 
 [8]
-year = 1828
-_story = He became a teacher after graduating and secretly taught his method.
-image = louis_braille/teach.jpg
+year=1828
+_story=He became a teacher after graduating and secretly taught his method.
+image=louis_braille/teach.jpg
 
 [9]
-year = 1837
-_story = He revised and extended braille to include mathematics, symbols, punctuations and music notations.
-image = louis_braille/chart.png
+year=1837
+_story=He revised and extended braille to include mathematics, symbols, punctuations and music notations.
+image=louis_braille/chart.png
 
 [10]
 
-year = 1852
-_story = He died of tuberculosis. He is burried in the Pantheon in Paris. A monument is erected to honor him.
-image = louis_braille/statue.jpg
+year=1852
+_story=He died of tuberculosis. He is burried in the Pantheon in Paris. A monument is erected to honor him.
+image=louis_braille/statue.jpg
 
 [11]
-_year = After his Death
-_story = Braille got accepted as a world wide standard. Louis Braille proved that if you have motivation you can do incredible things.
-image = louis_braille/braille_ball.jpg
+_year=After his Death
+_story=Braille got accepted as a world wide standard. Louis Braille proved that if you have motivation you can do incredible things.
+image=louis_braille/braille_ball.jpg



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