Changeset 108:3ebb3c906fd1 for src/mlx/gui
- Timestamp:
- 04/25/12 17:51:10 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r107 r108 78 78 label = gtk.Label(xstr("tab_flight")) 79 79 label.set_use_underline(True) 80 label.set_tooltip_text( "Flight wizard")80 label.set_tooltip_text(xstr("tab_flight_tooltip")) 81 81 self._notebook.append_page(self._wizard, label) 82 82 … … 84 84 label = gtk.Label(xstr("tab_flight_info")) 85 85 label.set_use_underline(True) 86 label.set_tooltip_text( "Flight information")86 label.set_tooltip_text(xstr("tab_flight_info_tooltip")) 87 87 self._notebook.append_page(self._flightInfo, label) 88 88 self._flightInfo.disable() … … 91 91 label = gtk.Label(xstr("tab_log")) 92 92 label.set_use_underline(True) 93 label.set_tooltip_text( "The log of your flight that will be sent to the MAVA website")93 label.set_tooltip_text(xstr("tab_log_tooltip")) 94 94 self._notebook.append_page(logWidget, label) 95 95 … … 294 294 dialog = gtk.MessageDialog(parent = self._mainWindow, 295 295 type = MESSAGETYPE_ERROR, 296 message_format = 297 "Cannot connect to the simulator.")296 message_format = xstr("conn_failed")) 297 298 298 dialog.set_title(WINDOW_TITLE_BASE) 299 dialog.format_secondary_markup("Rectify the situation, and press <b>Try again</b> " 300 "to try the connection again, " 301 "or <b>Cancel</b> to cancel the flight.") 302 303 dialog.add_button("_Cancel", 0) 304 dialog.add_button("_Try again", 1) 299 dialog.format_secondary_markup(xstr("conn_failed_sec")) 300 301 dialog.add_button(xstr("button_cancel"), 0) 302 dialog.add_button(xstr("button_tryagain"), 1) 305 303 dialog.set_default_response(1) 306 304 … … 325 323 326 324 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 327 message_format = 328 "The connection to the simulator failed unexpectedly.", 325 message_format = xstr("conn_broken"), 329 326 parent = self._mainWindow) 330 327 dialog.set_title(WINDOW_TITLE_BASE) 331 dialog.format_secondary_markup("If the simulator has crashed, restart it " 332 "and restore your flight as much as possible " 333 "to the state it was in before the crash. " 334 "Then press <b>Reconnect</b> to reconnect.\n\n" 335 "If you want to cancel the flight, press <b>Cancel</b>.") 336 337 dialog.add_button("_Cancel", 0) 338 dialog.add_button("_Reconnect", 1) 328 dialog.format_secondary_markup(xstr("conn_broken_sec")) 329 330 dialog.add_button(xstr("button_cancel"), 0) 331 dialog.add_button(xstr("button_reconnect"), 1) 339 332 dialog.set_default_response(1) 340 333 … … 342 335 dialog.hide() 343 336 if result == 1: 344 self.beginBusy( "Connecting to the simulator.")337 self.beginBusy(xstr("connect_busy")) 345 338 self._reconnecting = True 346 339 self._simulator.reconnect()
Note:
See TracChangeset
for help on using the changeset viewer.