Changeset 110:97802dcf8cde for src
- Timestamp:
- 04/25/12 18:03:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 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() -
src/mlx/i18n.py
r108 r110 124 124 def initialize(self): 125 125 """Initialize the strings.""" 126 self.add("menu_file", "File") 127 self.add("menu_file_quit", "_Quit") 128 self.add("menu_file_quit_key", "q") 129 self.add("quit_question", "Are you sure to quit the logger?") 130 131 self.add("menu_view", "View") 132 self.add("menu_view_monitor", "Show _monitor window") 133 self.add("menu_view_monitor_key", "m") 134 self.add("menu_view_debug", "Show _debug log") 135 self.add("menu_view_debug_key", "d") 136 126 137 self.add("tab_flight", "_Flight") 127 138 self.add("tab_flight_tooltip", "Flight wizard") … … 132 143 "The log of your flight that will be sent to the MAVA website") 133 144 self.add("tab_debug_log", "_Debug log") 145 self.add("tab_debug_log_tooltip", "Log with debugging information.") 134 146 self.add("tab_help", "_Help") 135 147 self.add("tab_gates", "_Gates") … … 404 416 def initialize(self): 405 417 """Initialize the strings.""" 418 self.add("menu_file", "Fájl") 419 self.add("menu_file_quit", "_Kilépés") 420 self.add("menu_file_quit_key", "k") 421 self.add("quit_question", "Biztosan ki akarsz lépni?") 422 423 self.add("menu_view", "Nézet") 424 self.add("menu_view_monitor", "Mutasd a _monitor ablakot") 425 self.add("menu_view_monitor_key", "m") 426 self.add("menu_view_debug", "Mutasd a _debug naplót") 427 self.add("menu_view_debug_key", "d") 428 406 429 self.add("tab_flight", "_Járat") 407 430 self.add("tab_flight_tooltip", "Járat varázsló") … … 412 435 "A járat naplója, amit majd el lehet küldeni a MAVA szerverére") 413 436 self.add("tab_debug_log", "_Debug napló") 437 self.add("tab_debug_log_tooltip", 438 "Hibakereséshez használható információkat tartalmazó napló.") 414 439 self.add("tab_help", "_Segítség") 415 440 self.add("tab_gates", "_Kapuk")
Note:
See TracChangeset
for help on using the changeset viewer.