Ignore:
Timestamp:
04/24/12 19:02:56 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for internationalization and translated most of the flight wizard into Hungarian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r105 r107  
    1515import mlx.acft as acft
    1616import mlx.web as web
     17from  mlx.i18n import xstr
    1718
    1819import time
     
    7576
    7677        self._wizard = Wizard(self)
    77         label = gtk.Label("Fligh_t")
     78        label = gtk.Label(xstr("tab_flight"))
    7879        label.set_use_underline(True)
    7980        label.set_tooltip_text("Flight wizard")
     
    8182
    8283        self._flightInfo = FlightInfo(self)
    83         label = gtk.Label("Flight _info")
     84        label = gtk.Label(xstr("tab_flight_info"))
    8485        label.set_use_underline(True)
    8586        label.set_tooltip_text("Flight information")
     
    8889
    8990        (logWidget, self._logView)  = self._buildLogWidget()
    90         label = gtk.Label("_Log")
     91        label = gtk.Label(xstr("tab_log"))
    9192        label.set_use_underline(True)
    9293        label.set_tooltip_text("The log of your flight that will be sent to the MAVA website")
     
    307308        dialog.hide()
    308309        if result == 1:
    309             self.beginBusy("Connecting to the simulator.")
     310            self.beginBusy(xstr("connect_busy"))
    310311            self._simulator.reconnect()
    311312        else:
     
    569570        self._flight.simulator = self._simulator
    570571
    571         self.beginBusy("Connecting to the simulator...")
     572        self.beginBusy(xstr("connect_busy"))
    572573        self._statusbar.updateConnection(self._connecting, self._connected)
    573574
     
    635636        """Toggle the debug log."""
    636637        if menuItem.get_active():
    637             label = gtk.Label("_Debug log")
     638            label = gtk.Label(xstr("tab_debug_log"))
    638639            label.set_use_underline(True)
    639640            label.set_tooltip_text("Log with debugging information.")       
Note: See TracChangeset for help on using the changeset viewer.