Files
TREK/shared/src/i18n/hu/reservations.ts
T
Maurice 56655d53b4 AirTrail integration: import flights & two-way sync (#214) (#1158)
* feat(admin): register AirTrail as an integration addon

Off by default; toggle lives in Admin -> Addons with a Plane icon. The
per-user connection (URL + API key) follows in integration settings.

* feat(integrations): add per-user AirTrail connection

Settings -> Integrations gains an AirTrail section: instance URL + Bearer
API key (encrypted at rest via apiKeyCrypto), a self-signed-TLS opt-in and
a test-connection check. Served by a small Nest controller under
/api/integrations/airtrail, gated on the airtrail addon and SSRF-guarded.
The key is per-user, so it only ever returns that user's own flights.

* feat(transport): import flights from AirTrail

Adds an AirTrail Import button next to Manual Transport that lists the
user's AirTrail flights and highlights the ones inside the trip dates.
Selected flights become reservations linked to their AirTrail origin
(external_* columns), deduped against flights already in the trip, then
broadcast to every member. The mapping resolves airports, airport-local
times and flight metadata; the linkage is what the two-way sync rides on.

* feat(transport): badge AirTrail-linked flights as synced

Linked reservations show an 'AirTrail synced' badge, or 'no longer
synced' once the flight is gone from AirTrail.

* feat(transport): keep TREK and AirTrail flights in sync both ways

A scheduled poll reconciles each connected owner's flights: field edits
(detected by snapshot hash, since AirTrail has no updated_at) flow into
the linked reservation and broadcast live; a flight deleted in AirTrail
keeps the TREK row but stops syncing. Editing a linked flight in TREK
pushes back to AirTrail under the importer's credentials, preserving the
existing seat manifest; if the owner disconnected the link detaches so the
poll can't revert the local edit. Deleting in TREK never touches AirTrail.

* i18n(airtrail): add AirTrail strings across all locales

* test(airtrail): cover flight mapping, timezones and snapshot hashing

* fix(airtrail): reduce airline/aircraft objects to codes

The flight list/get response returns airline and aircraft as joined
objects ({icao, iata, name, ...}), not bare codes. Mapping them straight
through produced '[object Object]' titles and stored objects in metadata,
which crashed reservation rendering. Extract the ICAO/IATA code instead,
and title flights by their flight number.

* fix(airtrail): clear error on non-JSON responses, tolerate /api in URL

A misconfigured instance URL made AirTrail serve its SPA/login HTML, and
the raw JSON.parse failure surfaced as 'Unexpected token <'. Surface an
actionable message instead, and strip a pasted trailing /api so the base
URL still resolves.

* feat(transport): sync AirTrail edits on trip open, not just on the poll

Add a per-user on-demand sync (POST /integrations/airtrail/sync) triggered
when a connected user opens a trip, so AirTrail-side edits appear right away
instead of waiting up to a full poll cycle. Lower the background poll from 15
to 5 minutes as a safety net.

* fix(transport): refresh imported AirTrail flights without a reload

loadTrip doesn't fetch reservations, so a freshly imported flight only
appeared after a full page reload — use loadReservations instead. Also show
flight dates in the user's locale format (e.g. 13.06.2026) rather than the
raw ISO string.

* style(settings): align AirTrail connection with the photo-provider layout

Match the Immich section: stacked URL/key fields, a ToggleSwitch for
self-signed TLS, and a Save / Test-connection row with a status badge.

* feat(transport): add a seat field when editing flights

The transport editor only offered a seat field for trains; flights had
none even though imports store metadata.seat. Show and persist a seat for
flights too.

* style(transport): match the AirTrail button height to Manual Transport

* feat(transport): put the flight seat next to flight number and sync it to AirTrail

Move the seat from a standalone row to the per-leg flight details (beside
the flight number), stored per leg in metadata.legs[].seat with the first
leg mirrored to metadata.seat. On push, set the seat number on the user's
own AirTrail seat (the one with a userId), leaving co-passengers untouched;
import/poll read that same seat back.

* refactor(planner): move the AirTrail trip-open sync into useTripPlanner

Page containers must not own state/effects (lint:pages). Same logic,
relocated from the page into its data hook.

* test(db): pin the region-reconciliation test to its schema version

The test re-ran 'the last migration' assuming the reconciliation is last;
it no longer is once later migrations are appended. Pin to version 135 and
re-run from there (the appended migrations are idempotent).
2026-06-13 13:11:35 +02:00

164 lines
8.9 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.',
'reservations.airtrail.title': 'Importálás az AirTrailből',
'reservations.airtrail.cta': 'AirTrail',
'reservations.airtrail.synced': 'AirTrail',
'reservations.airtrail.syncedHint': 'Az AirTrailből szinkronizálva — a módosítások mindkét irányban szinkronban maradnak.',
'reservations.airtrail.notSynced': 'Nincs szinkronizálva',
'reservations.airtrail.notSyncedHint': 'Ezt a járatot eltávolították az AirTrailből, és többé nem szinkronizálódik.',
'reservations.airtrail.loadError': 'Nem sikerült betölteni az AirTrail-járataidat.',
'reservations.airtrail.imported': '{count} járat importálva',
'reservations.airtrail.skippedDuplicate': '{count} már szerepel ebben az utazásban, kihagyva',
'reservations.airtrail.nothingImported': 'Nincs mit importálni.',
'reservations.airtrail.importError': 'Az importálás sikertelen. Kérjük, próbáld újra.',
'reservations.airtrail.undo': 'Importálás az AirTrailből',
'reservations.airtrail.alreadyImported': 'Importálva',
'reservations.airtrail.duringTrip': 'Az utazás ideje alatt',
'reservations.airtrail.otherFlights': 'Egyéb járatok',
'reservations.airtrail.empty': 'Nem található járat az AirTrail-fiókodban.',
'reservations.airtrail.importCta': '{count} importálása',
};
export default reservations;