diff options
author | Reinier Heeres <reinier@heeres.eu> | 2007-09-24 07:24:09 (GMT) |
---|---|---|
committer | Reinier Heeres <reinier@heeres.eu> | 2007-09-24 07:24:09 (GMT) |
commit | c5517f796f43ff7dfaaaf31acff36ab8f953967a (patch) | |
tree | 9d4df56a7e51e67af3dc7f5cec57498672cde45f /layout.py | |
parent | 3491db3b24d9542f0c214b434729b753bd0565a4 (diff) |
eqnparserhelp.py included, basic i18n support
Diffstat (limited to 'layout.py')
-rw-r--r-- | layout.py | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -6,11 +6,6 @@ pygtk.require('2.0') import gtk import pango from sugar.activity import activity -try: - from sugar.graphics import font -except: - #Not important, don't do anythig - pass from toolbars import * class CalcLayout: @@ -117,9 +112,9 @@ class CalcLayout: # Right part: container and equation button hc2 = gtk.HBox() - self.minebut = TextToggleToolButton(['All equations', 'My equations'], + self.minebut = TextToggleToolButton([_('All equations'), _('My equations')], lambda x: self._parent.refresh_bar()) - self.varbut = TextToggleToolButton(['Show history ', 'Show variables'], + self.varbut = TextToggleToolButton([_('Show history'), _('Show variables')], lambda x: self._parent.refresh_bar()) hc2.add(self.minebut) hc2.add(self.varbut) @@ -155,7 +150,7 @@ class CalcLayout: self._parent.show_all() def create_button(self, cap, cb, fgcol, bgcol, width): - button = gtk.Button(cap) + button = gtk.Button(_(cap)) self.modify_button_appearance(button, fgcol, bgcol, width) button.connect("clicked", cb) button.connect("key_press_event", self._parent.ignore_key_cb) |