Changeset 110:97802dcf8cde for src/mlx/gui
- Timestamp:
- 04/25/12 18:03:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r108 r110 585 585 menuBar = gtk.MenuBar() 586 586 587 fileMenuItem = gtk.MenuItem( "File")587 fileMenuItem = gtk.MenuItem(xstr("menu_file")) 588 588 fileMenu = gtk.Menu() 589 589 fileMenuItem.set_submenu(fileMenu) … … 592 592 quitMenuItem = gtk.ImageMenuItem(gtk.STOCK_QUIT) 593 593 quitMenuItem.set_use_stock(True) 594 quitMenuItem.set_label(xstr("menu_file_quit")) 594 595 quitMenuItem.add_accelerator("activate", accelGroup, 595 ord( "q"), CONTROL_MASK,596 ACCEL_VISIBLE)596 ord(xstr("menu_file_quit_key")), 597 CONTROL_MASK, ACCEL_VISIBLE) 597 598 quitMenuItem.connect("activate", self._quit) 598 599 fileMenu.append(quitMenuItem) 599 600 600 601 601 viewMenuItem = gtk.MenuItem( "View")602 viewMenuItem = gtk.MenuItem(xstr("menu_view")) 602 603 viewMenu = gtk.Menu() 603 604 viewMenuItem.set_submenu(viewMenu) … … 605 606 606 607 self._showMonitorMenuItem = gtk.CheckMenuItem() 607 self._showMonitorMenuItem.set_label( "Show _monitor window")608 self._showMonitorMenuItem.set_label(xstr("menu_view_monitor")) 608 609 self._showMonitorMenuItem.set_use_underline(True) 609 610 self._showMonitorMenuItem.set_active(False) 610 611 self._showMonitorMenuItem.add_accelerator("activate", accelGroup, 611 ord( "m"), CONTROL_MASK,612 ACCEL_VISIBLE)612 ord(xstr("menu_view_monitor_key")), 613 CONTROL_MASK, ACCEL_VISIBLE) 613 614 self._showMonitorMenuItem.connect("toggled", self._toggleMonitorWindow) 614 615 viewMenu.append(self._showMonitorMenuItem) 615 616 616 617 showDebugMenuItem = gtk.CheckMenuItem() 617 showDebugMenuItem.set_label( "Show _debug log")618 showDebugMenuItem.set_label(xstr("menu_view_debug")) 618 619 showDebugMenuItem.set_use_underline(True) 619 620 showDebugMenuItem.set_active(False) 620 621 showDebugMenuItem.add_accelerator("activate", accelGroup, 621 ord( "d"), CONTROL_MASK,622 ACCEL_VISIBLE)622 ord(xstr("menu_view_debug_key")), 623 CONTROL_MASK, ACCEL_VISIBLE) 623 624 showDebugMenuItem.connect("toggled", self._toggleDebugLog) 624 625 viewMenu.append(showDebugMenuItem) … … 631 632 label = gtk.Label(xstr("tab_debug_log")) 632 633 label.set_use_underline(True) 633 label.set_tooltip_text( "Log with debugging information.")634 label.set_tooltip_text(xstr("tab_debug_log_tooltip")) 634 635 self._debugLogPage = self._notebook.append_page(self._debugLogWidget, label) 635 636 self._notebook.set_current_page(self._debugLogPage) … … 678 679 type = MESSAGETYPE_QUESTION, 679 680 buttons = BUTTONSTYPE_YES_NO, 680 message_format = 681 "Are you sure to quit the logger?") 681 message_format = xstr("quit_question")) 682 682 683 dialog.set_title(WINDOW_TITLE_BASE) 683 684 result = dialog.run()
Note:
See TracChangeset
for help on using the changeset viewer.