mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
fix(tours): keep the waypoints of a GPX/KML file that also holds a track
With the Tours addon on, a file picked or dropped on the places column goes into the Tours import as soon as it holds one line, and that import reads lines only. A Sygic or Trip-o-matic export (a route plus its stops) came in as one tour and every place was dropped without a word. The preview now counts a GPX file's waypoints as it already counted a KML file's pins, and the dialog offers to add those points as places of the trip, on by default. Confirming runs the Tours import for the lines and the places import (points only) for the same files. A file whose tracks the trip already holds can still bring its points. Closes #2969
This commit is contained in:
@@ -944,6 +944,11 @@ const tours: TranslationStrings = {
|
||||
'tours.import.leftOutAreas.one': '{count} area',
|
||||
'tours.import.leftOutOther': '{count} other items',
|
||||
'tours.import.leftOutOther.one': '{count} other item',
|
||||
'tours.import.pointsAsPlaces': 'Add the points as places',
|
||||
'tours.import.pointsAsPlacesHint': 'Single points are not part of a tour. They join the places of the trip instead.',
|
||||
'tours.import.pointsConfirm': 'Add places',
|
||||
'tours.import.pointsFailedIn': 'The points in {name} could not be added as places.',
|
||||
'tours.import.pointsImported': 'Places added: {count}',
|
||||
'tours.import.unreadableIn': 'Could not read {name}: the file is damaged or not GPX, KML or KMZ',
|
||||
'tours.import.archiveNoKmlIn': 'No KML file found in {name}',
|
||||
'tours.import.archiveTooLargeIn': '{name} is too large once unpacked',
|
||||
|
||||
Reference in New Issue
Block a user