Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2007-12-11 22:58:55 (GMT)
committer C. Scott Ananian <cscott@laptop.org>2007-12-11 22:58:55 (GMT)
commit9ba53c23b6af9c07cbe7c5e6bb8a5904bb81cb08 (patch)
tree09e657e78260cbe19d8d9d7a3094c937f6e08af2 /data
parentf5ce4173f9a23861b134db2ea7c044714a8450c6 (diff)
Localize the 'bouncing hello' example.
Diffstat (limited to 'data')
-rw-r--r--data/graphics/bounce3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/graphics/bounce b/data/graphics/bounce
index d0bcd3c..ce356cf 100644
--- a/data/graphics/bounce
+++ b/data/graphics/bounce
@@ -3,6 +3,7 @@
import pippy, pygame, sys
from pygame.locals import *
from random import *
+from gettext import gettext as _
# always need to init first thing
pygame.init()
@@ -23,7 +24,7 @@ mvect = [3,2]
# for drawing into
screen = pygame.display.set_mode(size)
-msg = "Hello!"
+msg = _("Hello!")
# create a Font object from a file, or use the default
# font if the file name is None. size param is height