Skip to content

Commit

Permalink
Update localization for activities and adventures; change links and p…
Browse files Browse the repository at this point in the history
…laceholders
  • Loading branch information
seanmorley15 committed Nov 5, 2024
1 parent 7988ba4 commit 9ac4a8f
Show file tree
Hide file tree
Showing 17 changed files with 738 additions and 54 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/AboutModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<p class="py-1">
© {copyrightYear}
<a
href="https://github.com/seanmorley15"
href="https://seanmorley.com"
target="_blank"
rel="noopener noreferrer"
class="text-primary-500 underline">Sean Morley</a
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ActivityComplete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<input
type="text"
class="input input-bordered w-full"
placeholder={$t('adventures.add_an_activity')}
placeholder={$t('adventures.add_a_tag')}
bind:value={inputVal}
on:keydown={(e) => {
if (e.key === 'Enter') {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/AdventureModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
<div class="collapse collapse-plus bg-base-200 mb-4 overflow-visible">
<input type="checkbox" />
<div class="collapse-title text-xl font-medium">
{$t('adventures.activity_types')} ({adventure.activity_types?.length || 0})
{$t('adventures.tags')} ({adventure.activity_types?.length || 0})
</div>
<div class="collapse-content">
<input
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</p>
<li><button on:click={() => goto('/profile')}>{$t('navbar.profile')}</button></li>
<li><button on:click={() => goto('/adventures')}>{$t('navbar.my_adventures')}</button></li>
<li><button on:click={() => goto('/activities')}>{$t('navbar.my_activities')}</button></li>
<li><button on:click={() => goto('/activities')}>{$t('navbar.my_tags')}</button></li>
<li><button on:click={() => goto('/shared')}>{$t('navbar.shared_with_me')}</button></li>
<li><button on:click={() => goto('/settings')}>{$t('navbar.settings')}</button></li>
<form method="post">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/NoteModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -150,7 +150,7 @@
<input
type="url"
class="input input-bordered w-full mb-1"
placeholder="${$t('notes.add_a_link')} (e.g. https://example.com)"
placeholder="{$t('notes.add_a_link')} (e.g. https://example.com)"
bind:value={newLink}
on:keydown={(e) => {
if (e.key === 'Enter') {
Expand Down
110 changes: 107 additions & 3 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -189,7 +211,6 @@
"greeting": "Hallo",
"logout": "Abmelden",
"map": "Karte",
"my_activities": "Meine Aktivitäten",
"my_adventures": "Meine Abenteuer",
"profile": "Profil",
"search": "Suchen",
Expand All @@ -206,7 +227,9 @@
"night": "Nacht"
},
"users": "Benutzer",
"worldtravel": "Weltreisen"
"worldtravel": "Weltreisen",
"my_tags": "Meine Tags",
"tag": "Etikett"
},
"auth": {
"confirm_password": "Passwort bestätigen",
Expand Down Expand Up @@ -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"
}
}
26 changes: 23 additions & 3 deletions frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -78,13 +79,16 @@
"adventure": "Adventure",
"count_txt": "results matching your search",
"sort": "Sort",
"order_by": "Order By",
"order_direction": "Order Direction",
"ascending": "Ascending",
"descending": "Descending",
"updated": "Updated",
"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",
Expand Down Expand Up @@ -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 🌍",
Expand Down Expand Up @@ -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!",
Expand Down Expand Up @@ -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"
}
}
110 changes: 107 additions & 3 deletions frontend/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
Loading

0 comments on commit 9ac4a8f

Please sign in to comment.