Changeset 114:30060f58ad79 for src/mlx
- Timestamp:
- 04/27/12 18:04:43 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/statusicon.py
r77 r114 6 6 7 7 import mlx.const as const 8 from mlx.i18n import xstr 8 9 9 10 #------------------------------------------------------------------------------- … … 34 35 35 36 self._showHideMenuItem = gtk.CheckMenuItem() 36 self._showHideMenuItem.set_label( "Show main window")37 self._showHideMenuItem.set_label(xstr("statusicon_showmain")) 37 38 self._showHideMenuItem.set_active(True) 38 39 self._showHideMenuItem.connect("toggled", self._showHideToggled) … … 41 42 42 43 self._showMonitorMenuItem = gtk.CheckMenuItem() 43 self._showMonitorMenuItem.set_label( "Show monitor window")44 self._showMonitorMenuItem.set_label(xstr("statusicon_showmonitor")) 44 45 self._showMonitorMenuItem.set_active(False) 45 46 self._showMonitorMenuItem.connect("toggled", self._showMonitorToggled) … … 52 53 53 54 self._quitMenuItem = gtk.MenuItem() 54 self._quitMenuItem.set_label( "Quit")55 self._quitMenuItem.set_label(xstr("statusicon_quit")) 55 56 self._quitMenuItem.show() 56 57 self._quitMenuItem.connect("activate", self._gui._quit) … … 142 143 def _updateFlightStatus(self): 143 144 """Update the flight status.""" 144 stage = "-" if self._stage is None else const.stage2string(self._stage) 145 stage = "-" if self._stage is None \ 146 else xstr("flight_stage_" + const.stage2string(self._stage)) 145 147 146 148 if self._noGoReason is None: … … 150 152 151 153 if appIndicator: 152 self._stageMenuItem.set_label("Stage: %s" % (stage,)) 153 self._ratingMenuItem.set_label("Rating: %s" % (rating,)) 154 self._stageMenuItem.set_label("%s %s" % (xstr("statusicon_stage"), stage)) 155 self._ratingMenuItem.set_label("%s: %s" % 156 (xstr("statusicon_rating"), rating)) 154 157 else: 155 158 if self._noGoReason is not None: 156 159 rating = '<span foreground="red">' + rating + '</span>' 157 markup = "MAVA Logger X %s\n\nStage: %s\nRating: %s" %\ 158 (const.VERSION, stage, rating) 160 markup = "MAVA Logger X %s\n\n%s: %s\n%s: %s" %\ 161 (const.VERSION, xstr("statusicon_stage"), stage, 162 xstr("statusicon_rating"), rating) 159 163 self._statusIcon.set_tooltip_markup(markup) -
src/mlx/i18n.py
r112 r114 447 447 self.add("flight_stage_go-around", "go-around") 448 448 self.add("flight_stage_end", "end") 449 450 self.add("statusicon_showmain", "Show main window") 451 self.add("statusicon_showmonitor", "Show monitor window") 452 self.add("statusicon_quit", "Quit") 453 self.add("statusicon_stage", "Stage:") 454 self.add("statusicon_rating", "Rating:") 449 455 450 456 #------------------------------------------------------------------------------ … … 786 792 self.add("flight_stage_go-around", u"átstartolás") 787 793 self.add("flight_stage_end", u"kész") 788 794 795 self.add("statusicon_showmain", "Mutasd a főablakot") 796 self.add("statusicon_showmonitor", "Mutasd a monitor ablakot") 797 self.add("statusicon_quit", "Kilépés") 798 self.add("statusicon_stage", "Fázis:") 799 self.add("statusicon_rating", "Pontszám:") 800 789 801 #------------------------------------------------------------------------------ 790 802
Note:
See TracChangeset
for help on using the changeset viewer.