diff options
Diffstat (limited to 'BiblioJAM/JAMButton.py')
-rw-r--r-- | BiblioJAM/JAMButton.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/BiblioJAM/JAMButton.py b/BiblioJAM/JAMButton.py index b302d51..be55979 100644 --- a/BiblioJAM/JAMButton.py +++ b/BiblioJAM/JAMButton.py @@ -11,6 +11,8 @@ import pygame, gc, sys from pygame.locals import * gc.enable() +from gettext import gettext as _ + import JAMGlobals as VG from JAMLabel import JAMLabel @@ -465,7 +467,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 @@ -526,12 +528,12 @@ class Ejemplo(object): def setup(self): pygame.init() pygame.display.set_mode(self.resolucion , 0, 0) - pygame.display.set_caption("Ejemplo") + pygame.display.set_caption(_("Example")) self.fondo = self.get_Fondo() self.widgets = pygame.sprite.OrderedUpdates() - self.widgets.add(JAMButton("JAMButton Prueba", None, tipo="elipse")) + self.widgets.add(JAMButton(_("Test JAMButton"), None, tipo="elipse")) self.ventana = pygame.display.get_surface() self.reloj = pygame.time.Clock() |