Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bernabé <laurent.bernabe@gmail.com>2013-09-27 13:00:23 (GMT)
committer Laurent Bernabé <laurent.bernabe@gmail.com>2013-09-27 13:00:23 (GMT)
commit186f560050dabcea9d3022ca2f9b69ddd508cdd6 (patch)
tree5901ba58d7cd63142274d68cf12aac5b99e7a341
parentef76a36a1120dfd9433d1b5cd2f8337246dc178e (diff)
Added POT file
-rw-r--r--main_game.py11
-rw-r--r--po/HitTheBalls.pot42
2 files changed, 48 insertions, 5 deletions
diff --git a/main_game.py b/main_game.py
index 3dc9426..a2aa237 100644
--- a/main_game.py
+++ b/main_game.py
@@ -5,6 +5,7 @@ Created on Tue Sep 24 13:54:20 2013
@author: laurent-bernabe
"""
+from gettext import gettext as _
from gi.repository import Gtk
import pygame
from random import randint
@@ -158,7 +159,7 @@ class Game:
"""
# Shows loading screen
self._screen.fill(self._MENU_BACKGROUND)
- loading_txt = "Loading..."
+ loading_txt = _("Loading...")
loading_txt_surface = self._end_font.render(
loading_txt,
True,
@@ -175,7 +176,7 @@ class Game:
result_bar = ResultBar(self._game_font, txt_color=self._YELLOW,
bg_color=self._RED,
- header="Hit the ball(s) with result : ",
+ header=_("Hit the ball (or the balls) with result : "),
width=self._size[0])
RESULT_BAR_HEIGHT = result_bar.get_height()
@@ -244,9 +245,9 @@ class Game:
# Blinks the status text.
if show_status:
if game_state == GameState.WON:
- end_txt = "Success ! Click when you finished."
+ end_txt = _("Success ! Click when you finished.")
else:
- end_txt = "Failure ! Click when you finished."
+ end_txt = _("Failure ! Click when you finished.")
end_txt_surface = self._end_font.render(end_txt, True,
self._BLUE,
self._RED)
@@ -277,7 +278,7 @@ class Game:
pygame.draw.rect(
self._screen, self._MENU_LEVELS_RECTS_BG_COLOR,
box_value)
- txt = "Level " + str(box_index + 1)
+ txt = _("Level ") + str(box_index + 1)
txt_surface = self._menu_font.render(txt, True,
self._MENU_LEVELS_RECTS_TXT_COLOR)
self._screen.blit(txt_surface,
diff --git a/po/HitTheBalls.pot b/po/HitTheBalls.pot
new file mode 100644
index 0000000..d1515b7
--- /dev/null
+++ b/po/HitTheBalls.pot
@@ -0,0 +1,42 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-09-27 12:58+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: activity/activity.info:2
+msgid "HitTheBalls"
+msgstr ""
+
+#: main_game.py:162
+msgid "Loading..."
+msgstr ""
+
+#: main_game.py:179
+msgid "Hit the ball (or the balls) with result : "
+msgstr ""
+
+#: main_game.py:248
+msgid "Success ! Click when you finished."
+msgstr ""
+
+#: main_game.py:250
+msgid "Failure ! Click when you finished."
+msgstr ""
+
+#: main_game.py:281
+msgid "Level "
+msgstr ""