Mercurial > boomslang
diff gamelib/gamescreen.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 | c72946d3a59a |
children | 2f1952748cdb |
line wrap: on
line diff
--- a/gamelib/gamescreen.py Sun Aug 29 12:33:21 2010 +0200 +++ b/gamelib/gamescreen.py Tue Mar 08 12:29:14 2011 +0200 @@ -16,6 +16,7 @@ from widgets import (MessageDialog, BoomButton, HandButton, PopupMenu, PopupMenuButton) +from gamelib.i18n import _ class InventoryView(PaletteView): @@ -138,7 +139,7 @@ self.border_width = 5 self.border_color = (0, 0, 0) # parent only gets set when we get added to the scene - self.close = BoomButton('Close', self.close_but, screen) + self.close = BoomButton(_('Close'), self.close_but, screen) self.add(self.close) def close_but(self): @@ -210,7 +211,7 @@ self.add(self.state_widget) self.popup_menu = PopupMenu(self) - self.menubutton = PopupMenuButton('Menu', + self.menubutton = PopupMenuButton(_('Menu'), action=self.popup_menu.show_menu) self.handbutton = HandButton(action=self.hand_pressed)