Changeset 563:90d7776ec939


Ignore:
Timestamp:
02/22/14 06:36:15 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added help text to be displayed if the arrival and/or departure times differ too much from the schedule (re #227)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locale/en/mlx.po

    r558 r563  
    931931msgstr ""
    932932"There are some statistics about your flight below.\n"
    933 "\n"
    934933"Review the data, also on earlier pages, and if you are\n"
    935934"satisfied, you can save or send your PIREP."
     935
     936msgid "finish_help_wrongtime"
     937msgstr ""
     938"<span foreground=\"red\">\n\nYour departure and/or arrival time differ too much from the scheduled time(s).\n"
     939"Please, provide a comment or a delay code to proceed.</span>"
    936940
    937941msgid "finish_rating"
  • locale/hu/mlx.po

    r558 r563  
    932932msgstr ""
    933933"Lent olvasható némi statisztika a járat teljesítéséről.\n"
    934 "\n"
    935934"Ellenőrízd az adatokat, az előző oldalakon is, és ha\n"
    936935"megfelelnek, elmentheted vagy elküldheted a PIREP-et."
     936
     937msgid "finish_help_wrongtime"
     938msgstr ""
     939"<span foreground=\"red\">\n\nAz érkezési és/vagy indulási idő jelentősen eltér a menetrendtől.\n"
     940"Kérlek, írj megjegyzést vagy adj meg késési kódot a PIREP elküldése előtt.</span>"
    937941
    938942msgid "finish_rating"
  • src/mlx/gui/flight.py

    r558 r563  
    210210        pass
    211211
     212    def setHelp(self, help):
     213        """Set the help string."""
     214        self._help = help
     215        if not self._completed:
     216            self._helpLabel.set_markup(self._help)
     217            self._helpLabel.set_sensitive(True)
     218
    212219    def complete(self):
    213220        """Called when the page is completed.
     
    28082815    def __init__(self, wizard):
    28092816        """Construct the finish page."""
    2810         super(FinishPage, self).__init__(wizard, xstr("finish_title"),
    2811                                          xstr("finish_help"))
     2817        help = xstr("finish_help") + xstr("finish_help_wrongtime")
     2818        super(FinishPage, self).__init__(wizard, xstr("finish_title"), help)
    28122819
    28132820        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    30613068
    30623069        self._tooBigTimeDifference = tooBigDeparture or tooBigArrival
     3070
     3071        if self._tooBigTimeDifference:
     3072            self.setHelp(xstr("finish_help") + xstr("finish_help_wrongtime"))
     3073        else:
     3074            self.setHelp(xstr("finish_help"))
    30633075
    30643076        self._arrTime.set_markup(markup)
     
    36893701
    36903702        self.setCurrentPage(firstPage)
     3703        #self.setCurrentPage(13)
    36913704
    36923705    def login(self, callback, pilotID, password, entranceExam):
Note: See TracChangeset for help on using the changeset viewer.