From da043fee1e25a0a0366a6b709d7c8a1d6d9fd45c Mon Sep 17 00:00:00 2001 From: Aneesh Dogra Date: Thu, 29 Nov 2012 17:12:24 +0000 Subject: Add i18n strings. --- diff --git a/conozcoel.py b/conozcoel.py index aa26e64..812a411 100755 --- a/conozcoel.py +++ b/conozcoel.py @@ -29,6 +29,7 @@ import os import pygame import olpcgames import gtk +from gettext import gettext as _ # constantes XMAPAMAX = 810 @@ -341,12 +342,12 @@ class ConozcoEl(): """Pantalla con el menu principal del juego""" global scale, shift_x, shift_y self.pantalla.fill((0,0,0)) - self.mostrarTexto("CONOZCO ELEMENTOS QUIMICOS", + self.mostrarTexto(_("I know Chemical Elements"), self.fuente48, (int(600*scale+shift_x), int(80*scale+shift_y)), (255,255,255)) - self.mostrarTexto("Juego", + self.mostrarTexto(_("Game"), self.fuente48, (int(300*scale+shift_x), int(220*scale+shift_y)), (200,100,100)) @@ -366,7 +367,7 @@ class ConozcoEl(): (int(10*scale+shift_x), int(801*scale+shift_y), int(590*scale),int(48*scale))) - self.mostrarTexto("Informacion", + self.mostrarTexto(_("Information"), self.fuente40, (int(300*scale+shift_x),int(825*scale+shift_y)), (100,200,100)) @@ -374,7 +375,7 @@ class ConozcoEl(): (int(610*scale+shift_x), int(801*scale+shift_y), int(590*scale),int(48*scale))) - self.mostrarTexto("Salir", + self.mostrarTexto(_("Leave"), self.fuente40, (int(900*scale+shift_x),int(825*scale+shift_y)), (100,200,100)) -- cgit v0.9.1