fix(tours): offer waypoints as places only where a trip takes them, and say when every point was there already

The waypoints switch showed in every Tours import dialog; it now shows in
the trip's import only. Confirming it when every point was already in the
trip closed the dialog without a word.
This commit is contained in:
Maurice
2026-11-05 13:02:28 +01:00
parent 7743e4da16
commit c0f7f81e23
36 changed files with 132 additions and 30 deletions
+1
View File
@@ -971,6 +971,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'النقاط المفردة ليست جزءًا من الجولة، بل تُضاف إلى أماكن الرحلة.',
'tours.import.pointsConfirm': 'أضف الأماكن',
'tours.import.pointsFailedIn': 'تعذّرت إضافة النقاط في {name} كأماكن.',
'tours.import.pointsSkipped': 'كانت بعض النقاط موجودة بالفعل في هذه الرحلة فتم تخطيها.',
'tours.import.pointsImported': 'أُضيف {count} مكان',
'tours.import.pointsImported.zero': 'أُضيف {count} مكان',
'tours.import.pointsImported.one': 'أُضيف مكان واحد',
+1
View File
@@ -962,6 +962,7 @@ const tours: TranslationStrings = {
'Tək nöqtələr turun bir hissəsi deyil. Onlar əvəzinə səyahətin məkanlarına əlavə olunur.',
'tours.import.pointsConfirm': 'Məkanları əlavə et',
'tours.import.pointsFailedIn': '{name} faylındakı nöqtələr məkan kimi əlavə edilə bilmədi.',
'tours.import.pointsSkipped': 'Nöqtələrin bəziləri artıq bu səyahətdə idi və ötürüldü.',
'tours.import.pointsImported': '{count} məkan əlavə edildi',
'tours.import.pointsImported.one': '{count} məkan əlavə edildi',
'tours.import.unreadableIn': '{name} oxunmadı: fayl zədələnib və ya GPX, KML, KMZ deyil',
+1
View File
@@ -967,6 +967,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Pontos avulsos não fazem parte de um passeio. Eles entram nos lugares da viagem.',
'tours.import.pointsConfirm': 'Adicionar lugares',
'tours.import.pointsFailedIn': 'Não foi possível adicionar os pontos de {name} como lugares.',
'tours.import.pointsSkipped': 'Alguns pontos já estavam nesta viagem e foram ignorados.',
'tours.import.pointsImported': '{count} lugares adicionados',
'tours.import.pointsImported.one': '{count} lugar adicionado',
'tours.import.unreadableIn': 'Não foi possível ler {name}: o arquivo está danificado ou não é GPX, KML nem KMZ',
+1
View File
@@ -969,6 +969,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Els punts solts no formen part de cap ruta. S’afegeixen als llocs del viatge.',
'tours.import.pointsConfirm': 'Afegeix llocs',
'tours.import.pointsFailedIn': 'No s’han pogut afegir els punts de {name} com a llocs.',
'tours.import.pointsSkipped': "Alguns punts ja eren en aquest viatge i s'han omès.",
'tours.import.pointsImported': '{count} llocs afegits',
'tours.import.pointsImported.one': '{count} lloc afegit',
'tours.import.unreadableIn': "No s'ha pogut llegir {name}: el fitxer està malmès o no és GPX, KML ni KMZ",
+1
View File
@@ -955,6 +955,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Samostatné body nejsou součástí trasy. Přidají se místo toho k místům cesty.',
'tours.import.pointsConfirm': 'Přidat místa',
'tours.import.pointsFailedIn': 'Body ze souboru {name} se nepodařilo přidat jako místa.',
'tours.import.pointsSkipped': 'Některé body už v této cestě byly, proto byly přeskočeny.',
'tours.import.pointsImported': '{count} míst přidáno',
'tours.import.pointsImported.one': '{count} místo přidáno',
'tours.import.pointsImported.few': '{count} místa přidána',
+1
View File
@@ -978,6 +978,7 @@ const tours: TranslationStrings = {
'Einzelne Punkte gehören zu keiner Tour. Sie kommen stattdessen zu den Orten der Reise.',
'tours.import.pointsConfirm': 'Orte hinzufügen',
'tours.import.pointsFailedIn': 'Die Punkte aus {name} konnten nicht als Orte hinzugefügt werden.',
'tours.import.pointsSkipped': 'Einige Punkte waren schon in dieser Reise und wurden übersprungen.',
'tours.import.pointsImported': '{count} Orte hinzugefügt',
'tours.import.pointsImported.one': '{count} Ort hinzugefügt',
'tours.import.unreadableIn':
+1
View File
@@ -949,6 +949,7 @@ const tours: TranslationStrings = {
'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.pointsSkipped': 'Some of the points were already in this trip and were skipped.',
'tours.import.pointsImported': '{count} places added',
'tours.import.pointsImported.one': '{count} place added',
'tours.import.unreadableIn': 'Could not read {name}: the file is damaged or not GPX, KML or KMZ',
+1
View File
@@ -967,6 +967,7 @@ const tours: TranslationStrings = {
'Los puntos sueltos no forman parte de una ruta. Se añaden a los lugares del viaje.',
'tours.import.pointsConfirm': 'Añadir lugares',
'tours.import.pointsFailedIn': 'No se pudieron añadir los puntos de {name} como lugares.',
'tours.import.pointsSkipped': 'Algunos puntos ya estaban en este viaje y se han omitido.',
'tours.import.pointsImported': '{count} lugares añadidos',
'tours.import.pointsImported.one': '{count} lugar añadido',
'tours.import.unreadableIn': 'No se ha podido leer {name}: el archivo está dañado o no es GPX, KML ni KMZ',
+1
View File
@@ -952,6 +952,7 @@ const tours: TranslationStrings = {
'Üksikud punktid ei kuulu matka juurde. Need lisatakse hoopis reisi kohtade hulka.',
'tours.import.pointsConfirm': 'Lisa kohad',
'tours.import.pointsFailedIn': 'Faili {name} punkte ei õnnestunud kohtadena lisada.',
'tours.import.pointsSkipped': 'Mõned punktid olid juba selles reisis ja jäeti vahele.',
'tours.import.pointsImported': '{count} kohta lisatud',
'tours.import.pointsImported.one': '{count} koht lisatud',
'tours.import.unreadableIn': 'Faili {name} ei saanud lugeda: see on vigane või pole GPX, KML ega KMZ',
+1
View File
@@ -985,6 +985,7 @@ const tours: TranslationStrings = {
'Les points isolés ne font pas partie d’un parcours. Ils rejoignent les lieux du voyage.',
'tours.import.pointsConfirm': 'Ajouter les lieux',
'tours.import.pointsFailedIn': 'Les points de {name} n’ont pas pu être ajoutés comme lieux.',
'tours.import.pointsSkipped': 'Certains points étaient déjà dans ce voyage et ont été ignorés.',
'tours.import.pointsImported': '{count} lieux ajoutés',
'tours.import.pointsImported.one': '{count} lieu ajouté',
'tours.import.unreadableIn': 'Impossible de lire {name} : le fichier est endommagé ou n’est pas un GPX, KML ou KMZ',
+1
View File
@@ -989,6 +989,7 @@ const tours: TranslationStrings = {
'Τα μεμονωμένα σημεία δεν ανήκουν σε διαδρομή. Προστίθενται στις τοποθεσίες του ταξιδιού.',
'tours.import.pointsConfirm': 'Προσθήκη τοποθεσιών',
'tours.import.pointsFailedIn': 'Δεν ήταν δυνατή η προσθήκη των σημείων του {name} ως τοποθεσίες.',
'tours.import.pointsSkipped': 'Ορισμένα σημεία υπήρχαν ήδη σε αυτό το ταξίδι και παραλείφθηκαν.',
'tours.import.pointsImported': '{count} τοποθεσίες προστέθηκαν',
'tours.import.pointsImported.one': '{count} τοποθεσία προστέθηκε',
'tours.import.unreadableIn':
+1
View File
@@ -947,6 +947,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'נקודות בודדות אינן חלק ממסלול. הן מתווספות למקומות של הטיול.',
'tours.import.pointsConfirm': 'הוספת מקומות',
'tours.import.pointsFailedIn': 'לא ניתן היה להוסיף את הנקודות מ-{name} כמקומות.',
'tours.import.pointsSkipped': 'חלק מהנקודות כבר היו בטיול הזה ולכן דולגו.',
'tours.import.pointsImported': '{count} מקומות נוספו',
'tours.import.pointsImported.one': 'מקום אחד נוסף',
'tours.import.pointsImported.two': '{count} מקומות נוספו',
+1
View File
@@ -967,6 +967,7 @@ const tours: TranslationStrings = {
'Az önálló pontok nem részei egy túrának. Helyettük az utazás helyei közé kerülnek.',
'tours.import.pointsConfirm': 'Helyek hozzáadása',
'tours.import.pointsFailedIn': 'A(z) {name} pontjait nem sikerült helyekként hozzáadni.',
'tours.import.pointsSkipped': 'Néhány pont már szerepelt ebben az utazásban, ezért kimaradt.',
'tours.import.pointsImported': '{count} hely hozzáadva',
'tours.import.pointsImported.one': '{count} hely hozzáadva',
'tours.import.unreadableIn': 'A(z) {name} nem olvasható: a fájl sérült, vagy nem GPX, KML vagy KMZ',
+1
View File
@@ -958,6 +958,7 @@ const tours: TranslationStrings = {
'Titik tunggal bukan bagian dari tur. Titik itu masuk ke tempat-tempat perjalanan.',
'tours.import.pointsConfirm': 'Tambahkan tempat',
'tours.import.pointsFailedIn': 'Titik di {name} tidak dapat ditambahkan sebagai tempat.',
'tours.import.pointsSkipped': 'Beberapa titik sudah ada di perjalanan ini dan dilewati.',
'tours.import.pointsImported': '{count} tempat ditambahkan',
'tours.import.unreadableIn': '{name} tidak dapat dibaca: berkas rusak atau bukan GPX, KML, atau KMZ',
'tours.import.archiveNoKmlIn': 'Tidak ada berkas KML di {name}',
+1
View File
@@ -974,6 +974,7 @@ const tours: TranslationStrings = {
'I punti singoli non fanno parte di un percorso. Vengono aggiunti ai luoghi del viaggio.',
'tours.import.pointsConfirm': 'Aggiungi luoghi',
'tours.import.pointsFailedIn': 'Non è stato possibile aggiungere i punti di {name} come luoghi.',
'tours.import.pointsSkipped': 'Alcuni punti erano già in questo viaggio e sono stati saltati.',
'tours.import.pointsImported': '{count} luoghi aggiunti',
'tours.import.pointsImported.one': '{count} luogo aggiunto',
'tours.import.unreadableIn': 'Impossibile leggere {name}: il file è danneggiato o non è GPX, KML o KMZ',
+1
View File
@@ -933,6 +933,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': '単独のポイントはツアーに含まれません。代わりに旅行の場所に追加されます。',
'tours.import.pointsConfirm': '場所を追加',
'tours.import.pointsFailedIn': '{name} のポイントを場所として追加できませんでした。',
'tours.import.pointsSkipped': '一部のポイントはすでにこの旅行にあったため、スキップされました。',
'tours.import.pointsImported': '{count} 件の場所を追加しました',
'tours.import.unreadableIn': '{name}を読み込めませんでした:ファイルが破損しているか、GPX、KML、KMZではありません',
'tours.import.archiveNoKmlIn': '{name}にKMLファイルが見つかりません',
+1
View File
@@ -925,6 +925,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': '단일 포인트는 투어에 포함되지 않습니다. 대신 여행의 장소에 추가됩니다.',
'tours.import.pointsConfirm': '장소 추가',
'tours.import.pointsFailedIn': '{name}의 포인트를 장소로 추가하지 못했습니다.',
'tours.import.pointsSkipped': '일부 포인트는 이미 이 여행에 있어 건너뛰었습니다.',
'tours.import.pointsImported': '장소 {count}개를 추가했습니다',
'tours.import.unreadableIn': '{name}을(를) 읽을 수 없습니다: 파일이 손상되었거나 GPX, KML, KMZ가 아닙니다',
'tours.import.archiveNoKmlIn': '{name}에 KML 파일이 없습니다',
+1
View File
@@ -970,6 +970,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Losse punten horen niet bij een tocht. Ze komen bij de plekken van de reis.',
'tours.import.pointsConfirm': 'Plekken toevoegen',
'tours.import.pointsFailedIn': 'De punten uit {name} konden niet als plekken worden toegevoegd.',
'tours.import.pointsSkipped': 'Sommige punten stonden al in deze reis en zijn overgeslagen.',
'tours.import.pointsImported': '{count} plekken toegevoegd',
'tours.import.pointsImported.one': '{count} plek toegevoegd',
'tours.import.unreadableIn': '{name} kon niet worden gelezen: het bestand is beschadigd of geen GPX, KML of KMZ',
+1
View File
@@ -988,6 +988,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Pojedyncze punkty nie należą do trasy. Trafiają do miejsc podróży.',
'tours.import.pointsConfirm': 'Dodaj miejsca',
'tours.import.pointsFailedIn': 'Nie udało się dodać punktów z {name} jako miejsc.',
'tours.import.pointsSkipped': 'Niektóre punkty były już w tej podróży i zostały pominięte.',
'tours.import.pointsImported': 'Dodano {count} miejsca',
'tours.import.pointsImported.one': 'Dodano {count} miejsce',
'tours.import.pointsImported.few': 'Dodano {count} miejsca',
+1
View File
@@ -992,6 +992,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Отдельные точки не входят в маршрут. Они добавляются к местам поездки.',
'tours.import.pointsConfirm': 'Добавить места',
'tours.import.pointsFailedIn': 'Не удалось добавить точки из {name} как места.',
'tours.import.pointsSkipped': 'Некоторые точки уже были в этой поездке и были пропущены.',
'tours.import.pointsImported': 'Добавлено {count} места',
'tours.import.pointsImported.one': 'Добавлено {count} место',
'tours.import.pointsImported.few': 'Добавлено {count} места',
+1
View File
@@ -957,6 +957,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Samostatné body nie sú súčasťou trasy. Pridajú sa namiesto toho k miestam cesty.',
'tours.import.pointsConfirm': 'Pridať miesta',
'tours.import.pointsFailedIn': 'Body zo súboru {name} sa nepodarilo pridať ako miesta.',
'tours.import.pointsSkipped': 'Niektoré body už v tejto ceste boli, preto boli preskočené.',
'tours.import.pointsImported': '{count} miest pridaných',
'tours.import.pointsImported.one': '{count} miesto pridané',
'tours.import.pointsImported.few': '{count} miesta pridané',
+1
View File
@@ -949,6 +949,7 @@ const tours: TranslationStrings = {
'Enskilda punkter ingår inte i en tur. De läggs till bland resans platser i stället.',
'tours.import.pointsConfirm': 'Lägg till platser',
'tours.import.pointsFailedIn': 'Punkterna i {name} kunde inte läggas till som platser.',
'tours.import.pointsSkipped': 'Några av punkterna fanns redan i den här resan och hoppades över.',
'tours.import.pointsImported': '{count} platser tillagda',
'tours.import.pointsImported.one': '{count} plats tillagd',
'tours.import.unreadableIn': 'Det gick inte att läsa {name}: filen är skadad eller inte GPX, KML eller KMZ',
+1
View File
@@ -910,6 +910,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'จุดเดี่ยวไม่ได้เป็นส่วนหนึ่งของทัวร์ แต่จะถูกเพิ่มเข้าไปในสถานที่ของทริปแทน',
'tours.import.pointsConfirm': 'เพิ่มสถานที่',
'tours.import.pointsFailedIn': 'ไม่สามารถเพิ่มจุดใน {name} เป็นสถานที่ได้',
'tours.import.pointsSkipped': 'บางจุดมีอยู่ในทริปนี้แล้วจึงถูกข้ามไป',
'tours.import.pointsImported': 'เพิ่มสถานที่ {count} แห่งแล้ว',
'tours.import.unreadableIn': 'ไม่สามารถอ่าน {name} ได้: ไฟล์เสียหายหรือไม่ใช่ GPX, KML หรือ KMZ',
'tours.import.archiveNoKmlIn': 'ไม่พบไฟล์ KML ใน {name}',
+1 -1
View File
@@ -20,7 +20,7 @@ const toursModules = import.meta.glob<{ default: TranslationStrings }>('./*/tour
const TOUR_DOMAINS: { file: string; generalKeyCount: number; modules: DomainModules }[] = [
{
file: 'tours',
generalKeyCount: 1356,
generalKeyCount: 1357,
modules: toursModules,
},
{
+1
View File
@@ -960,6 +960,7 @@ const tours: TranslationStrings = {
'Tekil noktalar bir turun parçası değildir. Bunun yerine seyahatin yerlerine eklenir.',
'tours.import.pointsConfirm': 'Yerleri ekle',
'tours.import.pointsFailedIn': '{name} içindeki noktalar yer olarak eklenemedi.',
'tours.import.pointsSkipped': 'Noktaların bazıları zaten bu seyahatteydi ve atlandı.',
'tours.import.pointsImported': '{count} yer eklendi',
'tours.import.pointsImported.one': '{count} yer eklendi',
'tours.import.unreadableIn': '{name} okunamadı: dosya bozuk ya da GPX, KML veya KMZ değil',
+1
View File
@@ -983,6 +983,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': 'Окремі точки не входять до маршруту. Вони додаються до місць подорожі.',
'tours.import.pointsConfirm': 'Додати місця',
'tours.import.pointsFailedIn': 'Не вдалося додати точки з {name} як місця.',
'tours.import.pointsSkipped': 'Деякі точки вже були в цій подорожі й були пропущені.',
'tours.import.pointsImported': 'Додано {count} місця',
'tours.import.pointsImported.one': 'Додано {count} місце',
'tours.import.pointsImported.few': 'Додано {count} місця',
+1
View File
@@ -945,6 +945,7 @@ const tours: TranslationStrings = {
'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.pointsSkipped': 'Một số điểm đã có trong chuyến đi này nên đã được bỏ qua.',
'tours.import.pointsImported': 'Đã thêm {count} địa điểm',
'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}',
+1
View File
@@ -877,6 +877,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': '單一點不屬於路線,而是新增到行程的地點中。',
'tours.import.pointsConfirm': '新增地點',
'tours.import.pointsFailedIn': '無法將 {name} 中的點新增為地點。',
'tours.import.pointsSkipped': '部分點已在此行程中,已略過。',
'tours.import.pointsImported': '已新增 {count} 個地點',
'tours.import.unreadableIn': '無法讀取 {name}:檔案已損毀,或不是 GPX、KML 或 KMZ',
'tours.import.archiveNoKmlIn': '{name} 中沒有 KML 檔案',
+1
View File
@@ -878,6 +878,7 @@ const tours: TranslationStrings = {
'tours.import.pointsAsPlacesHint': '单个点不属于路线,而是添加到行程的地点中。',
'tours.import.pointsConfirm': '添加地点',
'tours.import.pointsFailedIn': '无法将 {name} 中的点添加为地点。',
'tours.import.pointsSkipped': '部分点已在此行程中,已跳过。',
'tours.import.pointsImported': '已添加 {count} 个地点',
'tours.import.unreadableIn': '无法读取 {name}:文件已损坏,或不是 GPX、KML 或 KMZ',
'tours.import.archiveNoKmlIn': '{name} 中没有 KML 文件',