From 9ba53c23b6af9c07cbe7c5e6bb8a5904bb81cb08 Mon Sep 17 00:00:00 2001 From: C. Scott Ananian Date: Tue, 11 Dec 2007 22:58:55 +0000 Subject: Localize the 'bouncing hello' example. --- (limited to 'data') 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 -- cgit v0.9.1