From 9ac4a8f4e998c422ef8ef42b25ee12d8435f8aaf Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 4 Nov 2024 19:25:07 -0500 Subject: [PATCH] Update localization for activities and adventures; change links and placeholders --- frontend/src/lib/components/AboutModal.svelte | 2 +- .../lib/components/ActivityComplete.svelte | 2 +- .../src/lib/components/AdventureModal.svelte | 2 +- frontend/src/lib/components/Avatar.svelte | 2 +- frontend/src/lib/components/NoteModal.svelte | 4 +- frontend/src/locales/de.json | 110 +++++++++++++++++- frontend/src/locales/en.json | 26 ++++- frontend/src/locales/es.json | 110 +++++++++++++++++- frontend/src/locales/fr.json | 95 ++++++++++++++- frontend/src/locales/it.json | 95 ++++++++++++++- frontend/src/locales/nl.json | 96 ++++++++++++++- frontend/src/locales/sv.json | 95 ++++++++++++++- frontend/src/locales/zh.json | 95 ++++++++++++++- frontend/src/routes/activities/+page.svelte | 6 +- .../src/routes/collections/[id]/+page.svelte | 3 +- frontend/src/routes/map/+page.svelte | 18 +-- frontend/src/routes/search/+page.svelte | 31 +++-- 17 files changed, 738 insertions(+), 54 deletions(-) diff --git a/frontend/src/lib/components/AboutModal.svelte b/frontend/src/lib/components/AboutModal.svelte index 409a5203..60faa898 100644 --- a/frontend/src/lib/components/AboutModal.svelte +++ b/frontend/src/lib/components/AboutModal.svelte @@ -44,7 +44,7 @@

© {copyrightYear} Sean Morley { if (e.key === 'Enter') { diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index 4715c7c5..5c9db4c5 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -682,7 +682,7 @@ it would also work to just use on:click on the MapLibre component itself. -->

- {$t('adventures.activity_types')} ({adventure.activity_types?.length || 0}) + {$t('adventures.tags')} ({adventure.activity_types?.length || 0})
  • -
  • +
  • diff --git a/frontend/src/lib/components/NoteModal.svelte b/frontend/src/lib/components/NoteModal.svelte index 490e0c15..b304dbea 100644 --- a/frontend/src/lib/components/NoteModal.svelte +++ b/frontend/src/lib/components/NoteModal.svelte @@ -18,7 +18,7 @@ function addLink() { // check to make it a valid URL if (!isValidUrl(newLink)) { - warning = 'Invalid URL'; + warning = $t('notes.invalid_url'); return; } else { warning = null; @@ -150,7 +150,7 @@ { if (e.key === 'Enter') { diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 2fdf9155..e20ce364 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -164,7 +164,29 @@ "update_visited_regions": "Besuchte Regionen aktualisieren", "update_visited_regions_disclaimer": "Dies kann je nach Anzahl der Abenteuer, die Sie besucht haben, eine Weile dauern.", "visited_region_check": "Überprüfung der besuchten Region", - "visited_region_check_desc": "Wenn Sie diese Option auswählen, überprüft der Server alle von Ihnen besuchten Abenteuer und markiert die Regionen, in denen sie sich befinden, als im Rahmen von Weltreisen besucht." + "visited_region_check_desc": "Wenn Sie diese Option auswählen, überprüft der Server alle von Ihnen besuchten Abenteuer und markiert die Regionen, in denen sie sich befinden, als im Rahmen von Weltreisen besucht.", + "add_new": "Neu hinzufügen...", + "checklist": "Checkliste", + "checklists": "Checklisten", + "collection_completed": "Du hast diese Sammlung vervollständigt!", + "collection_stats": "Sammlungsstatistiken", + "days": "Tage", + "itineary_by_date": "Reiseroute nach Datum", + "keep_exploring": "Entdecken Sie weiter!", + "link_new": "Link Neu...", + "linked_adventures": "Verknüpfte Abenteuer", + "links": "Links", + "no_end_date": "Bitte geben Sie ein Enddatum ein", + "note": "Notiz", + "notes": "Notizen", + "nothing_planned": "Für diesen Tag ist nichts geplant. \nGenieße die Reise!", + "transportation": "Transport", + "transportations": "Transporte", + "visit_link": "Besuchen Sie den Link", + "collection_archived": "Diese Sammlung wurde archiviert.", + "day": "Tag", + "add_a_tag": "Fügen Sie ein Tag hinzu", + "tags": "Schlagworte" }, "home": { "desc_1": "Entdecken, planen und erkunden Sie mit Leichtigkeit", @@ -189,7 +211,6 @@ "greeting": "Hallo", "logout": "Abmelden", "map": "Karte", - "my_activities": "Meine Aktivitäten", "my_adventures": "Meine Abenteuer", "profile": "Profil", "search": "Suchen", @@ -206,7 +227,9 @@ "night": "Nacht" }, "users": "Benutzer", - "worldtravel": "Weltreisen" + "worldtravel": "Weltreisen", + "my_tags": "Meine Tags", + "tag": "Etikett" }, "auth": { "confirm_password": "Passwort bestätigen", @@ -261,5 +284,86 @@ "reset_password": "Passwort zurücksetzen", "submit": "Einreichen", "token_required": "Zum Zurücksetzen des Passworts sind Token und UID erforderlich." + }, + "checklist": { + "add_item": "Artikel hinzufügen", + "checklist_delete_error": "Fehler beim Löschen der Checkliste", + "checklist_deleted": "Checkliste erfolgreich gelöscht!", + "checklist_editor": "Checklisten-Editor", + "checklist_public": "Diese Checkliste ist öffentlich, da sie sich in einer öffentlichen Sammlung befindet.", + "editing_checklist": "Checkliste bearbeiten", + "failed_to_save": "Checkliste konnte nicht gespeichert werden", + "item": "Artikel", + "item_already_exists": "Artikel existiert bereits", + "item_cannot_be_empty": "Das Element darf nicht leer sein", + "items": "Artikel", + "new_item": "Neuer Artikel", + "save": "Speichern" + }, + "collection": { + "collection_created": "Sammlung erfolgreich erstellt!", + "collection_edit_success": "Sammlung erfolgreich bearbeitet!", + "create": "Erstellen", + "edit_collection": "Sammlung bearbeiten", + "error_creating_collection": "Fehler beim Erstellen der Sammlung", + "error_editing_collection": "Fehler beim Bearbeiten der Sammlung", + "new_collection": "Neue Kollektion" + }, + "notes": { + "add_a_link": "Fügen Sie einen Link hinzu", + "content": "Inhalt", + "editing_note": "Bearbeitungsnotiz", + "failed_to_save": "Notiz konnte nicht gespeichert werden", + "note_delete_error": "Fehler beim Löschen der Notiz", + "note_deleted": "Notiz erfolgreich gelöscht!", + "note_editor": "Notizeditor", + "note_public": "Diese Notiz ist öffentlich, da sie sich in einer öffentlichen Sammlung befindet.", + "open": "Offen", + "save": "Speichern", + "invalid_url": "Ungültige URL" + }, + "transportation": { + "date_and_time": "Datum", + "date_time": "Startdatum", + "edit": "Bearbeiten", + "edit_transportation": "Transport bearbeiten", + "end_date_time": "Enddatum", + "error_editing_transportation": "Fehler beim Bearbeiten des Transports", + "flight_number": "Flugnummer", + "from_location": "Vom Standort", + "modes": { + "bike": "Fahrrad", + "boat": "Boot", + "bus": "Bus", + "walking": "Gehen", + "car": "Auto", + "other": "Andere", + "plane": "Flugzeug", + "train": "Zug" + }, + "transportation_added": "Transport erfolgreich hinzugefügt!", + "transportation_delete_error": "Fehler beim Löschen des Transports", + "transportation_deleted": "Transport erfolgreich gelöscht!", + "transportation_edit_success": "Transport erfolgreich bearbeitet!", + "type": "Typ", + "new_transportation": "Neue Transportmittel", + "provide_start_date": "Bitte geben Sie ein Startdatum an", + "start": "Start", + "to_location": "Zum Standort", + "transport_type": "Transporttyp" + }, + "search": { + "adventurelog_results": "AdventureLog-Ergebnisse", + "online_results": "Online-Ergebnisse", + "public_adventures": "Öffentliche Abenteuer" + }, + "map": { + "add_adventure": "Neues Abenteuer hinzufügen", + "add_adventure_at_marker": "Neues Abenteuer bei Marker hinzufügen", + "adventure_map": "Abenteuerkarte", + "clear_marker": "Markierung löschen", + "map_options": "Kartenoptionen", + "show_visited_regions": "Besuchte Regionen anzeigen", + "view_details": "Details anzeigen" } } diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 15fc55dd..f1aa7ab8 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -9,7 +9,8 @@ "profile": "Profile", "greeting": "Hi", "my_adventures": "My Adventures", - "my_activities": "My Activities", + "my_tags": "My Tags", + "tag": "Tag", "shared_with_me": "Shared With Me", "settings": "Settings", "logout": "Logout", @@ -78,6 +79,7 @@ "adventure": "Adventure", "count_txt": "results matching your search", "sort": "Sort", + "order_by": "Order By", "order_direction": "Order Direction", "ascending": "Ascending", "descending": "Descending", @@ -85,6 +87,8 @@ "name": "Name", "date": "Date", "activity_types": "Activity Types", + "tags": "Tags", + "add_a_tag": "Add a tag", "date_constrain": "Constrain to collection dates", "rating": "Rating", "my_images": "My Images", @@ -198,8 +202,9 @@ "notes": "Notes", "checklists": "Checklists", "transportations": "Transportations", + "day": "Day", "itineary_by_date": "Itinerary by Date", - "nothing_planned": "Nothing planned for this day. Enjoy the journey!<", + "nothing_planned": "Nothing planned for this day. Enjoy the journey!", "days": "days", "activities": { "general": "General 🌍", @@ -299,7 +304,8 @@ "content": "Content", "save": "Save", "note_public": "This note is public because it is in a public collection.", - "add_a_link": "Add a link" + "add_a_link": "Add a link", + "invalid_url": "Invalid URL" }, "checklist": { "checklist_deleted": "Checklist deleted successfully!", @@ -345,5 +351,19 @@ "edit_transportation": "Edit Transportation", "start": "Start", "date_and_time": "Date & Time" + }, + "search": { + "adventurelog_results": "AdventureLog Results", + "public_adventures": "Public Adventures", + "online_results": "Online Results" + }, + "map": { + "view_details": "View Details", + "adventure_map": "Adventure Map", + "map_options": "Map Options", + "show_visited_regions": "Show Visited Regions", + "add_adventure_at_marker": "Add New Adventure at Marker", + "clear_marker": "Clear Marker", + "add_adventure": "Add New Adventure" } } diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json index e2d80450..bf910ecf 100644 --- a/frontend/src/locales/es.json +++ b/frontend/src/locales/es.json @@ -9,7 +9,6 @@ "profile": "Perfil", "greeting": "Hola", "my_adventures": "Mis Aventuras", - "my_activities": "Mis Actividades", "shared_with_me": "Compartido Conmigo", "settings": "Configuraciones", "logout": "Cerrar Sesión", @@ -25,7 +24,9 @@ "aestetic-dark": "Estético Oscuro", "aestetic-light": "Estético Claro", "aqua": "Aqua" - } + }, + "my_tags": "Mis etiquetas", + "tag": "Etiqueta" }, "about": { "about": "Acerca de", @@ -206,7 +207,29 @@ "update_visited_regions": "Actualizar regiones visitadas", "update_visited_regions_disclaimer": "Esto puede llevar un tiempo dependiendo de la cantidad de aventuras que hayas visitado.", "visited_region_check": "Verificación de región visitada", - "visited_region_check_desc": "Al seleccionar esto, el servidor verificará todas sus aventuras visitadas y marcará las regiones en las que se encuentran como visitadas en viajes mundiales." + "visited_region_check_desc": "Al seleccionar esto, el servidor verificará todas sus aventuras visitadas y marcará las regiones en las que se encuentran como visitadas en viajes mundiales.", + "add_new": "Agregar nuevo...", + "checklist": "Lista de verificación", + "checklists": "Listas de verificación", + "collection_archived": "Esta colección ha sido archivada.", + "collection_completed": "¡Has completado esta colección!", + "collection_stats": "Estadísticas de colección", + "days": "días", + "itineary_by_date": "Itinerario por fecha", + "keep_exploring": "¡Sigue explorando!", + "link_new": "Enlace nuevo...", + "linked_adventures": "Aventuras vinculadas", + "links": "Campo de golf", + "no_end_date": "Por favor ingresa una fecha de finalización", + "note": "Nota", + "notes": "Notas", + "nothing_planned": "Nada planeado para este día. \n¡Disfruta el viaje!", + "transportation": "Transporte", + "transportations": "Transportes", + "visit_link": "Visitar enlace", + "day": "Día", + "add_a_tag": "Agregar una etiqueta", + "tags": "Etiquetas" }, "worldtravel": { "all": "Todo", @@ -261,5 +284,86 @@ "password_is_required": "Se requiere contraseña", "submit": "Entregar", "invalid_token": "El token no es válido o ha caducado" + }, + "checklist": { + "add_item": "Agregar artículo", + "checklist_delete_error": "Error al eliminar la lista de verificación", + "checklist_deleted": "¡Lista de verificación eliminada exitosamente!", + "checklist_editor": "Editor de lista de verificación", + "checklist_public": "Esta lista de verificación es pública porque se encuentra en una colección pública.", + "editing_checklist": "Lista de verificación de edición", + "failed_to_save": "No se pudo guardar la lista de verificación", + "item": "Artículo", + "item_already_exists": "El artículo ya existe", + "item_cannot_be_empty": "El artículo no puede estar vacío", + "items": "Elementos", + "new_item": "Nuevo artículo", + "save": "Ahorrar" + }, + "collection": { + "collection_created": "¡Colección creada con éxito!", + "collection_edit_success": "¡Colección editada con éxito!", + "create": "Crear", + "edit_collection": "Editar colección", + "error_creating_collection": "Error al crear la colección", + "error_editing_collection": "Error al editar la colección", + "new_collection": "Nueva colección" + }, + "notes": { + "add_a_link": "Agregar un enlace", + "content": "Contenido", + "editing_note": "Nota de edición", + "failed_to_save": "No se pudo guardar la nota", + "note_delete_error": "Error al eliminar la nota", + "note_deleted": "¡Nota eliminada exitosamente!", + "note_editor": "Editor de notas", + "note_public": "Esta nota es pública porque está en una colección pública.", + "open": "Abierto", + "save": "Ahorrar", + "invalid_url": "URL no válida" + }, + "transportation": { + "date_and_time": "Fecha", + "error_editing_transportation": "Error al editar el transporte", + "modes": { + "bus": "Autobús", + "bike": "Bicicleta", + "boat": "Bote", + "car": "Auto", + "other": "Otro", + "plane": "Avión", + "train": "Tren", + "walking": "Caminando" + }, + "new_transportation": "Nuevo transporte", + "provide_start_date": "Por favor proporcione una fecha de inicio", + "start": "Comenzar", + "to_location": "A la ubicación", + "transport_type": "Tipo de transporte", + "transportation_deleted": "¡Transporte eliminado exitosamente!", + "transportation_edit_success": "Transporte editado exitosamente!", + "type": "Tipo", + "date_time": "Fecha de inicio", + "edit": "Editar", + "edit_transportation": "Editar transporte", + "end_date_time": "Fecha de finalización", + "flight_number": "Número de vuelo", + "from_location": "Desde la ubicación", + "transportation_added": "¡Transporte agregado exitosamente!", + "transportation_delete_error": "Error al eliminar el transporte" + }, + "search": { + "adventurelog_results": "Resultados del registro de aventuras", + "online_results": "Resultados en línea", + "public_adventures": "Aventuras públicas" + }, + "map": { + "add_adventure": "Agregar nueva aventura", + "add_adventure_at_marker": "Agregar nueva aventura en Marker", + "adventure_map": "Mapa de aventuras", + "clear_marker": "Borrar marcador", + "map_options": "Opciones de mapa", + "show_visited_regions": "Mostrar regiones visitadas", + "view_details": "Ver detalles" } } diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.json index f3cc7d05..171ab7e3 100644 --- a/frontend/src/locales/fr.json +++ b/frontend/src/locales/fr.json @@ -164,7 +164,27 @@ "update_visited_regions": "Mettre à jour les régions visitées", "update_visited_regions_disclaimer": "Cela peut prendre un certain temps en fonction du nombre d'aventures que vous avez visitées.", "visited_region_check": "Vérification de la région visitée", - "visited_region_check_desc": "En sélectionnant cette option, le serveur vérifiera toutes vos aventures visitées et marquera les régions dans lesquelles elles se trouvent comme visitées lors des voyages dans le monde." + "visited_region_check_desc": "En sélectionnant cette option, le serveur vérifiera toutes vos aventures visitées et marquera les régions dans lesquelles elles se trouvent comme visitées lors des voyages dans le monde.", + "add_new": "Ajouter un nouveau...", + "checklists": "Listes de contrôle", + "collection_archived": "Cette collection a été archivée.", + "collection_completed": "Vous avez terminé cette collection !", + "collection_stats": "Statistiques de collecte", + "days": "jours", + "itineary_by_date": "Itinéraire par date", + "keep_exploring": "Continuez à explorer !", + "link_new": "Lien Nouveau...", + "linked_adventures": "Aventures liées", + "links": "Links", + "no_end_date": "Veuillez saisir une date de fin", + "note": "Note", + "notes": "Remarques", + "nothing_planned": "Rien de prévu pour cette journée. \nBon voyage !", + "transportation": "Transport", + "transportations": "Transports", + "visit_link": "Visitez le lien", + "checklist": "Liste de contrôle", + "day": "Jour" }, "home": { "desc_1": "Découvrez, planifiez et explorez en toute simplicité", @@ -189,7 +209,6 @@ "greeting": "Salut", "logout": "Déconnexion", "map": "Carte", - "my_activities": "Mes activités", "my_adventures": "Mes aventures", "profile": "Profil", "search": "Recherche", @@ -261,5 +280,77 @@ "reset_password": "Réinitialiser le mot de passe", "submit": "Soumettre", "token_required": "Le jeton et l'UID sont requis pour la réinitialisation du mot de passe." + }, + "checklist": { + "add_item": "Ajouter un article", + "checklist_delete_error": "Erreur lors de la suppression de la liste de contrôle", + "checklist_deleted": "Liste de contrôle supprimée avec succès !", + "checklist_editor": "Éditeur de liste de contrôle", + "checklist_public": "Cette liste de contrôle est publique car elle fait partie d’une collection publique.", + "editing_checklist": "Liste de contrôle d'édition", + "failed_to_save": "Échec de l'enregistrement de la liste de contrôle", + "item": "Article", + "item_already_exists": "L'article existe déjà", + "item_cannot_be_empty": "L'élément ne peut pas être vide", + "items": "Articles", + "new_item": "Nouvel article", + "save": "Sauvegarder" + }, + "collection": { + "collection_created": "Collection créée avec succès !", + "collection_edit_success": "Collection modifiée avec succès !", + "create": "Créer", + "edit_collection": "Modifier la collection", + "error_creating_collection": "Erreur lors de la création de la collection", + "error_editing_collection": "Erreur lors de la modification de la collection", + "new_collection": "Nouvelle collection" + }, + "notes": { + "add_a_link": "Ajouter un lien", + "content": "Contenu", + "editing_note": "Note d'édition", + "failed_to_save": "Échec de l'enregistrement de la note", + "note_delete_error": "Erreur lors de la suppression de la note", + "note_deleted": "Note supprimée avec succès !", + "note_editor": "Éditeur de notes", + "note_public": "Cette note est publique car elle fait partie d'une collection publique.", + "open": "Ouvrir", + "save": "Sauvegarder", + "invalid_url": "URL invalide" + }, + "transportation": { + "date_time": "Date de début", + "edit": "Modifier", + "edit_transportation": "Modifier le transport", + "end_date_time": "Date de fin", + "error_editing_transportation": "Erreur lors de la modification du transport", + "flight_number": "Numéro du vol", + "from_location": "De l'emplacement", + "modes": { + "bike": "Vélo", + "boat": "Bateau", + "bus": "Bus", + "car": "Voiture", + "other": "Autre", + "plane": "Avion", + "train": "Former", + "walking": "Marche" + }, + "new_transportation": "Nouveau transport", + "provide_start_date": "Veuillez fournir une date de début", + "start": "Commencer", + "to_location": "Vers l'emplacement", + "transport_type": "Type de transport", + "type": "Taper", + "date_and_time": "Date", + "transportation_added": "Transport ajouté avec succès !", + "transportation_delete_error": "Erreur lors de la suppression du transport", + "transportation_deleted": "Transport supprimé avec succès !", + "transportation_edit_success": "Transport modifié avec succès !" + }, + "search": { + "adventurelog_results": "Résultats du journal d'aventure", + "online_results": "Résultats en ligne", + "public_adventures": "Aventures publiques" } } diff --git a/frontend/src/locales/it.json b/frontend/src/locales/it.json index 5192a578..0067bc1b 100644 --- a/frontend/src/locales/it.json +++ b/frontend/src/locales/it.json @@ -164,7 +164,27 @@ "update_visited_regions": "Aggiorna le regioni visitate", "update_visited_regions_disclaimer": "L'operazione potrebbe richiedere del tempo a seconda del numero di avventure che hai visitato.", "visited_region_check": "Controllo della regione visitata", - "visited_region_check_desc": "Selezionando questa opzione, il server controllerà tutte le avventure che hai visitato e contrassegnerà le regioni in cui si trovano come visitate nei viaggi per il mondo." + "visited_region_check_desc": "Selezionando questa opzione, il server controllerà tutte le avventure che hai visitato e contrassegnerà le regioni in cui si trovano come visitate nei viaggi per il mondo.", + "add_new": "Aggiungi nuovo...", + "checklist": "Lista di controllo", + "checklists": "Liste di controllo", + "collection_archived": "Questa raccolta è stata archiviata.", + "collection_completed": "Hai completato questa raccolta!", + "collection_stats": "Statistiche della raccolta", + "days": "giorni", + "itineary_by_date": "Itinerario per data", + "keep_exploring": "Continua a esplorare!", + "link_new": "Collegamento Nuovo...", + "linked_adventures": "Avventure collegate", + "links": "Collegamenti", + "no_end_date": "Inserisci una data di fine", + "note": "Nota", + "notes": "Note", + "nothing_planned": "Niente in programma per questa giornata. \nBuon viaggio!", + "transportation": "Trasporti", + "transportations": "Trasporti", + "visit_link": "Visita il collegamento", + "day": "Giorno" }, "home": { "desc_1": "Scopri, pianifica ed esplora con facilità", @@ -189,7 +209,6 @@ "greeting": "CIAO", "logout": "Esci", "map": "Mappa", - "my_activities": "Le mie attività", "my_adventures": "Le mie avventure", "profile": "Profilo", "search": "Ricerca", @@ -261,5 +280,77 @@ "reset_password": "Reimposta password", "submit": "Invia", "token_required": "Token e UID sono necessari per la reimpostazione della password." + }, + "checklist": { + "add_item": "Aggiungi articolo", + "checklist_delete_error": "Errore durante l'eliminazione della lista di controllo", + "checklist_deleted": "Lista di controllo eliminata con successo!", + "checklist_editor": "Redattore della lista di controllo", + "checklist_public": "Questa lista di controllo è pubblica perché è in una raccolta pubblica.", + "editing_checklist": "Lista di controllo per la modifica", + "failed_to_save": "Impossibile salvare la lista di controllo", + "item": "Articolo", + "item_already_exists": "L'articolo esiste già", + "item_cannot_be_empty": "L'articolo non può essere vuoto", + "items": "Elementi", + "save": "Salva", + "new_item": "Nuovo articolo" + }, + "collection": { + "edit_collection": "Modifica raccolta", + "error_creating_collection": "Errore durante la creazione della raccolta", + "error_editing_collection": "Errore durante la modifica della raccolta", + "new_collection": "Nuova collezione", + "collection_created": "Collezione creata con successo!", + "collection_edit_success": "Raccolta modificata con successo!", + "create": "Creare" + }, + "notes": { + "add_a_link": "Aggiungi un collegamento", + "content": "Contenuto", + "editing_note": "Nota di modifica", + "failed_to_save": "Impossibile salvare la nota", + "note_delete_error": "Errore durante l'eliminazione della nota", + "note_deleted": "Nota eliminata con successo!", + "note_editor": "Redattore della nota", + "note_public": "Questa nota è pubblica perché è in una collezione pubblica.", + "open": "Aprire", + "save": "Salva", + "invalid_url": "URL non valido" + }, + "transportation": { + "date_and_time": "Data", + "date_time": "Data di inizio", + "edit": "Modificare", + "edit_transportation": "Modifica Trasporti", + "end_date_time": "Data di fine", + "error_editing_transportation": "Errore durante la modifica del trasporto", + "flight_number": "Numero del volo", + "from_location": "Dalla posizione", + "modes": { + "bike": "Bicicletta", + "boat": "Barca", + "bus": "Autobus", + "car": "Auto", + "other": "Altro", + "plane": "Aereo", + "train": "Treno", + "walking": "A piedi" + }, + "new_transportation": "Nuovi trasporti", + "provide_start_date": "Si prega di fornire una data di inizio", + "start": "Inizio", + "to_location": "Alla posizione", + "transport_type": "Tipo di trasporto", + "transportation_added": "Trasporto aggiunto con successo!", + "transportation_delete_error": "Errore durante l'eliminazione del trasporto", + "transportation_deleted": "Trasporto eliminato con successo!", + "transportation_edit_success": "Trasporti modificati con successo!", + "type": "Tipo" + }, + "search": { + "adventurelog_results": "Risultati di AdventureLog", + "online_results": "Risultati in linea", + "public_adventures": "Avventure pubbliche" } } diff --git a/frontend/src/locales/nl.json b/frontend/src/locales/nl.json index 5871f8c6..7762ea2b 100644 --- a/frontend/src/locales/nl.json +++ b/frontend/src/locales/nl.json @@ -163,7 +163,28 @@ "update_visited_regions": "Update bezochte regio's", "update_visited_regions_disclaimer": "Dit kan even duren, afhankelijk van het aantal avonturen dat je hebt bezocht.", "visited_region_check": "Regiocheck bezocht", - "visited_region_check_desc": "Door dit te selecteren, controleert de server al uw bezochte avonturen en markeert de regio's waarin ze zich bevinden als bezocht in de wereldreizen." + "visited_region_check_desc": "Door dit te selecteren, controleert de server al uw bezochte avonturen en markeert de regio's waarin ze zich bevinden als bezocht in de wereldreizen.", + "add_new": "Nieuw toevoegen...", + "checklist": "Controlelijst", + "checklists": "Controlelijsten", + "collection_archived": "Deze collectie is gearchiveerd.", + "collection_completed": "Je hebt deze verzameling voltooid!", + "collection_stats": "Verzamelstatistieken", + "days": "dagen", + "itineary_by_date": "Reisplan op datum", + "keep_exploring": "Blijf verkennen!", + "link_new": "Nieuwe link...", + "linked_adventures": "Gekoppelde avonturen", + "links": "Koppelingen", + "mark_region_as_visited": "Regio {regio}, {country} markeren als bezocht?", + "no_end_date": "Voer een einddatum in", + "note": "Opmerking", + "notes": "Opmerkingen", + "nothing_planned": "Niets gepland voor deze dag. \nGeniet van de reis!", + "transportation": "Vervoer", + "transportations": "Transporten", + "visit_link": "Bezoek Link", + "day": "Dag" }, "home": { "desc_1": "Ontdek, plan en verken met gemak", @@ -188,7 +209,6 @@ "greeting": "Hoi", "logout": "Uitloggen", "map": "Kaart", - "my_activities": "Mijn activiteiten", "my_adventures": "Mijn avonturen", "profile": "Profiel", "search": "Zoekopdracht", @@ -260,5 +280,77 @@ "reset_password": "Wachtwoord opnieuw instellen", "submit": "Indienen", "token_required": "Token en UID zijn vereist voor het opnieuw instellen van het wachtwoord." + }, + "checklist": { + "add_item": "Artikel toevoegen", + "checklist_delete_error": "Fout bij verwijderen van checklist", + "checklist_deleted": "Controlelijst succesvol verwijderd!", + "checklist_editor": "Controlelijst-editor", + "checklist_public": "Deze checklist is openbaar omdat deze zich in een openbare collectie bevindt.", + "editing_checklist": "Controlelijst bewerken", + "failed_to_save": "Kan checklist niet opslaan", + "item": "Item", + "item_already_exists": "Artikel bestaat al", + "item_cannot_be_empty": "Artikel mag niet leeg zijn", + "items": "Artikelen", + "new_item": "Nieuw artikel", + "save": "Redden" + }, + "collection": { + "collection_created": "Collectie succesvol aangemaakt!", + "collection_edit_success": "Collectie succesvol bewerkt!", + "create": "Creëren", + "edit_collection": "Verzameling bewerken", + "error_creating_collection": "Fout bij maken collectie", + "error_editing_collection": "Fout bij bewerken collectie", + "new_collection": "Nieuwe collectie" + }, + "notes": { + "add_a_link": "Voeg een link toe", + "content": "Inhoud", + "editing_note": "Notitie bewerken", + "failed_to_save": "Kan notitie niet opslaan", + "note_delete_error": "Fout bij verwijderen van notitie", + "note_deleted": "Opmerking succesvol verwijderd!", + "note_editor": "Notitie-editor", + "note_public": "Deze notitie is openbaar omdat deze zich in een openbare collectie bevindt.", + "open": "Open", + "save": "Redden", + "invalid_url": "Ongeldige URL" + }, + "transportation": { + "date_and_time": "Datum", + "date_time": "Startdatum", + "edit": "Bewerking", + "edit_transportation": "Transport bewerken", + "end_date_time": "Einddatum", + "error_editing_transportation": "Fout bij bewerken van transport", + "flight_number": "Vluchtnummer", + "from_location": "Van locatie", + "modes": { + "bike": "Fiets", + "boat": "Boot", + "train": "Trein", + "bus": "Bus", + "car": "Auto", + "other": "Ander", + "plane": "Vliegtuig", + "walking": "Lopen" + }, + "to_location": "Naar locatie", + "transportation_edit_success": "Transport succesvol bewerkt!", + "type": "Type", + "new_transportation": "Nieuw transport", + "provide_start_date": "Geef een startdatum op", + "start": "Begin", + "transport_type": "Transporttype", + "transportation_added": "Transport succesvol toegevoegd!", + "transportation_delete_error": "Fout bij verwijderen transport", + "transportation_deleted": "Transport succesvol verwijderd!" + }, + "search": { + "adventurelog_results": "AdventureLog-resultaten", + "online_results": "Online resultaten", + "public_adventures": "Openbare avonturen" } } diff --git a/frontend/src/locales/sv.json b/frontend/src/locales/sv.json index eabc4a55..6534082f 100644 --- a/frontend/src/locales/sv.json +++ b/frontend/src/locales/sv.json @@ -164,7 +164,27 @@ "update_visited_regions_disclaimer": "Detta kan ta ett tag beroende på antalet äventyr du har besökt.", "visited_region_check": "Besökte Region Check", "visited_region_check_desc": "Genom att välja detta kommer servern att kontrollera alla dina besökta äventyr och markera de regioner de befinner sig i som besökta i världsresor.", - "wikipedia": "Wikipedia" + "wikipedia": "Wikipedia", + "add_new": "Lägg till ny...", + "checklist": "Checklista", + "checklists": "Checklistor", + "collection_archived": "Denna samling har arkiverats.", + "collection_completed": "Du har slutfört den här samlingen!", + "collection_stats": "Insamlingsstatistik", + "days": "dagar", + "itineary_by_date": "Resplan efter datum", + "keep_exploring": "Fortsätt utforska!", + "link_new": "Länk Ny...", + "linked_adventures": "Länkade äventyr", + "links": "Länkar", + "no_end_date": "Ange ett slutdatum", + "note": "Notera", + "notes": "Anteckningar", + "nothing_planned": "Inget planerat för denna dag. \nNjut av resan!", + "transportation": "Transport", + "transportations": "Transporter", + "visit_link": "Besök länken", + "day": "Dag" }, "home": { "desc_1": "Upptäck, planera och utforska med lätthet", @@ -189,7 +209,6 @@ "greeting": "Hej", "logout": "Utloggning", "map": "Karta", - "my_activities": "Mina aktiviteter", "my_adventures": "Mina äventyr", "profile": "Profil", "search": "Söka", @@ -261,5 +280,77 @@ "reset_password": "Återställ lösenord", "submit": "Överlämna", "token_required": "Token och UID krävs för lösenordsåterställning." + }, + "checklist": { + "add_item": "Lägg till objekt", + "checklist_delete_error": "Fel vid borttagning av checklista", + "checklist_deleted": "Checklistan har raderats!", + "checklist_editor": "Checklista Editor", + "checklist_public": "Den här checklistan är offentlig eftersom den finns i en offentlig samling.", + "editing_checklist": "Redigeringschecklista", + "failed_to_save": "Det gick inte att spara checklistan", + "item": "Punkt", + "item_already_exists": "Objektet finns redan", + "item_cannot_be_empty": "Objektet får inte vara tomt", + "items": "Föremål", + "new_item": "Nytt föremål", + "save": "Spara" + }, + "collection": { + "collection_created": "Samlingen har skapats!", + "collection_edit_success": "Samlingen har redigerats!", + "create": "Skapa", + "edit_collection": "Redigera samling", + "error_creating_collection": "Det gick inte att skapa samlingen", + "error_editing_collection": "Fel vid redigering av samling", + "new_collection": "Ny samling" + }, + "notes": { + "add_a_link": "Lägg till en länk", + "content": "Innehåll", + "editing_note": "Redigeringsanteckning", + "failed_to_save": "Det gick inte att spara anteckningen", + "note_delete_error": "Det gick inte att ta bort anteckningen", + "note_deleted": "Anteckningen har raderats!", + "note_editor": "Note Editor", + "note_public": "Den här anteckningen är offentlig eftersom den finns i en offentlig samling.", + "open": "Öppna", + "save": "Spara", + "invalid_url": "Ogiltig URL" + }, + "transportation": { + "date_and_time": "Datum", + "date_time": "Startdatum", + "edit": "Redigera", + "edit_transportation": "Redigera transport", + "end_date_time": "Slutdatum", + "error_editing_transportation": "Fel vid redigering av transport", + "flight_number": "Flygnummer", + "from_location": "Från plats", + "modes": { + "bike": "Cykel", + "boat": "Båt", + "bus": "Buss", + "car": "Bil", + "other": "Andra", + "plane": "Plan", + "train": "Tåg", + "walking": "Gående" + }, + "new_transportation": "Nya transporter", + "provide_start_date": "Ange ett startdatum", + "start": "Start", + "to_location": "Till Plats", + "transport_type": "Transporttyp", + "transportation_added": "Transport har lagts till!", + "transportation_delete_error": "Det gick inte att ta bort transport", + "transportation_deleted": "Transporten har raderats!", + "transportation_edit_success": "Transporten har redigerats!", + "type": "Typ" + }, + "search": { + "adventurelog_results": "AdventureLog-resultat", + "online_results": "Online resultat", + "public_adventures": "Offentliga äventyr" } } diff --git a/frontend/src/locales/zh.json b/frontend/src/locales/zh.json index 1db13e69..48041891 100644 --- a/frontend/src/locales/zh.json +++ b/frontend/src/locales/zh.json @@ -164,7 +164,27 @@ "update_visited_regions": "更新访问过的地区", "update_visited_regions_disclaimer": "这可能需要一段时间,具体取决于您访问过的冒险活动的数量。", "visited_region_check": "访问地区检查", - "visited_region_check_desc": "通过选择此选项,服务器将检查您访问过的所有冒险活动,并将它们所在的区域标记为在世界旅行中访问过的区域。" + "visited_region_check_desc": "通过选择此选项,服务器将检查您访问过的所有冒险活动,并将它们所在的区域标记为在世界旅行中访问过的区域。", + "add_new": "添加新...", + "checklist": "清单", + "checklists": "清单", + "collection_archived": "该藏品已存档。", + "collection_completed": "您已经完成了这个合集!", + "collection_stats": "集合统计", + "days": "天", + "itineary_by_date": "行程(按日期)", + "keep_exploring": "继续探索!", + "link_new": "链接新...", + "linked_adventures": "关联的冒险", + "links": "链接", + "no_end_date": "请输入结束日期", + "note": "笔记", + "notes": "笔记", + "nothing_planned": "这一天没有什么计划。\n祝旅途愉快!", + "transportation": "运输", + "transportations": "交通", + "visit_link": "访问链接", + "day": "天" }, "home": { "desc_1": "轻松发现、规划和探索", @@ -189,7 +209,6 @@ "greeting": "你好", "logout": "退出", "map": "地图", - "my_activities": "我的活动", "my_adventures": "我的冒险", "profile": "轮廓", "search": "搜索", @@ -261,5 +280,77 @@ "reset_password": "重置密码", "submit": "提交", "token_required": "重置密码需要令牌和 UID。" + }, + "checklist": { + "add_item": "添加项目", + "checklist_delete_error": "删除清单时出错", + "checklist_deleted": "清单删除成功!", + "checklist_editor": "清单编辑器", + "checklist_public": "该清单是公开的,因为它属于公共收藏。", + "editing_checklist": "编辑清单", + "failed_to_save": "保存清单失败", + "item": "物品", + "item_already_exists": "项目已存在", + "item_cannot_be_empty": "项目不能为空", + "items": "项目", + "new_item": "新商品", + "save": "节省" + }, + "collection": { + "collection_created": "收藏创建成功!", + "collection_edit_success": "合集编辑成功!", + "create": "创造", + "edit_collection": "编辑收藏", + "error_creating_collection": "创建集合时出错", + "error_editing_collection": "编辑集合时出错", + "new_collection": "新系列" + }, + "notes": { + "add_a_link": "添加链接", + "content": "内容", + "editing_note": "编辑注释", + "failed_to_save": "保存笔记失败", + "note_delete_error": "删除笔记时出错", + "note_deleted": "备注删除成功!", + "note_editor": "笔记编辑器", + "note_public": "该笔记是公开的,因为它属于公共收藏。", + "open": "打开", + "save": "节省", + "invalid_url": "无效网址" + }, + "transportation": { + "date_and_time": "日期", + "date_time": "开始日期", + "edit": "编辑", + "edit_transportation": "编辑交通", + "end_date_time": "结束日期", + "error_editing_transportation": "编辑交通时出错", + "flight_number": "航班", + "from_location": "出发地点", + "modes": { + "bike": "自行车", + "boat": "船", + "bus": "公共汽车", + "car": "车", + "other": "其他", + "plane": "飞机", + "train": "火车", + "walking": "步行" + }, + "new_transportation": "新交通", + "provide_start_date": "请提供开始日期", + "start": "开始", + "to_location": "前往地点", + "transport_type": "运输类型", + "transportation_added": "交通添加成功!", + "transportation_delete_error": "删除交通时出错", + "transportation_deleted": "交通删除成功!", + "transportation_edit_success": "交通编辑成功!", + "type": "类型" + }, + "search": { + "adventurelog_results": "冒险日志结果", + "online_results": "在线结果", + "public_adventures": "公共冒险" } } diff --git a/frontend/src/routes/activities/+page.svelte b/frontend/src/routes/activities/+page.svelte index 48aad878..89aa22c5 100644 --- a/frontend/src/routes/activities/+page.svelte +++ b/frontend/src/routes/activities/+page.svelte @@ -12,7 +12,7 @@ - + @@ -33,6 +33,6 @@
    {$t('adventures.activity')}{$t('navbar.tag')} {$t('adventures.actions')}
    - My Activities - + My Tags + diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index 717886fc..ae379b19 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -508,7 +508,8 @@ ] || []}

    - Day {i + 1} + {$t('adventures.day')} + {i + 1}

    {adjustedDate.toLocaleDateString(undefined, { timeZone: 'UTC' })} diff --git a/frontend/src/routes/map/+page.svelte b/frontend/src/routes/map/+page.svelte index a8580c1b..6bf8d8f0 100644 --- a/frontend/src/routes/map/+page.svelte +++ b/frontend/src/routes/map/+page.svelte @@ -63,21 +63,21 @@ } -

    Adventure Map

    +

    {$t('map.adventure_map')}

    -

    Map Options

    +

    {$t('map.map_options')}

    - +
    {#if newMarker} {$t('map.add_adventure_at_marker')} {$t('map.clear_marker')} {:else} {$t('map.add_adventure')} {/if}
    @@ -160,7 +160,7 @@ {/if} goto(`/adventures/${adventure.id}`)}>{$t('map.view_details')} {/if} diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelte index ed005aee..20e6de1e 100644 --- a/frontend/src/routes/search/+page.svelte +++ b/frontend/src/routes/search/+page.svelte @@ -4,10 +4,9 @@ import type { Adventure, OpenStreetMapPlace } from '$lib/types'; import { onMount } from 'svelte'; import type { PageData } from './$types'; - import EditAdventure from '$lib/components/AdventureModal.svelte'; - import { appVersion } from '$lib/config'; import { goto } from '$app/navigation'; import AdventureModal from '$lib/components/AdventureModal.svelte'; + import { t } from 'svelte-i18n'; export let data: PageData; @@ -42,9 +41,7 @@ publicAdventures = data.props.adventures; if (data.user?.pk != null) { - myAdventures = myAdventures.filter( - (adventure) => adventure.user_id === data.user?.pk ?? -1 - ); + myAdventures = myAdventures.filter((adventure) => adventure.user_id === data.user?.pk); } else { myAdventures = []; } @@ -93,14 +90,14 @@ {/if} {#if myAdventures.length !== 0} -

    AdventureLog Results

    +

    {$t('search.adventurelog_results')}

    (property = 'all')} @@ -109,7 +106,7 @@ class="join-item btn" type="radio" name="filter" - aria-label="Name" + aria-label={$t('adventures.name')} id="name" on:change={() => (property = 'name')} /> @@ -117,7 +114,7 @@ class="join-item btn" type="radio" name="filter" - aria-label="Type" + aria-label={$t('transportation.type')} id="type" on:change={() => (property = 'type')} /> @@ -125,7 +122,7 @@ class="join-item btn" type="radio" name="filter" - aria-label="Location" + aria-label={$t('adventures.location')} id="location" on:change={() => (property = 'location')} /> @@ -133,7 +130,7 @@ class="join-item btn" type="radio" name="filter" - aria-label="Description" + aria-label={$t('adventures.description')} id="description" on:change={() => (property = 'description')} /> @@ -141,17 +138,19 @@ class="join-item btn" type="radio" name="filter" - aria-label="Activity Types" + aria-label={$t('adventures.activity_types')} id="activity_types" on:change={() => (property = 'activity_types')} />
    - +
    {/if} {#if myAdventures.length > 0} -

    My Adventures

    +

    {$t('adventures.my_adventures')}

    {#each myAdventures as adventure} 0} -

    Public Adventures

    +

    {$t('search.public_adventures')}

    {#each publicAdventures as adventure}
    {/if} {#if osmResults.length > 0} -

    Online Results

    +

    {$t('search.online_results')}

    {#each osmResults as result}