comparison gamelib/constants.py @ 782:6a3440c8be8d pyntnclick

The title needs to be lazily translated. It's evaluated before we set up gettext
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 19:13:07 +0200
parents 5fb962434159
children bdaffaa8b6bf
comparison
equal deleted inserted replaced
781:5fb962434159 782:6a3440c8be8d
1 from pyntnclick.constants import GameConstants 1 from pyntnclick.constants import GameConstants
2 from pyntnclick.i18n import _ 2
3 # Anything here has to be explicitly translated
4 # This module is imported before we've set up i18n
5 _ = lambda x: x
3 6
4 7
5 class SSConstants(GameConstants): 8 class SSConstants(GameConstants):
6 title = _('Suspended Sentence') 9 title = _('Suspended Sentence')
7 icon = 'suspended_sentence24x24.png' 10 icon = 'suspended_sentence24x24.png'