Changeset 1144:a73548e0c689
- Timestamp:
- 04/21/24 14:20:42 (7 months ago)
- Branch:
- python3
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
locale/en/mlx.po
r1139 r1144 653 653 msgstr "Too many infants (maximum: %d)." 654 654 655 msgid "payload_flight_type" 656 msgstr "Flight type:" 657 655 658 msgid "payload_crew" 656 659 msgstr "C_rew:" … … 660 663 661 664 msgid "payload_crew_info" 662 msgstr "cockpit + cabin "665 msgstr "cockpit + cabin (%d kg)" 663 666 664 667 msgid "payload_pax" … … 675 678 676 679 msgid "payload_pax_info" 677 msgstr "adults + children + infants"680 msgstr "adults (%d kg) + children (%d kg) +\ninfants (%d kg)" 678 681 679 682 msgid "payload_bag" … … 1549 1552 "<b><span foreground=\"orange\">yellow</span></b>." 1550 1553 1554 msgid "weighthelp_flight_type" 1555 msgstr "Flight type:" 1556 1551 1557 msgid "weighthelp_crew" 1552 1558 msgstr "Crew (%s):" 1553 1559 1560 msgid "weighthelp_crew_info" 1561 msgstr "(DOW cabin crew: %s)" 1562 1554 1563 msgid "weighthelp_pax" 1555 1564 msgstr "Passengers (%s):" 1565 1566 msgid "weighthelp_pax_info" 1567 msgstr "(adult: %s kg, child: %s kg\ninfant: %s kg)" 1556 1568 1557 1569 msgid "weighthelp_baggage" -
locale/hu/mlx.po
r1139 r1144 657 657 msgstr "Túl sok csecsemő (legfeljebb %d lehet)." 658 658 659 msgid "payload_flight_type" 660 msgstr "Járattípus:" 661 659 662 msgid "payload_crew" 660 663 msgstr "_Legénység:" … … 664 667 665 668 msgid "payload_crew_info" 666 msgstr "pilóta + kabin "669 msgstr "pilóta + kabin (%d kg)" 667 670 668 671 msgid "payload_pax" … … 679 682 680 683 msgid "payload_pax_info" 681 msgstr "felnőtt + gyermek + csecsemő"684 msgstr "felnőtt (%d kg) + gyermek (%d kg) + csecsemő (%d kg)" 682 685 683 686 msgid "payload_bag" … … 1552 1555 "<b><span foreground=\"orange\">sárga</span></b> színben olvasható." 1553 1556 1557 msgid "weighthelp_flight_type" 1558 msgstr "Járattípus:" 1559 1554 1560 msgid "weighthelp_crew" 1555 1561 msgstr "Legénység (%s):" 1556 1562 1563 msgid "weighthelp_crew_info" 1564 msgstr "(DOW kabin személyzet: %s fő)" 1565 1557 1566 msgid "weighthelp_pax" 1558 1567 msgstr "Utasok (%s):" 1568 1569 msgid "weighthelp_pax_info" 1570 msgstr "(felnőtt: %s kg, gyermek: %s kg\ncsecsemő: %s kg)" 1559 1571 1560 1572 msgid "weighthelp_baggage" -
src/mlx/gui/flight.py
r1143 r1144 2427 2427 xscale = 0.0, yscale = 0.0) 2428 2428 2429 table = Gtk.Table( 7, 3)2429 table = Gtk.Table(8, 3) 2430 2430 table.set_row_spacings(4) 2431 2431 table.set_col_spacings(16) … … 2436 2436 row = 0 2437 2437 2438 label = Gtk.Label(xstr("payload_flight_type")) 2439 label.set_alignment(0.0, 0.5) 2440 table.attach(label, 0, 1, row, row+1) 2441 2442 self._flightType = label = Gtk.Label(xstr("flighttype_scheduled")) 2443 label.set_alignment(1.0, 0.5) 2444 table.attach(label, 1, 2, row, row + 1) 2445 2446 row += 1 2447 2438 2448 self._crewLabel = label = Gtk.Label(xstr("payload_crew")) 2439 2449 label.set_use_underline(True) … … 2457 2467 label.set_mnemonic_widget(self._numCabinCrew) 2458 2468 2459 label = Gtk.Label(xstr("payload_crew_info") )2469 label = Gtk.Label(xstr("payload_crew_info") % (const.WEIGHT_CABIN_CREW)) 2460 2470 label.set_halign(Gtk.Align.START) 2461 2471 table.attach(label, 2, 3, row, row+1) … … 2493 2503 label.set_mnemonic_widget(self._numPassengers) 2494 2504 2495 label = Gtk.Label(xstr("payload_pax_info")) 2505 self._paxInfo = label = Gtk.Label(xstr("payload_pax_info") % ( 2506 const.WEIGHT_PASSENGER, const.WEIGHT_CHILD, const.WEIGHT_INFANT)) 2496 2507 label.set_halign(Gtk.Align.START) 2497 2508 table.attach(label, 2, 3, row, row+1) … … 2638 2649 """Setup the information.""" 2639 2650 bookedFlight = self._wizard._bookedFlight 2651 2652 self._flightType.set_text(xstr("flighttype_" + 2653 const.flightType2string(bookedFlight.flightType))) 2654 2655 self._paxInfo.set_text(xstr("payload_pax_info") % ( 2656 bookedFlight.passengerWeight, const.WEIGHT_CHILD, const.WEIGHT_INFANT)) 2640 2657 2641 2658 self._numCockpitCrew.set_markup("<b>" + -
src/mlx/gui/weighthelp.py
r1143 r1144 58 58 59 59 60 self._weightsTable = table = Gtk.Table(1 6, 5)60 self._weightsTable = table = Gtk.Table(17, 5) 61 61 table.set_homogeneous(False) 62 62 table.set_row_spacings(4) … … 95 95 96 96 97 label = Gtk.Label(xstr("weighthelp_flight_type")) 98 label.set_alignment(0.0, 0.5) 99 table.attach(label, 0, 1, row, row+1) 100 101 self._flightTypeLabel = label = Gtk.Label(xstr("flighttype_scheduled")) 102 label.set_alignment(1.0, 0.5) 103 table.attach(label, 1, 2, row, row + 1) 104 105 row += 1 97 106 98 107 self._crewLabel = Gtk.Label(xstr("weighthelp_crew") % ("99",)) … … 109 118 110 119 table.attach(Gtk.Label("kg"), 2, 3, row, row+1) 120 121 self._crewInfo = Gtk.Label(xstr("weighthelp_crew_info") % ("-",)) 122 alignment = Gtk.Alignment(xalign = 0.0, yalign = 0.5, 123 xscale = 0.0, yscale = 0.0) 124 alignment.add(self._crewInfo) 125 table.attach(alignment, 3, 5, row, row+1) 111 126 112 127 row += 1 … … 129 144 table.attach(Gtk.Label("kg"), 2, 3, row, row+1) 130 145 146 self._paxInfo = Gtk.Label(xstr("weighthelp_pax_info") % 147 ("-", "-", "-")) 148 alignment = Gtk.Alignment(xalign = 0.0, yalign = 0.5, 149 xscale = 0.0, yscale = 0.0) 150 alignment.add(self._paxInfo) 151 table.attach(alignment, 3, 5, row, row+1) 152 131 153 row += 1 132 154 … … 382 404 crewWeight = self._getCrewWeight() 383 405 if crewWeight is None: 406 self._flightTypeLabel.set_text("-") 384 407 self._crewLabel.set_text(xstr("weighthelp_crew") % ("-",)) 385 408 self._crewWeight.set_text("-") 386 else: 409 self._crewInfo.set_text(xstr("weighthelp_crew_info") % ("-",)) 410 else: 411 self._flightTypeLabel.set_text(xstr("flighttype_" + 412 const.flightType2string(self._flightType))) 387 413 self._crewLabel.set_text(xstr("weighthelp_crew") % 388 414 (str(self._cockpitCrew) + "+" + 389 415 str(self._cabinCrew),)) 390 416 self._crewWeight.set_text("%.0f" % (crewWeight,)) 417 self._crewInfo.set_text(xstr("weighthelp_crew_info") % 418 (self._dowCabinCrew,)) 419 391 420 392 421 paxWeight = self._getPaxWeight() … … 394 423 self._paxLabel.set_text(xstr("weighthelp_pax") % ("-",)) 395 424 self._paxWeight.set_text("-") 425 self._paxInfo.set_text(xstr("weighthelp_pax_info") % ("-", "-", "-")) 396 426 else: 397 427 self._paxLabel.set_text(xstr("weighthelp_pax") % … … 400 430 str(self._infants),)) 401 431 self._paxWeight.set_text("%.0f" % (paxWeight,)) 432 self._paxInfo.set_text(xstr("weighthelp_pax_info") % 433 (const.getPassengerWeight(self._flightType), 434 const.WEIGHT_CHILD, const.WEIGHT_INFANT)) 402 435 403 436 self._setWeightLabel(self._bagWeight, self._bag)
Note:
See TracChangeset
for help on using the changeset viewer.