Changeset 592:1d9795bde55c
- Timestamp:
- 12/23/14 09:29:51 (10 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
locale/en/mlx.po
r590 r592 582 582 msgstr "Fuel" 583 583 584 msgid "fuel_help "584 msgid "fuel_help_pre" 585 585 msgstr "" 586 586 "Enter the amount of fuel in kilograms that need to be present " 587 "in each tank below.\n" 588 "\n" 587 "in each tank below." 588 589 msgid "fuel_help_min" 590 msgstr "" 591 " \n\n" 592 "The minimal amount of landing fuel of your aircraft is <b>%u kgs</b>." 593 594 msgid "fuel_help_min_rec" 595 msgstr "" 596 " \n\n" 597 "The minimal amount of landing fuel of your aircraft is <b>%u kgs</b>,\n" 598 "and it is recommended to land with %u kgs." 599 600 msgid "fuel_help_post" 601 msgstr "" 602 " \n\n" 589 603 "When you press <b>Next</b>, the necessary amount of fuel\n" 590 604 "will be pumped into or out of the tanks." -
locale/hu/mlx.po
r590 r592 585 585 msgstr "Üzemanyag" 586 586 587 msgid "fuel_help" 588 msgstr "" 589 "Írd be az egyes tartályokba szükséges üzemanyag mennyiségét kilogrammban.\n" 590 "\n" 587 msgid "fuel_help_pre" 588 msgstr "" 589 "Írd be az egyes tartályokba szükséges üzemanyag mennyiségét kilogrammban" 590 591 msgid "fuel_help_min" 592 msgstr "" 593 " \n\n" 594 "A repülőgép leszállási üzemanyagának minimális mennyisége: <b>%u kg</b>." 595 596 msgid "fuel_help_min_rec" 597 msgstr "" 598 " \n\n" 599 "A repülőgép leszállási üzemanyagának minimális mennyisége: <b>%u kg</b>,\n" 600 "és ajánlott %u kg üzemanyaggal földet érni." 601 602 msgid "fuel_help_post" 603 msgstr "" 604 " \n\n" 591 605 "Ha megnyomod az <b>Előre</b> gombot, a megadott mennyiségű\n" 592 606 "üzemanyag bekerül a tartályokba." -
src/mlx/acft.py
r591 r592 91 91 return _classes[flight.aircraftType](flight) 92 92 93 def __init__(self, flight, minLandingFuel = None): 93 def __init__(self, flight, minLandingFuel = None, 94 recommendedLandingFuel = None): 94 95 """Construct the aircraft for the given type.""" 95 96 self._flight = flight 96 97 self._minLandingFuel = minLandingFuel 98 self._recommendedLandingFuel = recommendedLandingFuel 97 99 98 100 self._name = None … … 211 213 """Get the flight the aircraft belongs to.""" 212 214 return self._flight 215 216 @property 217 def minLandingFuel(self): 218 """Get the minimum acceptable amount of the landing fuel.""" 219 return self._minLandingFuel 220 221 @property 222 def recommendedLandingFuel(self): 223 """Get the recommended amount of the landing fuel.""" 224 return self._recommendedLandingFuel 213 225 214 226 @property … … 639 651 - n1: left, right 640 652 - reverser: left, right""" 641 def __init__(self, flight, minLandingFuel = 2500): 642 super(Boeing737, self).__init__(flight, minLandingFuel = minLandingFuel) 653 def __init__(self, flight, minLandingFuel = 2500, 654 recommendedLandingFuel = 3500): 655 super(Boeing737, self).__init__(flight, 656 minLandingFuel = minLandingFuel, 657 recommendedLandingFuel = 658 recommendedLandingFuel) 643 659 644 660 self.gearSpeedLimit = 270 … … 703 719 """Base class for the various aircraft in the Boeing 737 Classic family.""" 704 720 def __init__(self, flight): 705 super(Boeing737CL, self).__init__(flight, minLandingFuel = 3500) 721 super(Boeing737CL, self).__init__(flight, minLandingFuel = 3500, 722 recommendedLandingFuel = None) 706 723 707 724 #--------------------------------------------------------------------------------------- -
src/mlx/gui/flight.py
r590 r592 1603 1603 """Construct the page.""" 1604 1604 super(FuelPage, self).__init__(wizard, xstr("fuel_title"), 1605 xstr("fuel_help"), 1605 xstr("fuel_help_pre") + 1606 xstr("fuel_help_post"), 1606 1607 completedHelp = xstr("fuel_chelp")) 1607 1608 … … 1625 1626 """Activate the page.""" 1626 1627 self._setupTanks(self._wizard._fuelData) 1628 1629 aircraft = self._wizard.gui.flight.aircraft 1630 minLandingFuel = aircraft.minLandingFuel 1631 recommendedLandingFuel = aircraft.recommendedLandingFuel 1632 1633 middleHelp = "" if minLandingFuel is None else \ 1634 (xstr("fuel_help_min") % (minLandingFuel,)) \ 1635 if recommendedLandingFuel is None else \ 1636 (xstr("fuel_help_min_rec") % (minLandingFuel, 1637 recommendedLandingFuel)) 1638 self.setHelp(xstr("fuel_help_pre") + middleHelp + xstr("fuel_help_post")) 1627 1639 1628 1640 def finalize(self):
Note:
See TracChangeset
for help on using the changeset viewer.