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:
Maurice
2026-11-03 20:19:43 +01:00
parent f8e51cb83d
commit 2e683f8609
36 changed files with 374 additions and 42 deletions
+5
View File
@@ -939,6 +939,11 @@ const tours: TranslationStrings = {
'tours.import.leftOutPoints': '{count} ghim',
'tours.import.leftOutAreas': '{count} vùng',
'tours.import.leftOutOther': '{count} mục khác',
'tours.import.pointsAsPlaces': 'Thêm các điểm làm địa điểm',
'tours.import.pointsAsPlacesHint': 'Các điểm đơn lẻ không thuộc về chuyến đi bộ. Chúng được thêm vào các địa điểm của chuyến đi.',
'tours.import.pointsConfirm': 'Thêm địa điểm',
'tours.import.pointsFailedIn': 'Không thể thêm các điểm trong {name} làm địa điểm.',
'tours.import.pointsImported': 'Đã thêm địa điểm: {count}',
'tours.import.unreadableIn': 'Không thể đọc {name}: tệp bị hỏng hoặc không phải GPX, KML hay KMZ',
'tours.import.archiveNoKmlIn': 'Không tìm thấy tệp KML trong {name}',
'tours.import.archiveTooLargeIn': '{name} quá lớn sau khi giải nén',