Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/BiblioJAM/JAMLabel.py
diff options
context:
space:
mode:
Diffstat (limited to 'BiblioJAM/JAMLabel.py')
-rw-r--r--BiblioJAM/JAMLabel.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/BiblioJAM/JAMLabel.py b/BiblioJAM/JAMLabel.py
index 7f5c7ef..f5cd160 100644
--- a/BiblioJAM/JAMLabel.py
+++ b/BiblioJAM/JAMLabel.py
@@ -13,6 +13,8 @@ gc.enable()
pygame.font.init()
import JAMGlobals as VG
+from gettext import gettext as _
+
class JAMLabel(pygame.sprite.Sprite):
def __init__(self, texto):
pygame.sprite.Sprite.__init__(self)
@@ -297,7 +299,7 @@ class Ejemplo(object):
color = random.choice(colores)
self.widgets.sprites()[0].set_text(tipo=None, tamanio=None, color=color, texto=None)
if modificar == "texto":
- textos= ["JAMLabel", "Presiona escape cuando quieras salir", "Modificando Texto en JAMLabel", "CeibalJAM 2011"]
+ textos= ["JAMLabel", _("Press escape to leave anytime"), _("Modifying Text in JAMLabel"), "CeibalJAM 2011"]
texto = random.choice(textos)
self.widgets.sprites()[0].set_text(tipo=None, tamanio=None, color=None, texto=texto)
return 0
@@ -349,7 +351,7 @@ class Ejemplo(object):
self.fondo = self.get_Fondo()
self.widgets = pygame.sprite.OrderedUpdates()
- self.widgets.add(JAMLabel("JAMLabel Prueba"))
+ self.widgets.add(JAMLabel(_("Test JAMLabel")))
self.ventana = pygame.display.get_surface()
self.reloj = pygame.time.Clock()