Files
TREK/shared/src/i18n/hu/reservations.ts
T
Maurice bb477645a3 Support multi-leg (layover) flights (#1146)
* feat(transport): support multi-leg (layover) flights in the booking form

A flight booking can now hold an ordered chain of airports (e.g. FRA -> BER ->
HND) instead of a single departure/arrival pair. The route is entered as a list
of waypoints with a '+ add stop' button; each stop carries its own arrival and
departure time plus the airline/flight number of the segment leaving it, while
the whole booking keeps one price.

Stored without a schema change: the existing reservation_endpoints rows carry the
ordered waypoints (from/stop/to by sequence) and a metadata.legs array holds the
per-leg detail. Top-level metadata (departure_airport/arrival_airport/airline/
flight_number) mirrors the first and last leg, so a single-leg flight persists
exactly as before and legacy readers keep working.

* feat(planner): show each flight leg as its own day-plan entry, ordered by time

A multi-leg flight now expands into one entry per leg (BER -> FRA, then FRA ->
HND), each on its own day with its own times, instead of a single span. Each leg
is an addressable slot (reservation id + leg index) so places and notes can be
dropped into the layover gap between legs; the per-leg position is persisted in
metadata.legs[i].day_positions and survives a reload.

Day-plan items are now ordered chronologically: anything with a time (a place's
time, a flight leg, a timed note) sorts by that time, and untimed items inherit
the time of the item before them so they stay where they were placed.

* feat(planner): show the full multi-stop route in the bookings panel

The route row now lists every waypoint (FRA -> BER -> HND) by sequence instead of
just the first and last airport.

* feat(map): draw multi-leg flights as connected legs with a marker per airport

Both the Leaflet and Mapbox overlays now render a flight over all its waypoints:
one great-circle arc per leg and a marker at every airport, with the label
showing the full route and the summed distance. A single-leg flight is unchanged.

Also drops the floating stats badge that was drawn on transport arcs.

* fix(map): centre a clicked place above the bottom inspector panel

Selecting a place panned/flew it to the dead centre of the screen, where it sat
behind the detail card. Both overlays now bias the target into the visible area
above the bottom panel (Leaflet offsets the pan by the inspector inset; Mapbox
passes the padding to flyTo).

* feat: show the full multi-stop flight route in PDF and calendar export

The PDF day list and the ICS export now render the whole route (FRA → BER → HND)
for a multi-leg flight instead of just the first and last airport, falling back to
the flat metadata for single-leg flights. The ICS keeps a single event per booking.

* feat(import): group connecting flight legs into one multi-leg booking

When a booking confirmation contains several flight legs sharing a PNR that
connect at the same airport with a short layover (under 24h), they are now
imported as a single multi-leg booking (from/stop/to endpoints + metadata.legs)
instead of one booking per leg. A round trip (same PNR, multi-day gap) stays two
separate bookings, and a single flight is unchanged.

* i18n: translate the new flight-route strings into all languages

* i18n: translate the Costs page into every language

The Budget → Costs rework left the new costs.* strings untranslated in every
non-English locale (they fell back to English). Translate them across all
supported languages.

* Revert "fix(map): centre a clicked place above the bottom inspector panel"

This reverts commit 0936103f04.
2026-06-11 22:17:14 +02:00

147 lines
7.7 KiB
TypeScript

import type { TranslationStrings } from '../types';
const reservations: TranslationStrings = {
'reservations.title': 'Foglalások',
'reservations.empty': 'Még nincsenek foglalások',
'reservations.emptyHint':
'Adj hozzá foglalásokat repülőkhöz, szállodákhoz és egyebekhez',
'reservations.add': 'Foglalás hozzáadása',
'reservations.addManual': 'Kézi foglalás',
'reservations.placeHint':
'Tipp: A foglalásokat legjobb közvetlenül egy helyről létrehozni, hogy összekapcsolódjon a napi tervvel.',
'reservations.confirmed': 'Megerősítve',
'reservations.pending': 'Függőben',
'reservations.summary': '{confirmed} megerősítve, {pending} függőben',
'reservations.fromPlan': 'Tervből',
'reservations.showFiles': 'Fájlok megjelenítése',
'reservations.editTitle': 'Foglalás szerkesztése',
'reservations.status': 'Állapot',
'reservations.datetime': 'Dátum és idő',
'reservations.startTime': 'Kezdési idő',
'reservations.endTime': 'Befejezési idő',
'reservations.date': 'Dátum',
'reservations.time': 'Időpont',
'reservations.timeAlt': 'Időpont (alternatív, pl. 19:30)',
'reservations.linkExisting': 'Meglévő fájl csatolása',
'reservations.notes': 'Jegyzetek',
'reservations.notesPlaceholder': 'További jegyzetek...',
'reservations.meta.airline': 'Légitársaság',
'reservations.meta.flightNumber': 'Járatszám',
'reservations.meta.from': 'Honnan',
'reservations.meta.to': 'Hová',
'reservations.layover.route': 'Útvonal',
'reservations.layover.stop': 'Megálló',
'reservations.layover.addStop': 'Megálló hozzáadása',
'reservations.layover.connection': 'Csatlakozás',
'reservations.layover.layover': 'Átszállás',
'reservations.needsReview': 'Ellenőrzés',
'reservations.needsReviewHint':
'A repülőteret nem sikerült automatikusan azonosítani — erősítsd meg a helyet.',
'reservations.searchLocation': 'Állomás, kikötő, cím keresése...',
'reservations.meta.trainNumber': 'Vonatszám',
'reservations.meta.platform': 'Vágány',
'reservations.meta.seat': 'Ülés',
'reservations.meta.checkIn': 'Bejelentkezés',
'reservations.meta.checkInUntil': 'Bejelentkezés eddig',
'reservations.meta.checkOut': 'Kijelentkezés',
'reservations.meta.linkAccommodation': 'Szállás',
'reservations.meta.pickAccommodation': 'Szállás hozzárendelése',
'reservations.meta.noAccommodation': 'Nincs',
'reservations.meta.hotelPlace': 'Szálloda',
'reservations.meta.pickHotel': 'Szálloda kiválasztása',
'reservations.meta.fromDay': 'Ettől',
'reservations.meta.toDay': 'Eddig',
'reservations.meta.selectDay': 'Nap kiválasztása',
'reservations.type.flight': 'Repülő',
'reservations.type.hotel': 'Szálloda',
'reservations.type.restaurant': 'Étterem',
'reservations.type.train': 'Vonat',
'reservations.type.car': 'Autó',
'reservations.type.cruise': 'Hajóút',
'reservations.type.event': 'Esemény',
'reservations.type.tour': 'Túra',
'reservations.type.other': 'Egyéb',
'reservations.type.bus': 'Busz',
'reservations.type.ferry': 'Komp',
'reservations.type.bicycle': 'Kerékpár',
'reservations.type.taxi': 'Taxi',
'reservations.type.transport_other': 'Egyéb',
'reservations.confirm.delete':
'Biztosan törölni szeretnéd a(z) "{name}" foglalást?',
'reservations.confirm.deleteTitle': 'Foglalás törlése?',
'reservations.confirm.deleteBody': '"{name}" véglegesen törlődik.',
'reservations.toast.updated': 'Foglalás frissítve',
'reservations.toast.removed': 'Foglalás törölve',
'reservations.toast.fileUploaded': 'Fájl feltöltve',
'reservations.toast.uploadError': 'Feltöltés sikertelen',
'reservations.newTitle': 'Új foglalás',
'reservations.bookingType': 'Foglalás típusa',
'reservations.titleLabel': 'Cím',
'reservations.titlePlaceholder': 'pl. Lufthansa LH123, Hotel Adlon, ...',
'reservations.locationAddress': 'Helyszín / Cím',
'reservations.locationPlaceholder': 'Cím, Repülőtér, Szálloda...',
'reservations.confirmationCode': 'Foglalási kód',
'reservations.confirmationPlaceholder': 'pl. ABC12345',
'reservations.day': 'Nap',
'reservations.noDay': 'Nincs nap',
'reservations.place': 'Hely',
'reservations.noPlace': 'Nincs hely',
'reservations.pendingSave': 'mentés…',
'reservations.uploading': 'Feltöltés...',
'reservations.attachFile': 'Fájl csatolása',
'reservations.toast.saveError': 'Nem sikerült menteni',
'reservations.toast.updateError': 'Nem sikerült frissíteni',
'reservations.toast.deleteError': 'Nem sikerült törölni',
'reservations.confirm.remove': '"{name}" foglalás eltávolítása?',
'reservations.linkAssignment': 'Összekapcsolás napi tervvel',
'reservations.pickAssignment': 'Válassz hozzárendelést a tervedből...',
'reservations.noAssignment': 'Nincs összekapcsolás (önálló)',
'reservations.price': 'Ár',
'reservations.budgetCategory': 'Költségvetési kategória',
'reservations.budgetCategoryPlaceholder': 'pl. Közlekedés, Szállás',
'reservations.budgetCategoryAuto': 'Automatikus (foglalás típusa alapján)',
'reservations.budgetHint':
'Mentéskor automatikusan létrejön egy költségvetési tétel.',
'reservations.departureDate': 'Indulás',
'reservations.arrivalDate': 'Érkezés',
'reservations.departureTime': 'Indulási idő',
'reservations.arrivalTime': 'Érkezési idő',
'reservations.pickupDate': 'Felvétel',
'reservations.returnDate': 'Visszaadás',
'reservations.pickupTime': 'Felvétel ideje',
'reservations.returnTime': 'Visszaadás ideje',
'reservations.endDate': 'Befejezés dátuma',
'reservations.meta.departureTimezone': 'TZ indulás',
'reservations.meta.arrivalTimezone': 'TZ érkezés',
'reservations.span.departure': 'Indulás',
'reservations.span.arrival': 'Érkezés',
'reservations.span.inTransit': 'Úton',
'reservations.span.pickup': 'Felvétel',
'reservations.span.return': 'Visszaadás',
'reservations.span.active': 'Aktív',
'reservations.span.start': 'Kezdés',
'reservations.span.end': 'Vége',
'reservations.span.ongoing': 'Folyamatban',
'reservations.validation.endBeforeStart':
'A befejezés dátuma/időpontja a kezdés utáni kell legyen',
'reservations.addBooking': 'Foglalás hozzáadása',
'reservations.import.title': 'Foglalási visszaigazolások importálása',
'reservations.import.cta': 'Importálás fájlból',
'reservations.import.dropHere': 'Dobja ide a foglalási visszaigazolás fájlokat, vagy kattintson a kiválasztáshoz',
'reservations.import.dropActive': 'Dobja ide a fájlokat az importáláshoz',
'reservations.import.acceptedFormats': 'Elfogadott: EML, PDF, PKPass, HTML, TXT (max. 10 MB darabonként, legfeljebb 5 fájl)',
'reservations.import.parsing': 'Fájlok feldolgozása…',
'reservations.import.previewHeading': '{count} foglalás találva',
'reservations.import.previewEmpty': 'A feltöltött fájlokból nem sikerült foglalásokat kinyerni.',
'reservations.import.removeItem': 'Eltávolítás',
'reservations.import.confirm': '{count} foglalás importálása',
'reservations.import.back': 'Vissza',
'reservations.import.success': '{count} foglalás importálva',
'reservations.import.partialFailure': '{created} importálva, {failed} sikertelen',
'reservations.import.error': 'A feldolgozás sikertelen. Győződjön meg arról, hogy a fájl érvényes foglalási visszaigazolás.',
'reservations.import.unavailable': 'A foglalásimportálás nem érhető el ezen a kiszolgálón.',
'reservations.import.unsupportedFormat': 'Nem támogatott fájlformátum. Használjon EML, PDF, PKPass, HTML vagy TXT formátumot.',
'reservations.import.fileTooLarge': 'A(z) „{name}" fájl meghaladja a 10 MB-os korlátot.',
};
export default reservations;