diff gamelib/scenes/scene_widgets.py @ 478:a9925aaf5f61 1.0.1

i18n and Russian translation
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 08 Mar 2011 12:29:14 +0200
parents 54853e61b149
children
line wrap: on
line diff
--- a/gamelib/scenes/scene_widgets.py	Sun Aug 29 12:33:21 2010 +0200
+++ b/gamelib/scenes/scene_widgets.py	Tue Mar 08 12:29:14 2011 +0200
@@ -12,6 +12,7 @@
 from gamelib.constants import DEBUG
 from gamelib.widgets import BoomLabel
 
+from gamelib.i18n import _
 
 class Interact(object):
 
@@ -168,7 +169,7 @@
         self.state.set_current_scene("map")
 
     def get_description(self):
-        return 'An open doorway leads to the rest of the ship.'
+        return _('An open doorway leads to the rest of the ship.')
 
     def interact_default(self, item):
         return self.interact_without()
@@ -191,11 +192,11 @@
     }
  
     def get_description(self):
-        return "A security camera watches over the room"
+        return _("A security camera watches over the room")
  
     def interact_with_escher_poster(self, item):
         # Order matters here, because of helper function
-        ai_response = make_jim_dialog("3D scene reconstruction failed. Critical error. Entering emergency shutdown.", self.state)
+        ai_response = make_jim_dialog(_("3D scene reconstruction failed. Critical error. Entering emergency shutdown."), self.state)
         self.state.scenes['bridge'].set_data('ai status', 'looping')
         return ai_response