diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2014-01-17 22:43:53 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2014-01-17 22:43:53 (GMT) |
commit | b4d653549fb07bec60bcc7c82478256e77471380 (patch) | |
tree | 6999c5aa913d8bd6332812959cd0f0ee8f3a0c96 | |
parent | adc044a36a0e90759bee58f22a6ff3bbc46b856e (diff) |
fix strings encode
-rwxr-xr-x | conozcouy.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/conozcouy.py b/conozcouy.py index d48d6a4..1461f69 100755 --- a/conozcouy.py +++ b/conozcouy.py @@ -593,42 +593,41 @@ class ConozcoUy(): (self.anchoPantalla,self.altoPantalla)) self.pantallaTemp.blit(self.pantalla,(0,0)) self.pantalla.fill((0,0,0)) - self.pantalla.blit(self.bicho, (int(925*scale+shift_x), int(468*scale+shift_y))) - self.mostrarTexto(_("Stats of %s") % self.activity_name, + msg = _("Stats of %s") % self.activity_name + self.mostrarTexto(msg, self.fuente40, (int(600*scale+shift_x), int(100*scale+shift_y)), (255,255,255)) - msg = _('Total score: %s') % self._score - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(300*scale+shift_y)), (100,100,200)) msg = _('Game average score: %s') % self._average - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(350*scale+shift_y)), (100,100,200)) msg = _('Times using Explore Mode: %s') % self._explore_times - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(400*scale+shift_y)), (100,100,200)) msg = _('Places Explored: %s') % self._explore_places - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(450*scale+shift_y)), (100,100,200)) msg = _('Times using Game Mode: %s') % self._game_times - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(500*scale+shift_y)), @@ -636,7 +635,7 @@ class ConozcoUy(): t = int(time.time() - self._init_time) / 60 t = t + self._time msg = _('Total time: %s minutes') % t - self.mostrarTexto(msg, + self.mostrarTexto(unicode(msg, 'UTF-8'), self.fuente32, (int(400*scale+shift_x), int(550*scale+shift_y)), @@ -665,6 +664,7 @@ class ConozcoUy(): elif event.type == EVENTOREFRESCO: pygame.display.flip() + def pantallaInicial(self): """Pantalla con el menu principal del juego""" global scale, shift_x, shift_y @@ -724,7 +724,7 @@ class ConozcoUy(): self.pantalla.fill((20,20,20), (int(420*scale+shift_x),int(801*scale+shift_y), int(370*scale),int(48*scale))) - self.mostrarTexto(_("Stats"), + self.mostrarTexto(unicode(_("Stats"), "UTF-8"), self.fuente40, (int(605*scale+shift_x),int(825*scale+shift_y)), (100,200,100)) @@ -885,7 +885,7 @@ class ConozcoUy(): self.pantalla.fill((20,20,20), (int(420*scale+shift_x),int(801*scale+shift_y), int(370*scale),int(48*scale))) - self.mostrarTexto(_("Stats"), + self.mostrarTexto(unicode(_("Stats"), "UTF-8"), self.fuente40, (int(605*scale+shift_x),int(825*scale+shift_y)), (100,200,100)) |