mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 22:31:46 +00:00
3e9626fce9
* feat(places): enrich list-imported places via the Places API (#886) Google/Naver list imports only carry a name and coordinates, so the places open as bare pins — the Maps tab jumps to coordinates, with no photo, address or open/closed. Add an opt-in "Enrich places via Google" toggle to the list-import dialog, shown only when a Google Maps key is configured. When enabled, after the (fast, unchanged) import the server runs a background pass that re-resolves each place by name — biased to and validated against the imported coordinates so a common-name search cannot overwrite the wrong place — and fills the empty address/website/phone/photo columns plus the resolved google_place_id, pushing each row over the live sync. Opening hours and the proper Maps link then work on demand from the stored id. Enrichment only fills empty fields, runs detached so a long list never blocks the import, and no-ops when no key is configured. * fix(places): use the ToggleSwitch component for the enrich toggle Match the rest of the app — the import-enrichment opt-in used a raw checkbox; swap it for the shared ToggleSwitch (text left, switch right) like the settings toggles.
99 lines
5.1 KiB
TypeScript
99 lines
5.1 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const places: TranslationStrings = {
|
|
'places.addPlace': 'Hely/Tevékenység hozzáadása',
|
|
'places.importFile': 'Fájl importálása',
|
|
'places.sidebarDrop': 'Ejtse el az importáláshoz',
|
|
'places.importFileHint':
|
|
'.gpx, .kml vagy .kmz fájlok importálása olyan eszközökből, mint a Google My Maps, Google Earth vagy egy GPS tracker.',
|
|
'places.importFileDropHere':
|
|
'Kattintson egy fájl kiválasztásához, vagy húzza ide',
|
|
'places.importFileDropActive': 'Ejtse ide a fájlt a kiválasztáshoz',
|
|
'places.importFileUnsupported':
|
|
'Nem támogatott fájltípus. Használjon .gpx, .kml vagy .kmz fájlt.',
|
|
'places.importFileTooLarge':
|
|
'A fájl túl nagy. A maximális feltöltési méret {maxMb} MB.',
|
|
'places.importFileError': 'Importálás sikertelen',
|
|
'places.importAllSkipped': 'Minden hely már szerepel az utazásban.',
|
|
'places.gpxImported': '{count} hely importálva GPX-ből',
|
|
'places.gpxImportTypes': 'Mit szeretnél importálni?',
|
|
'places.gpxImportWaypoints': 'Útpontok',
|
|
'places.gpxImportRoutes': 'Útvonalak',
|
|
'places.gpxImportTracks': 'Nyomvonalak (útvonalgeometriával)',
|
|
'places.gpxImportNoneSelected':
|
|
'Válassz legalább egy típust az importáláshoz.',
|
|
'places.kmlImportTypes': 'Mit szeretnél importálni?',
|
|
'places.kmlImportPoints': 'Pontok (Placemarks)',
|
|
'places.kmlImportPaths': 'Útvonalak (LineStrings)',
|
|
'places.kmlImportNoneSelected': 'Válassz legalább egy típust.',
|
|
'places.selectionCount': '{count} kiválasztva',
|
|
'places.deleteSelected': 'Kijelöltek törlése',
|
|
'places.kmlKmzImported': '{count} hely importálva KMZ/KML-ből',
|
|
'places.urlResolved': 'Hely importálva URL-ből',
|
|
'places.importList': 'Lista importálás',
|
|
'places.kmlKmzSummaryValues':
|
|
'Placemarks: {total} • Importálva: {created} • Kihagyva: {skipped}',
|
|
'places.importGoogleList': 'Google Lista',
|
|
'places.importNaverList': 'Naver Lista',
|
|
'places.googleListHint':
|
|
'Illessz be egy megosztott Google Maps lista linket az osszes hely importalasahoz.',
|
|
'places.googleListImported': '{count} hely importalva a(z) "{list}" listabol',
|
|
'places.googleListError': 'Google Maps lista importalasa sikertelen',
|
|
'places.naverListHint':
|
|
'Illessz be egy megosztott Naver Maps lista linket az összes hely importálásához.',
|
|
'places.naverListImported': '{count} hely importálva a(z) "{list}" listából',
|
|
'places.naverListError': 'Naver Maps lista importálása sikertelen',
|
|
'places.viewDetails': 'Részletek megtekintése',
|
|
'places.assignToDay': 'Melyik naphoz adod?',
|
|
'places.all': 'Összes',
|
|
'places.unplanned': 'Nem tervezett',
|
|
'places.filterTracks': 'Nyomvonalak',
|
|
'places.search': 'Helyek keresése...',
|
|
'places.allCategories': 'Összes kategória',
|
|
'places.categoriesSelected': 'kategória',
|
|
'places.clearFilter': 'Szűrő törlése',
|
|
'places.count': '{count} hely',
|
|
'places.countSingular': '1 hely',
|
|
'places.allPlanned': 'Minden hely be van tervezve',
|
|
'places.noneFound': 'Nem találhatók helyek',
|
|
'places.editPlace': 'Hely szerkesztése',
|
|
'places.formName': 'Név',
|
|
'places.formNamePlaceholder': 'pl. Eiffel-torony',
|
|
'places.formDescription': 'Leírás',
|
|
'places.formDescriptionPlaceholder': 'Rövid leírás...',
|
|
'places.formAddress': 'Cím',
|
|
'places.formAddressPlaceholder': 'Utca, Város, Ország',
|
|
'places.formLat': 'Szélességi fok (pl. 48.8566)',
|
|
'places.formLng': 'Hosszúsági fok (pl. 2.3522)',
|
|
'places.formCategory': 'Kategória',
|
|
'places.noCategory': 'Nincs kategória',
|
|
'places.categoryNamePlaceholder': 'Kategória neve',
|
|
'places.formTime': 'Időpont',
|
|
'places.startTime': 'Kezdés',
|
|
'places.endTime': 'Befejezés',
|
|
'places.endTimeBeforeStart': 'A befejezési idő a kezdési idő előtt van',
|
|
'places.timeCollision': 'Időbeli átfedés:',
|
|
'places.formWebsite': 'Weboldal',
|
|
'places.formNotes': 'Jegyzetek',
|
|
'places.formNotesPlaceholder': 'Személyes jegyzetek...',
|
|
'places.formReservation': 'Foglalás',
|
|
'places.reservationNotesPlaceholder':
|
|
'Foglalási jegyzetek, visszaigazolási szám...',
|
|
'places.mapsSearchPlaceholder': 'Helyek keresése...',
|
|
'places.mapsSearchError': 'Helykeresés sikertelen.',
|
|
'places.loadingDetails': 'Hely adatainak betöltése…',
|
|
'places.osmHint':
|
|
'OpenStreetMap keresés aktív (képek, nyitvatartás és értékelések nélkül). Bővített adatokhoz add meg a Google API kulcsot a beállításokban.',
|
|
'places.osmActive':
|
|
'Keresés OpenStreetMap-en keresztül (képek, értékelések és nyitvatartás nélkül). Bővített adatokhoz add meg a Google API kulcsot a beállításokban.',
|
|
'places.categoryCreateError': 'Nem sikerült létrehozni a kategóriát',
|
|
'places.nameRequired': 'Kérjük, adj meg egy nevet',
|
|
'places.saveError': 'Nem sikerült menteni',
|
|
'places.duplicateExists': "A(z) '{name}' már szerepel ebben az utazásban.",
|
|
'places.addAnyway': 'Hozzáadás mindenképp',
|
|
'places.enrichOnImport': 'Helyek gazdagítása a Google-lel',
|
|
'places.enrichOnImportHint':
|
|
'Minden importált helyet megkeres, hogy fotókat, címet és elérhetőséget adjon hozzá. Google Maps-kulcs szükséges.',
|
|
};
|
|
export default places;
|