1 --- childsplay-1.5.1/SPCoreButtons.py~ 2010-05-20 07:44:00.000000000 +0200
2 +++ childsplay-1.5.1/SPCoreButtons.py 2010-06-12 20:24:50.405518129 +0200
5 module_logger = logging.getLogger("schoolsplay.SPCoreButtons")
8 +import os, glob, gettext
10 import childsplay_sp.ocempgui.widgets as ocw
11 import childsplay_sp.ocempgui.widgets.Constants as ocwc
13 from SPConstants import *
15 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
16 +gettext.textdomain('childsplay_sp')
19 class MainCoreButtons:
20 """Object that provides the buttons used by the core in the main menu bar.
21 Th buttons has to be added to a renderer.
22 --- childsplay-1.5.1/SPHelpText.py~ 2010-05-20 07:44:00.000000000 +0200
23 +++ childsplay-1.5.1/SPHelpText.py 2010-06-12 20:31:51.918808440 +0200
25 # For example, to get the text for the GUI SPCheckPass Login frame:
26 # ht = SPHelpText.SPCheckPass.Login
29 from SPConstants import HOMEDIR
31 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
32 +gettext.textdomain('childsplay_sp')
35 class SPCheckPass(object):
37 "If you start the GUI for the first time there's no\
38 --- childsplay-1.5.1/SPMainCore.py~ 2010-05-20 07:44:00.000000000 +0200
39 +++ childsplay-1.5.1/SPMainCore.py 2010-06-12 20:34:59.541706240 +0200
45 from pygame.constants import *
46 ## set a bigger buffer, seems that on win XP in conjuction with certain hardware
47 ## the playback of sound is scrambled with the "normal" 1024 buffer.
49 from SPVirtualkeyboard import VirtualKeyboard
50 from sqlalchemy import exceptions as sqla_exceptions
52 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
53 +gettext.textdomain('childsplay_sp')
56 # Used to cleanup stuff when the Python vm ends
58 module_logger.info("cleanup called.")
59 --- childsplay-1.5.1/SPMenu.py~ 2010-05-20 07:44:00.000000000 +0200
60 +++ childsplay-1.5.1/SPMenu.py 2010-06-12 20:36:50.618778478 +0200
66 from xml.dom import minidom
67 module_logger = logging.getLogger("schoolsplay.SPMenu")
70 from SPocwWidgets import ToolTip
71 from SPHelpText import ToolTipText
73 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
74 +gettext.textdomain('childsplay_sp')
78 """ This provides the activity menu internally used by MainCore.
80 --- childsplay-1.5.1/SPgdm.py~ 2010-05-20 07:44:00.000000000 +0200
81 +++ childsplay-1.5.1/SPgdm.py 2010-06-12 20:37:59.908354818 +0200
87 module_logger = logging.getLogger("schoolsplay.SPgdm")
89 from SPConstants import *
94 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
95 +gettext.textdomain('childsplay_sp')
98 # Load the ocempgui theme.
99 # TODO" make ocw theme configurable
100 # TODO: this is not working
101 --- childsplay-1.5.1/SPocwWidgets.py~ 2010-05-20 07:44:00.000000000 +0200
102 +++ childsplay-1.5.1/SPocwWidgets.py 2010-06-12 20:39:16.485430547 +0200
108 from SPConstants import *
109 from SPSpriteUtils import SPSprite
110 from childsplay_sp import pangofont as PFont
113 from SPConstants import CORE_BUTTONS_XCOORDS as CBXC
115 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
116 +gettext.textdomain('childsplay_sp')
119 class SPEntry(SPSprite):
120 """Entry widget which is RTL aware and uses Pango.
121 This widget reacts only to two key events, backspace and enter.
122 --- childsplay-1.5.1/gui/AdminGui.py~ 2010-05-20 07:44:04.000000000 +0200
123 +++ childsplay-1.5.1/gui/AdminGui.py 2010-06-12 20:41:01.758753056 +0200
126 """Simple GUI to set mu and sigma values in the activity_options table."""
128 -import sys,os,atexit
129 +import sys,os,atexit,gettext
131 # Enable special streams redirection useful on win32 when run from an exe
132 # because on win32 the output and error streams are send into a black hole.
135 import childsplay_sp.SPHelpText as SPHelpText
137 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
138 +gettext.textdomain('childsplay_sp')
142 # remove any locks that been set
144 --- childsplay-1.5.1/lib/billiard.py~ 2010-05-20 07:44:00.000000000 +0200
145 +++ childsplay-1.5.1/lib/billiard.py 2010-06-12 20:43:15.658740902 +0200
147 module_logger = logging.getLogger("schoolsplay.billiard")
149 # standard modules you probably need
150 -import os,sys,operator,random
151 +import os,sys,operator,random,gettext
152 from math import sqrt,acos
156 from childsplay_sp.SPConstants import *
157 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
159 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
160 +gettext.textdomain('childsplay_sp')
163 # containers that can be used globally to store stuff
166 --- childsplay-1.5.1/lib/fallingletters.py~ 2010-05-20 07:44:00.000000000 +0200
167 +++ childsplay-1.5.1/lib/fallingletters.py 2010-06-12 20:45:21.221644430 +0200
169 # See SP manual for more info
171 # standard modules you probably need
172 -import os,sys,random,string
173 +import os,sys,random,string,gettext
176 from pygame.constants import *
179 from childsplay_sp.SPocwWidgets import ExeCounter
181 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
182 +gettext.textdomain('childsplay_sp')
185 # containers that can be used globally to store stuff
188 --- childsplay-1.5.1/lib/find_char_sound.py~ 2010-05-20 07:44:00.000000000 +0200
189 +++ childsplay-1.5.1/lib/find_char_sound.py 2010-06-12 20:46:26.094972106 +0200
191 module_logger = logging.getLogger("schoolsplay.CP_find_char_sound")
193 # standard modules you probably need
194 -import os,sys,random,glob,string
195 +import os,sys,random,glob,string,gettext
198 from pygame.constants import *
200 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
201 import childsplay_sp.Timer as Timer
202 from childsplay_sp import SPHelpText
204 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
205 +gettext.textdomain('childsplay_sp')
208 # containers that can be used globally to store stuff
210 --- childsplay-1.5.1/lib/fishtank.py~ 2010-05-20 07:44:01.000000000 +0200
211 +++ childsplay-1.5.1/lib/fishtank.py 2010-06-12 20:48:16.922046788 +0200
215 from pygame.constants import *
218 import childsplay_sp.utils as utils
219 import childsplay_sp.Timer as Timer
220 from childsplay_sp.SPConstants import *
221 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
223 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
224 +gettext.textdomain('childsplay_sp')
227 # containers that can be used globally to store stuff
229 # fish_clear_total is used as a counter.
230 --- childsplay-1.5.1/lib/memorynumbers.py~ 2010-05-20 07:44:00.000000000 +0200
231 +++ childsplay-1.5.1/lib/memorynumbers.py 2010-06-12 20:49:34.821619288 +0200
235 from pygame.constants import *
238 import childsplay_sp.utils as utils
239 from childsplay_sp.SPConstants import *
240 from childsplay_sp.SPSpriteUtils import SPInit, SPSprite,MySprite
242 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
243 +gettext.textdomain('childsplay_sp')
246 # containers that can be used globally to store stuff
249 --- childsplay-1.5.1/lib/soundmemory.py~ 2010-05-20 07:44:00.000000000 +0200
250 +++ childsplay-1.5.1/lib/soundmemory.py 2010-06-12 20:50:59.958693970 +0200
252 module_logger = logging.getLogger("schoolsplay.soundmemory")
254 # standard modules you probably need
255 -import os,sys,random,glob
256 +import os,sys,random,glob,gettext
259 from pygame.constants import *
261 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
262 from childsplay_sp import SPHelpText
264 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
265 +gettext.textdomain('childsplay_sp')
268 # containers that can be used globally to store stuff
271 --- childsplay-1.5.1/lib/memorylower.py~ 2010-05-20 07:44:01.000000000 +0200
272 +++ childsplay-1.5.1/lib/memorylower.py 2010-06-12 20:52:01.268687474 +0200
275 module_logger = logging.getLogger("schoolsplay.memorylower")
277 -import os,sys,glob,random,copy
278 +import os,sys,glob,random,copy,gettext
281 from pygame.constants import *
283 from childsplay_sp.SPConstants import *
284 from childsplay_sp.SPSpriteUtils import SPInit, SPSprite,MySprite
286 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
287 +gettext.textdomain('childsplay_sp')
290 if utils.get_locale()[0][:2] in SUPPORTEDKEYMAPS:
291 LANG = utils.get_locale()[0][:2]
293 --- childsplay-1.5.1/lib/memoryupper.py~ 2010-05-20 07:44:00.000000000 +0200
294 +++ childsplay-1.5.1/lib/memoryupper.py 2010-06-12 20:52:45.681599662 +0200
297 module_logger = logging.getLogger("schoolsplay.memoryupper")
299 -import os,sys,glob,random,copy
300 +import os,sys,glob,random,copy,gettext
303 from pygame.constants import *
305 from childsplay_sp.SPConstants import *
306 from childsplay_sp.SPSpriteUtils import SPInit, SPSprite,MySprite
308 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
309 +gettext.textdomain('childsplay_sp')
312 if utils.get_locale()[0][:2] in SUPPORTEDKEYMAPS:
313 LANG = utils.get_locale()[0][:2]
315 --- childsplay-1.5.1/lib/puzzle.py~ 2010-05-20 07:44:03.000000000 +0200
316 +++ childsplay-1.5.1/lib/puzzle.py 2010-06-12 20:53:38.341594564 +0200
318 module_logger = logging.getLogger("schoolsplay.puzzle")
320 # standard modules you probably need
321 -import os,sys,random,glob
322 +import os,sys,random,glob,gettext
325 from pygame.constants import *
327 from childsplay_sp.SPConstants import *
328 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
330 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
331 +gettext.textdomain('childsplay_sp')
334 ########################################
335 # Constats definition
336 ########################################
337 --- childsplay-1.5.1/lib/findsound.py~ 2010-05-20 07:44:01.000000000 +0200
338 +++ childsplay-1.5.1/lib/findsound.py 2010-06-12 20:55:13.071585903 +0200
340 module_logger = logging.getLogger("schoolsplay.findsound")
342 # standard modules you probably need
343 -import os,sys,glob,random
344 +import os,sys,glob,random,gettext
347 from pygame.constants import *
349 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
350 from childsplay_sp import SPHelpText
352 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
353 +gettext.textdomain('childsplay_sp')
356 # containers that can be used globally to store stuff
359 --- childsplay-1.5.1/lib/flashcards.py~ 2010-05-20 07:44:03.000000000 +0200
360 +++ childsplay-1.5.1/lib/flashcards.py 2010-06-12 20:56:19.224913021 +0200
363 # standard modules you probably need
365 -import random,logging,types
366 +import random,logging,types,gettext
369 from pygame.constants import *
371 from childsplay_sp import Timer
372 from childsplay_sp.SPSpriteUtils import SPButton as Button
374 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
375 +gettext.textdomain('childsplay_sp')
379 # The locales we support, it's used to switch to English if we run
380 # in a non supported locale.
381 --- childsplay-1.5.1/lib/packid.py~ 2010-05-20 07:44:01.000000000 +0200
382 +++ childsplay-1.5.1/lib/packid.py 2010-06-12 20:57:28.421572004 +0200
384 module_logger = logging.getLogger("schoolsplay.packid")
386 # standard modules you probably need
387 -import os,random,operator,string,sys
388 +import os,random,operator,string,sys,gettext
391 from pygame.constants import *
393 from childsplay_sp.utils import load_image,load_sound,load_music,MyError,\
394 font2surf,MazeGen,get_files,read_unicode_file,\
395 ascii2hex, char2surf, speak_letter
397 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
398 +gettext.textdomain('childsplay_sp')
402 #matrix = ((0,0,0,0,0),\
403 --- childsplay-1.5.1/lib/pong.py~ 2010-05-20 07:44:01.000000000 +0200
404 +++ childsplay-1.5.1/lib/pong.py 2010-06-12 20:58:11.931984070 +0200
406 module_logger = logging.getLogger("schoolsplay.pong")
408 # standard modules you probably need
409 -import os,sys,random
410 +import os,sys,random,gettext
413 from pygame.constants import *
415 from childsplay_sp.SPConstants import *
416 import childsplay_sp.SPSpriteUtils as SPSpriteUtils
418 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
419 +gettext.textdomain('childsplay_sp')
422 # containers that can be used globally to store stuff
425 --- childsplay-1.5.1/lib/memory.py~ 2010-05-20 07:44:00.000000000 +0200
426 +++ childsplay-1.5.1/lib/memory.py 2010-06-12 20:59:24.574893464 +0200
429 module_logger = logging.getLogger("schoolsplay.memory")
431 -import os,sys,glob,random,copy
432 +import os,sys,glob,random,copy,gettext
435 from pygame.constants import *
437 from childsplay_sp.SPConstants import *
438 from childsplay_sp.SPSpriteUtils import SPInit, SPSprite,MySprite
440 +gettext.bindtextdomain('childsplay_sp', '/usr/share/locale')
441 +gettext.textdomain('childsplay_sp')
444 # containers that can be used globally to store stuff