Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Interfaz.py
diff options
context:
space:
mode:
Diffstat (limited to 'Interfaz.py')
-rw-r--r--Interfaz.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/Interfaz.py b/Interfaz.py
index 93c145d..8373591 100644
--- a/Interfaz.py
+++ b/Interfaz.py
@@ -26,6 +26,8 @@ from pygame.locals import *
gc.enable()
+from gettext import gettext as _
+
import BiblioJAM
from BiblioJAM.JAMButton import JAMButton
from BiblioJAM.JAMLabel import JAMLabel
@@ -50,36 +52,36 @@ class Interfaz(pygame.sprite.OrderedUpdates):
self.boton_jarra.set_posicion(punto=(x,y))
y += self.boton_jarra.get_tamanio()[1] + separador*2
- self.boton_ciclo= JAMButton("Ciclo Vital", None)
+ self.boton_ciclo= JAMButton(_("Vital Cycle"), None)
self.boton_ciclo.set_text(tamanio= 20)
self.boton_ciclo.set_tamanios(tamanio= (ancho_botones, 50))
self.boton_ciclo.set_posicion(punto=(x,y))
y += self.boton_ciclo.get_tamanio()[1] + separador
- self.boton_muda= JAMButton("Muda", None)
+ self.boton_muda= JAMButton(_("Switches"), None)
self.boton_muda.set_text(tamanio= 20)
self.boton_muda.set_tamanios(tamanio= (ancho_botones, 50))
self.boton_muda.set_posicion(punto=(x,y))
y += self.boton_muda.get_tamanio()[1] + separador
- self.boton_reproduccion= JAMButton("Reproducción", None)
+ self.boton_reproduccion= JAMButton(_("Reproduction"), None)
self.boton_reproduccion.set_text(tamanio= 20)
self.boton_reproduccion.set_tamanios(tamanio= (ancho_botones, 50))
self.boton_reproduccion.set_posicion(punto=(x,y))
y += self.boton_reproduccion.get_tamanio()[1] + separador
- self.boton_muerte= JAMButton("Muerte", None)
+ self.boton_muerte= JAMButton(_("Death"), None)
self.boton_muerte.set_text(tamanio= 20)
self.boton_muerte.set_tamanios(tamanio= (ancho_botones, 50))
self.boton_muerte.set_posicion(punto=(x,y))
y += self.boton_reproduccion.get_tamanio()[1] + separador
- self.boton_plaga= JAMButton("Plaga", None)
+ self.boton_plaga= JAMButton(_("Plague"), None)
self.boton_plaga.set_text(tamanio= 20)
self.boton_plaga.set_tamanios(tamanio= (ancho_botones, 50))
self.boton_plaga.set_posicion(punto=(x,y))
- self.boton_salir= JAMButton("Salir", None)
+ self.boton_salir= JAMButton(_("Leave"), None)
self.boton_salir.set_text(tamanio= 20)
self.boton_salir.set_tamanios(tamanio= (ancho_botones, 50))
y = VG.RESOLUCION[1] - separador - self.boton_salir.get_tamanio()[1]
@@ -93,7 +95,7 @@ class Interfaz(pygame.sprite.OrderedUpdates):
self.boton_musica.set_posicion(punto=(x,y))
self.posicion_boton_audio = (x,y)
- self.boton_extras= JAMButton("Lectura", None)
+ self.boton_extras= JAMButton(_("Reading"), None)
self.boton_extras.set_text(tamanio= 20)
self.boton_extras.set_tamanios(tamanio= (ancho_botones, 50))
y -= separador + self.boton_extras.get_tamanio()[1]
@@ -133,14 +135,14 @@ class Interfaz(pygame.sprite.OrderedUpdates):
self.label_agua.set_posicion( (x+w+10, y) )
self.add(self.label_agua)
- self.label_tiempo= JAMLabel("Tiempo de Juego = Años: 0 Dias: 0 Horas: 0")
+ self.label_tiempo= JAMLabel(_("Playtime = Years: 0 Days: 0 Hours: 0"))
self.label_tiempo.set_text(tamanio= 25)
x, y= self.label_agua.get_posicion()
w, h= self.label_agua.get_tamanio()
self.label_tiempo.set_posicion( (x+w+10, y) )
self.add(self.label_tiempo)
- self.informacion_cucas = "Cucarachas: 0, Machos: 0, Hembras: 0, Ootecas: 0, Migración: 0"
+ self.informacion_cucas = _("Cockroaches: 0, Males: 0, Females: 0, Ootecas: 0, Migration: 0")
self.label_cucas_info= JAMLabel(self.informacion_cucas)
self.label_cucas_info.set_text(tamanio= 25)
x, y= (10, VG.RESOLUCION[1] - 10 - self.label_cucas_info.get_tamanio()[1])