Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-09-13 16:42:10 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-09-13 16:42:10 (GMT)
commit46983562938a773a48d446eb068d3ce4d93d4ec6 (patch)
tree9c8494d5d95ed3ef660be81d9880e359cc33ff0f
parent3ae3153e4ee09aa18c25371f5c67b7239c9bb5a7 (diff)
Updated MANIFEST
Added POTFILES for i18n Modified strings for i18n, use _("")
-rwxr-xr-xMANIFEST49
-rwxr-xr-xPOTFILES.in1
-rwxr-xr-xabout.py5
-rwxr-xr-xfinishGame.py5
-rwxr-xr-xhelp.py7
-rwxr-xr-xhighScores.py4
-rwxr-xr-xrunEsquiadorFunc.py22
-rwxr-xr-xscore.py7
8 files changed, 63 insertions, 37 deletions
diff --git a/MANIFEST b/MANIFEST
index 5a7776c..8686071 100755
--- a/MANIFEST
+++ b/MANIFEST
@@ -2,7 +2,7 @@ track2.tr
txtlib.py
help.py
runEsquiadorFunc.py
-POTFILES.in
+
track1.tr
activity.py
skier.py
@@ -13,10 +13,10 @@ LICENSE_GNU_GPL_2.txt
impares.py
pares.py
NEWS
-runEsquiador.py
-Fecha Proyecto.txt
+
+
setup.py
-run.py
+
track.py
MANIFEST.in
about.py
@@ -25,26 +25,26 @@ finishGame.py
jmenu.py
highScores.py
fonts/ice_sticks.ttf
-jmenu/321impact.ttf
+
jmenu/KDE_TypeWriter_Key_1.ogg
jmenu/snowboardMenuBG.jpg
jmenu/KDE_Dialog_Disappear.ogg
jmenu/runEsquiador.py
jmenu/exemple.py
-jmenu/ice_sticks.ttf
+
jmenu/jmenu_light.py
jmenu/jmenu.py
activity/activity.svg
activity/activity.info
-data2/rock.png
-data2/tree.png
-data2/bush.png
-data2/empty.png
-data2/animal.png
-data2/even.png
-data2/skier.png
-data2/grass.png
-data2/odd.png
+
+
+
+
+
+
+
+
+
musicAndSounds/KDE_TypeWriter_Key_1.ogg
musicAndSounds/KDE_Dialog_Disappear.ogg
data/final.png
@@ -92,3 +92,22 @@ olpcgames/camera.py
olpcgames/textsprite.py
olpcgames/data/sleeping_svg.py
olpcgames/data/__init__.py
+track3.tr
+track4.tr
+score.dat
+po/POTFILES.in
+po/Esquiador.es.po
+po/Esquiador.es.mo
+po/Esquiador.pot
+locale/Esquiador.en/activity.linfo
+locale/Esquiador.en/LC_MESSAGES/org.laptop.community.Esquiador.mo
+locale/Esquiador.es/activity.linfo
+locale/Esquiador.es/LC_MESSAGES/org.laptop.community.Esquiador.mo
+
+
+locale/Esquiador.en_US/activity.linfo
+locale/Esquiador.en_US/LC_MESSAGES/org.laptop.community.Esquiador.mo
+po/Esquiador.en.mo
+po/Esquiador.en.po
+po/Esquiador.en_US.po
+po/Esquiador.en_US.mo
diff --git a/POTFILES.in b/POTFILES.in
deleted file mode 100755
index 6c9e6b4..0000000
--- a/POTFILES.in
+++ /dev/null
@@ -1 +0,0 @@
-include *.py
diff --git a/about.py b/about.py
index 019beee..2c75832 100755
--- a/about.py
+++ b/about.py
@@ -5,6 +5,7 @@ import pygame
import txtlib
from pygame.locals import *
from constants import *
+from gettext import gettext as _
def mainAbout():
@@ -13,7 +14,7 @@ def mainAbout():
screen = pygame.display.set_mode(screen_size)
text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), './fonts/ice_sticks.ttf')
- text.text = '''Esquiador
+ text.text = _('''Esquiador
\nJuego matematico para diferenciar
numeros pares de impares
\nAutores:
@@ -21,7 +22,7 @@ def mainAbout():
Ricardo Flores
Eduardo Rodriguez
\nJuego desarrollado en Python, Pygame y
- algunas librerias de terceros.'''
+ algunas librerias de terceros.''')
text.add_style(0, 132, txtlib.SIZE,(screen_size[0]*25)/800)
diff --git a/finishGame.py b/finishGame.py
index 9fd3f8a..8ff5035 100755
--- a/finishGame.py
+++ b/finishGame.py
@@ -5,6 +5,7 @@ import pygame,sys
import txtlib
from pygame.locals import *
from constants import *
+from gettext import gettext as _
def finishing():
pygame.init()
@@ -12,13 +13,13 @@ def finishing():
screen = pygame.display.set_mode(screen_size)
text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), 'freesans')
- text.text = '''Actividad Esquiador terminada!
+ text.text = _('''Actividad Esquiador terminada!
\nModalidad:
\nPuntaje:
\nFelicitaciones ! ! ! ! !
\nEste juego permite diferenciar entre los diferentes tipos de numeros.
\nGracias por jugarlo, y buena suerte!
- '''
+ ''')
text.add_style(0, 30, txtlib.FONT, './fonts/ice_sticks.ttf')
text.add_style(0, 30, txtlib.SIZE,(screen_size[0]*25)/800)
diff --git a/help.py b/help.py
index 5c95cbd..e36047f 100755
--- a/help.py
+++ b/help.py
@@ -5,6 +5,7 @@ import pygame
import txtlib
from pygame.locals import *
from constants import *
+from gettext import gettext as _
def mainHelp():
@@ -13,7 +14,7 @@ def mainHelp():
screen = pygame.display.set_mode(screen_size)
text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), './fonts/ice_sticks.ttf')
- text.text = '''Ayuda de Esquiador
+ text.text = _('''Ayuda de Esquiador
\nJuego matematico para diferenciar
numeros pares de impares.
\n Debes ayudar al esquiador a pasar por las
@@ -24,12 +25,10 @@ def mainHelp():
esquivar obstaculos o para pasar por las banderas
con puntaje.
Ten cuidado con chocar con otros elementos
- pues tu puntaje disminuira. Suerte!
- '''
+ pues tu puntaje disminuira. Suerte!''')
text.add_style(0, 6000, txtlib.SIZE,(screen_size[0]*25)/1000)
-
text.update()
screen.blit(text.area, (100, 100))
diff --git a/highScores.py b/highScores.py
index da54d84..f40d537 100755
--- a/highScores.py
+++ b/highScores.py
@@ -5,6 +5,7 @@ import pygame
import txtlib
from pygame.locals import *
from constants import *
+from gettext import gettext as _
class HighScore():
@@ -68,8 +69,7 @@ class HighScore():
print sal
text = txtlib.Text((screen_size[0]-200,screen_size[1]-200), './fonts/ice_sticks.ttf')
- text.text = '''Esquiador
- \nPuntajes mas altos:\n''' + sal
+ text.text = _('''Esquiador\nPuntajes mas altos:\n''') + sal
text.add_style(0, 600, txtlib.SIZE, (screen_size[0]*25)/800)
text.update()
diff --git a/runEsquiadorFunc.py b/runEsquiadorFunc.py
index 9b98dd7..f3a1009 100755
--- a/runEsquiadorFunc.py
+++ b/runEsquiadorFunc.py
@@ -7,6 +7,7 @@ from about import *
from help import *
from highScores import *
from constants import *
+from gettext import gettext as _
LOG_FILENAME='Esquiador.log'
@@ -30,8 +31,15 @@ def estadoJugador(self, estado):
while pygame.event.poll().type != pygame.QUIT:
screen.blit(bg, (0,0) )
- selection = jmenu.run(['Numeros pares','Numeros impares','Puntajes mas altos' ,'Ayuda','Acerca de','Salir'],color,42,font=font,light=10,justify=just,pos=pos)
- if selection == 'Numeros pares':
+ selection = jmenu.run([
+ _('Numeros pares'),
+ _('Numeros impares'),
+ _('Puntajes mas altos') ,
+ _('Ayuda'),
+ _('Acerca de'),
+ _('Salir')],
+ color,42,font=font,light=10,justify=just,pos=pos)
+ if selection == _('Numeros pares'):
just = True
pos = ('center','center')
color = (0,0,0)
@@ -41,7 +49,7 @@ while pygame.event.poll().type != pygame.QUIT:
except IndexError:
print 'Termino el juego de pares!!!'
finishGame.finishing()
- elif selection == 'Numeros impares':
+ elif selection == _('Numeros impares'):
just = True
pos = ('center','center')
color = (0,0,0)
@@ -51,24 +59,24 @@ while pygame.event.poll().type != pygame.QUIT:
except IndexError:
print 'Termino el juego de impares!!!'
finishGame.finishing()
- elif selection == 'Puntajes mas altos':
+ elif selection == _('Puntajes mas altos'):
just = True
pos = ('center','center')
color = (0,0,0)
font = font
highScore.mainHighScores()
- elif selection == 'Ayuda':
+ elif selection == _('Ayuda'):
just = True
pos = ('center','center')
color = (0,0,0)
font = font
help.mainHelp()
- elif selection == 'Acerca de':
+ elif selection == _('Acerca de'):
just = True
pos = ('center','center')
color = (0,0,0)
font = font
about.mainAbout()
- elif selection == 'Salir' :
+ elif selection == _('Salir') :
sys.exit(0)
#break
diff --git a/score.py b/score.py
index 838befe..f789578 100755
--- a/score.py
+++ b/score.py
@@ -7,7 +7,9 @@ import pygame
from pygame import *
from pygame.locals import *
from constants import *
+from gettext import gettext as _
#fuente = pygame.font.Font("./media/fuentes/space age.ttf", 25)
+
class Score():
def __init__(self, player):
@@ -16,11 +18,8 @@ class Score():
pass
def draw(self, screen):
- score = "PUNTAJE: %05d" % self.player.score
+ score = _("PUNTAJE: %05d") % self.player.score
surface = self.font.render(score, 1, (0,0,0))
rect = surface.get_rect()
screen.blit(surface, rect)
-
-
-