diff options
Diffstat (limited to 'BiblioJAM/JAMDialog.py')
-rw-r--r-- | BiblioJAM/JAMDialog.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/BiblioJAM/JAMDialog.py b/BiblioJAM/JAMDialog.py index c3cec16..0071e72 100644 --- a/BiblioJAM/JAMDialog.py +++ b/BiblioJAM/JAMDialog.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 from JAMButton import JAMButton @@ -239,11 +241,11 @@ 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 = JAMDialog(mensaje="Prueba JAMDialog", funcion_ok=None, funcion_cancel=None) + self.widgets = JAMDialog(mensaje=_("Test JAMDialog"), funcion_ok=None, funcion_cancel=None) self.widgets.connect(funcion_ok=self.salir, funcion_cancel=self.salir) self.ventana = pygame.display.get_surface() @@ -305,7 +307,7 @@ class Ejemplo(object): color = random.choice(colores) self.widgets.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.set_text(tipo=None, tamanio=None, color=None, texto=texto) return 0 @@ -371,7 +373,7 @@ class Ejemplo(object): color = random.choice(colores) self.widgets.set_text_buttons(color=color) 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.set_text_buttons(textoaceptar=texto, textocancelar=texto) return 0 |