Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/BiblioJAM/JAMButton.py
diff options
context:
space:
mode:
Diffstat (limited to 'BiblioJAM/JAMButton.py')
-rw-r--r--BiblioJAM/JAMButton.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/BiblioJAM/JAMButton.py b/BiblioJAM/JAMButton.py
index b302d51..71d3d28 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
@@ -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(_("Try JAMButton"), None, tipo="elipse"))
self.ventana = pygame.display.get_surface()
self.reloj = pygame.time.Clock()