Changeset 584:d3f929e0eb3b
- Timestamp:
- 12/21/14 10:12:25 (10 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
locale/en/mlx.po
r564 r584 706 706 "provides different weather." 707 707 708 msgid "briefing_help_nometar" 709 msgstr "" 710 "Read carefully the NOTAMs below.\n" 711 "\n" 712 "<b>WARNING</b>: The METAR could not be downloaded.\n" 713 "Please, provide one." 714 708 715 msgid "briefing_chelp" 709 716 msgstr "" -
locale/hu/mlx.po
r564 r584 705 705 "a METAR-t módosíthatod." 706 706 707 msgid "briefing_help_nometar" 708 msgstr "" 709 "Olvasd el figyelmesen a lenti NOTAM-okat.\n" 710 "\n" 711 "<b>FIGYELEM</b>: A METAR-t nem sikerült letölteni.\n" 712 "Kérlek, gépeld be azt." 713 707 714 msgid "briefing_chelp" 708 715 msgstr "" -
src/mlx/gui/flight.py
r578 r584 2004 2004 buffer = self._metar.get_buffer() 2005 2005 if metar is None: 2006 buffer.set_text(xstr("briefing_metar_failed")) 2006 #buffer.set_text(xstr("briefing_metar_failed")) 2007 buffer.set_text("") 2008 self.setHelp(xstr("briefing_help_nometar")) 2007 2009 else: 2008 2010 buffer.set_text(metar) 2011 self._updateButton() 2009 2012 2010 2013 label = self._metarFrame.get_label_widget() … … 2033 2036 if not self._uppercasingMETAR: 2034 2037 self.metarEdited = True 2035 self._button.set_sensitive(buffer.get_text(buffer.get_start_iter(), 2036 buffer.get_end_iter(), 2037 True)!="") 2038 self._updateButton() 2038 2039 2039 2040 def _metarInserted(self, textBuffer, iter, text, length): … … 2051 2052 2052 2053 self._uppercasingMETAR = False 2054 2055 def _updateButton(self): 2056 """Update the sensitivity of the Next button based on the contents of 2057 the METAR field.""" 2058 buffer = self._metar.get_buffer() 2059 self._button.set_sensitive(buffer.get_text(buffer.get_start_iter(), 2060 buffer.get_end_iter(), 2061 True)!="") 2062 2053 2063 2054 2064 #-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.