Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-11-14 23:11:54 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-11-14 23:11:54 (GMT)
commit0976fe99bb530974161fd78d6ed0577e6dd1214b (patch)
tree0f4aa736342eca91592580bf2e8b70e5313b1728
parent3f8c11ec39d494228a119990ccfe6306fa3a29bf (diff)
translate congrants
-rw-r--r--data/images/fim_fase.pngbin75450 -> 69083 bytes
-rwxr-xr-xgambiarra.py8
-rw-r--r--levels.py3
-rwxr-xr-x[-rw-r--r--]setup.py0
4 files changed, 10 insertions, 1 deletions
diff --git a/data/images/fim_fase.png b/data/images/fim_fase.png
index 5b4e001..8023df9 100644
--- a/data/images/fim_fase.png
+++ b/data/images/fim_fase.png
Binary files differ
diff --git a/gambiarra.py b/gambiarra.py
index 6df486d..3e9dd9f 100755
--- a/gambiarra.py
+++ b/gambiarra.py
@@ -29,6 +29,8 @@ from command import Play, Help, Quit
from gamemenu import GameMenu
import levels as Levels
+from gettext import gettext as _
+
from objects import Esteira, check_collision
class Game():
@@ -65,10 +67,14 @@ class Game():
self.menu = GameMenu()
self.congrats = pygame.image.load(os.path.join("data","images",
"fim_fase.png"))
+ self._fuente = pygame.font.Font(None, 80)
+ msg = self._fuente.render(_('Congratulations'), 1, (0, 0, 0))
+ self.congrats.blit(msg, (80, 200))
if self.play_sounds:
pygame.mixer.init()
snd_file = os.path.join("data", "snd", "Congrats.wav")
self.congrats_snd = pygame.mixer.Sound(snd_file)
+
def run(self):
self.load_all()
@@ -161,6 +167,8 @@ class Game():
if self.play_sounds:
pygame.mixer.stop()
self.congrats_snd.play()
+
+
self.screen.blit(self.congrats, (600 - self.congrats.get_width()/2,
450 - self.congrats.get_height()/2) )
diff --git a/levels.py b/levels.py
index 77badae..c35d677 100644
--- a/levels.py
+++ b/levels.py
@@ -22,7 +22,8 @@
import gtk
import pygame
import os
-import simplejson as json
+#import simplejson as json
+import json
from objects import *
from command import Play, Help, Quit
diff --git a/setup.py b/setup.py
index bafa2c2..bafa2c2 100644..100755
--- a/setup.py
+++ b/setup.py