adds missing translations
This commit is contained in:
@@ -36,6 +36,6 @@ docker exec -it wanderer-web run-parts /etc/periodic/15min
|
||||
|
||||
## Export
|
||||
|
||||
Currently, wanderer supports exporting only for single trails. A bulk export feature is planned for the near future.
|
||||
To export a single trail head over to `/trails` and select the trail you want to export. From the ⋮ menu select "Export". You can export the route data either in GPX or in GeoJSON format. Furthermore, you can choose whether you want to include the photos and the summit book of the trail. In any case, wanderer will create a ZIP archive with all the data that is then downloaded.
|
||||
|
||||
To export a trail head over to `/trails` and select the trail you want to export. From the ⋮ menu select "Export". You can export the route data either in GPX or in GeoJSON format. Furthermore, you can choose whether you want to include the photos and the summit book of the trail. In any case, wanderer will create a ZIP archive with all the data that is then downloaded.
|
||||
You can also export all of your trails at once. To do so, head over to `/settings/export` and click "Export all trails". The other steps remain analogous to exporting a single trail.
|
||||
@@ -29,7 +29,7 @@
|
||||
{/if}
|
||||
<select
|
||||
{name}
|
||||
class="bg-input-background h-10 w-full px-4 border-r-8 border-transparent outline outline-1 outline-input-border rounded-md focus:outline-input-border-focus transition-colors"
|
||||
class="block bg-input-background h-10 px-4 border-r-8 border-transparent outline outline-1 outline-input-border rounded-md focus:outline-input-border-focus transition-colors"
|
||||
class:text-gray-500={disabled}
|
||||
{disabled}
|
||||
bind:value
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<Modal
|
||||
id="password-modal"
|
||||
size="max-w-xl"
|
||||
size="max-w-sm"
|
||||
title={$_("change-password")}
|
||||
bind:openModal={_openModal}
|
||||
bind:closeModal
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<script lang="ts">
|
||||
import { goto } from "$app/navigation";
|
||||
import type { DropdownItem } from "../base/dropdown.svelte";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let selected: number;
|
||||
|
||||
const items: DropdownItem[] = [
|
||||
{ text: "My Account", value: "/settings/account" },
|
||||
{ text: "Display", value: "/settings/display" },
|
||||
{ text: "Import/Export", value: "/settings/export" },
|
||||
{ text: "Help", value: "https://wanderer.to" },
|
||||
{ text: $_("my-account"), value: "/settings/account" },
|
||||
{ text: $_("display"), value: "/settings/display" },
|
||||
{ text: `${$_("import")}/${$_("export")}`, value: "/settings/export" },
|
||||
{ text: $_('help'), value: "https://wanderer.to" },
|
||||
];
|
||||
|
||||
function handleItemClick(item: DropdownItem) {
|
||||
if (item.text != "Help") {
|
||||
goto(item.value);
|
||||
} else {
|
||||
window.open(item.value, '_blank');
|
||||
window.open(item.value, "_blank");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -43,22 +43,22 @@
|
||||
{
|
||||
text: $_("altitude"),
|
||||
value: "altitude",
|
||||
icon: selectedMetric == "altitude" ? "square-check" : "square",
|
||||
icon: selectedMetric == "altitude" ? "circle-dot" : "circle",
|
||||
},
|
||||
{
|
||||
text: $_("slope"),
|
||||
value: "slope",
|
||||
icon: selectedMetric == "slope" ? "square-check" : "square",
|
||||
icon: selectedMetric == "slope" ? "circle-dot" : "circle",
|
||||
},
|
||||
{
|
||||
text: $_("speed"),
|
||||
value: "speed",
|
||||
icon: selectedMetric == "speed" ? "square-check" : "square",
|
||||
icon: selectedMetric == "speed" ? "circle-dot" : "circle",
|
||||
},
|
||||
{
|
||||
text: $_("off"),
|
||||
value: false,
|
||||
icon: selectedMetric == false ? "square-check" : "square",
|
||||
icon: selectedMetric == false ? "circle-dot" : "circle",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
export let openModal: (() => void) | undefined = undefined;
|
||||
export let closeModal: (() => void) | undefined = undefined;
|
||||
export let title: string = $_("export");
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
||||
const fileFormats = [
|
||||
{ text: "GPX", value: "gpx" },
|
||||
{ text: "GeoJSON", value: "json" },
|
||||
@@ -21,20 +21,13 @@
|
||||
summitLog: false,
|
||||
};
|
||||
|
||||
|
||||
function exportTrail() {
|
||||
dispatch("export", exportSettings);
|
||||
closeModal!();
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal
|
||||
id="export-modal"
|
||||
title="Export trail"
|
||||
size="max-w-sm"
|
||||
bind:openModal
|
||||
bind:closeModal
|
||||
>
|
||||
<Modal id="export-modal" {title} size="max-w-sm" bind:openModal bind:closeModal>
|
||||
<div slot="content">
|
||||
<div class="mb-3">
|
||||
<Select
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "Radfahren",
|
||||
"Canoeing": "Kanufahren",
|
||||
"Climbing": "Klettern",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "Wandern",
|
||||
"Skiing": "Skifahren",
|
||||
"Walking": "Laufen",
|
||||
@@ -24,11 +23,11 @@
|
||||
"categories": "Kategorien",
|
||||
"category": "Kategorie",
|
||||
"change": "Ändern",
|
||||
"change-email": "",
|
||||
"change-password": "",
|
||||
"change-email": "Email ändern",
|
||||
"change-password": "Passwort ändern",
|
||||
"changelog": "Changelog",
|
||||
"chinese": "Chinesisch (vereinfacht)",
|
||||
"close": "",
|
||||
"close": "Schließen",
|
||||
"comment": "{n, plural, =1 {Kommentar} other {Kommentare}}",
|
||||
"completed": "Abgeschlossen",
|
||||
"completion-status": "Abschlussstatus",
|
||||
@@ -36,11 +35,11 @@
|
||||
"copy-link": "Link kopieren",
|
||||
"create-new-list": "Neue Liste erstellen",
|
||||
"creation-date": "Erstellungsdatum",
|
||||
"current-password": "",
|
||||
"current-password": "Aktuelles Passwort",
|
||||
"cycling": "Radfahren",
|
||||
"danger-zone": "Gefahrenzone",
|
||||
"date": "Datum",
|
||||
"default-category": "",
|
||||
"default-category": "Standard Kategorie",
|
||||
"default-location": "Standort",
|
||||
"delete": "Löschen",
|
||||
"delete-account": "Konto löschen",
|
||||
@@ -51,7 +50,7 @@
|
||||
"difficult": "Schwer",
|
||||
"difficulty": "Schwierigkeit",
|
||||
"directions": "Wegbeschreibung",
|
||||
"display": "",
|
||||
"display": "Anzeige",
|
||||
"display-as": "Anzeigen als",
|
||||
"distance": "Distanz",
|
||||
"documentation": "Dokumentation",
|
||||
@@ -72,18 +71,21 @@
|
||||
"error-exporting-trail": "Fehler beim Exportieren des Trails",
|
||||
"error-printing-map": "Fehler beim Drucken der Karte",
|
||||
"error-reading-file": "Fehler beim Lesen der Datei",
|
||||
"error-updating-password": "",
|
||||
"error-saving-trail": "Fehler bei Speichern der Route",
|
||||
"error-updating-password": "Fehler beim Aktualisieren des Passworts",
|
||||
"est-duration": "Gesch. Dauer",
|
||||
"explore": "Erkunden",
|
||||
"explore-some-trails": "Erkunden Sie einige Routen",
|
||||
"export": "Exportieren",
|
||||
"export-all-trails": "Alle Routen exportieren",
|
||||
"features": "Features",
|
||||
"file-format": "Dateiformat",
|
||||
"focus-map-on": "",
|
||||
"focus-map-on": "Karte fokussieren auf",
|
||||
"french": "Französisch",
|
||||
"german": "Deutsch",
|
||||
"get-position-from-exif": "Koordinaten aus EXIF Daten",
|
||||
"grid": "Gitter",
|
||||
"help": "Hilfe",
|
||||
"hero_section_0_text": "Entdecke spannende Routen, speichere deine Favoriten und erlebe die Schönheit der Natur. Finde dein nächstes Abenteuer!",
|
||||
"hero_section_1_heading": "Hier gibt es noch keine Routen",
|
||||
"hero_section_1_text": "Hier sind einige Routen, die dir gefallen könnten. Oder du wirfst einen Blick auf die vollständige Liste.",
|
||||
@@ -93,7 +95,8 @@
|
||||
"hungarian": "Ungarisch",
|
||||
"icon": "Icon",
|
||||
"imperial": "Amerikanisch",
|
||||
"import": "",
|
||||
"import": "Importieren",
|
||||
"import-hint": "GPX, FIT, KML oder TCX Dateien auswählen oder hierher ziehen...",
|
||||
"include-description": "Beschreibung übernehmen",
|
||||
"invalid-date": "Ungültiges Datum",
|
||||
"invalid-username": "Ungültiger Nutzername",
|
||||
@@ -101,11 +104,11 @@
|
||||
"language": "Sprache",
|
||||
"latitude": "Breitengrad",
|
||||
"license": "Lizenz",
|
||||
"link-copied": "",
|
||||
"link-copied": "Link kopiert",
|
||||
"list": "{n, plural, =1 {Liste} other {Listen}}",
|
||||
"location": "Standort",
|
||||
"login": "Login",
|
||||
"login-details": "",
|
||||
"login-details": "Login Details",
|
||||
"logout": "Logout",
|
||||
"longitude": "Längengrad",
|
||||
"make-one": "Neues erstellen!",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metrisch",
|
||||
"moderate": "Mittel",
|
||||
"must-be-at-least-n-characters-long": "Muss mindestens {n} Zeichen lang sein",
|
||||
"my-account": "Mein Konto",
|
||||
"n-days-ago": "vor {n} Tagen",
|
||||
"n-hours-ago": "vor {n} Stunden",
|
||||
"n-minutes-ago": "vor {n} Minuten",
|
||||
@@ -123,7 +127,7 @@
|
||||
"name": "Name",
|
||||
"near": "Nahe",
|
||||
"new-list": "Neue Liste",
|
||||
"new-password": "",
|
||||
"new-password": "Neues Passwort",
|
||||
"new-trail": "Neue Route",
|
||||
"no-account": "Du hast noch kein Konto?",
|
||||
"no-preference": "Keine Präferenz",
|
||||
@@ -135,7 +139,7 @@
|
||||
"orientation": "Ausrichtung",
|
||||
"paper-size": "Papierformat",
|
||||
"password": "Passwort",
|
||||
"password-updated": "",
|
||||
"password-updated": "Passwort aktualisiert",
|
||||
"photos": "Fotos",
|
||||
"pick-a-trail": "Route auswählen",
|
||||
"polish": "Polnisch",
|
||||
@@ -168,14 +172,15 @@
|
||||
"stop-drawing": "Zeichnen beenden",
|
||||
"summit-book": "Gipfelbuch",
|
||||
"text": "Text",
|
||||
"tilesets": "",
|
||||
"tilesets": "Tilesets",
|
||||
"trail": "{n, plural, =1 {Route} other {Routen}}",
|
||||
"trail-not-shared": "Route mit niemandem geteilt",
|
||||
"trail-saved-successfully": "Route gespeichert",
|
||||
"trails-for-you": "Routen für dich",
|
||||
"units": "Einheiten",
|
||||
"upload-file": "Datei hochladen",
|
||||
"upload-gpx": "GPX hochladen",
|
||||
"uploaded": "",
|
||||
"uploaded": "hochgeladen",
|
||||
"username": "Nutzername",
|
||||
"view": "Ansehen",
|
||||
"waypoints": "{n, plural, =1 {Wegpunkt} other {Wegpunkte}}",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "Biking",
|
||||
"Canoeing": "Canoeing",
|
||||
"Climbing": "Climbing",
|
||||
"export-all-trails": "Export all trails",
|
||||
"Hiking": "Hiking",
|
||||
"Skiing": "Skiing",
|
||||
"Walking": "Walking",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "Error exporting trail",
|
||||
"error-printing-map": "Error printing map",
|
||||
"error-reading-file": "Error reading file",
|
||||
"error-saving-trail": "Error saving trail",
|
||||
"error-updating-password": "Error updating password",
|
||||
"est-duration": "Est. duration",
|
||||
"explore": "Explore",
|
||||
"explore-some-trails": "Explore some trails",
|
||||
"export": "Export",
|
||||
"export-all-trails": "Export all trails",
|
||||
"features": "Features",
|
||||
"file-format": "File format",
|
||||
"focus-map-on": "Focus map on",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "German",
|
||||
"get-position-from-exif": "Get coordinates from EXIF data",
|
||||
"grid": "Grid",
|
||||
"help": "Help",
|
||||
"hero_section_0_text": "Explore exciting trails, save your favorites, and experience the beauty of nature. Find your next adventure!",
|
||||
"hero_section_1_heading": "It seems there are no trails here yet.",
|
||||
"hero_section_1_text": "Here are some trails you might like. Or you can just go to the full list right now.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Icon",
|
||||
"imperial": "Imperial",
|
||||
"import": "Import",
|
||||
"import-hint": "Select or drag GPX, FIT, KML or TCX files here...",
|
||||
"include-description": "Include description",
|
||||
"invalid-date": "Invalid Date",
|
||||
"invalid-username": "Invalid username",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metric",
|
||||
"moderate": "Moderate",
|
||||
"must-be-at-least-n-characters-long": "Must be at least {n} characters long",
|
||||
"my-account": "My Account",
|
||||
"n-days-ago": "{n} days ago",
|
||||
"n-hours-ago": "{n} hours ago",
|
||||
"n-minutes-ago": "{n} minutes ago",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "Custom tilesets",
|
||||
"trail": "{n, plural, =1 {Trail} other {Trails}}",
|
||||
"trail-not-shared": "Not shared with anyone",
|
||||
"trail-saved-successfully": "Trail saved successfully",
|
||||
"trails-for-you": "Trails for you",
|
||||
"units": "Units",
|
||||
"upload-file": "Upload file",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "Erreur d'impression de la carte",
|
||||
"error-reading-file": "Erreur de lecture du fichier",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Temps estimé",
|
||||
"explore": "Explorer",
|
||||
"explore-some-trails": "Explorer certains itinéraires",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "Fonctionnalités",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Allemand",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "Grille",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Explorez des itinéraires passionnants, sauvegardez vos favoris et découvrez la beauté de la nature. Trouvez votre prochaine aventure !",
|
||||
"hero_section_1_heading": "Il semble qu'il n'y ait pas encore d'itinéraire ici.",
|
||||
"hero_section_1_text": "Voici quelques itinéraires qui pourraient vous plaire. Vous pouvez également consulter la liste complète dès maintenant.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Icône",
|
||||
"imperial": "Impérial",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "Inclure la description",
|
||||
"invalid-date": "Date invalide",
|
||||
"invalid-username": "Nom d'utilisateur invalide",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Métrique",
|
||||
"moderate": "Modérer",
|
||||
"must-be-at-least-n-characters-long": "Doit être composé d'au moins {n} caractères",
|
||||
"my-account": "",
|
||||
"n-days-ago": "il y a {n} jours",
|
||||
"n-hours-ago": "il y a {n} heures",
|
||||
"n-minutes-ago": "il y a {n} minutes",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Itinéraire} other {Itinéraires}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Itinéraire pour vous",
|
||||
"units": "Unités",
|
||||
"upload-file": "Téléverser un fichier",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "",
|
||||
"error-reading-file": "Hiba a fájl olvasása közben",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Becsült időtartam",
|
||||
"explore": "Felfedezés",
|
||||
"explore-some-trails": "Fedezzen fel néhány ösvényt",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "Jellemzők",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Német",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Fedezze fel az izgalmas útvonalakat, mentse el kedvenceit, és tapasztalja meg a természet szépségét. Találja meg a következő kalandját!",
|
||||
"hero_section_1_heading": "Úgy tűnik, itt még nincsenek ösvények.",
|
||||
"hero_section_1_text": "Íme néhány nyomvonal, amely tetszeni fog. Vagy csak menj a teljes listára most rögtön.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Ikon",
|
||||
"imperial": "Angolszász",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "",
|
||||
"invalid-date": "Érvénytelen dátum",
|
||||
"invalid-username": "Érvénytelen felhasználó",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metrikus",
|
||||
"moderate": "Mérsékelt",
|
||||
"must-be-at-least-n-characters-long": "Legalább {n} karakter hosszúnak kell lennie",
|
||||
"my-account": "",
|
||||
"n-days-ago": "",
|
||||
"n-hours-ago": "",
|
||||
"n-minutes-ago": "",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Útvonal} other {Útvonalak}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Útvonalak önnek",
|
||||
"units": "Mértékegységek",
|
||||
"upload-file": "Fájl feltöltése",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "Ciclismo",
|
||||
"Canoeing": "Canoa",
|
||||
"Climbing": "Arrampicata",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "Escursionismo",
|
||||
"Skiing": "Sciare",
|
||||
"Walking": "Camminare",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "Errore durante l'esportazione del percorso",
|
||||
"error-printing-map": "Errore durante la stampa della mappa",
|
||||
"error-reading-file": "Errore durante la lettura del file",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Durata stimata",
|
||||
"explore": "Esplora",
|
||||
"explore-some-trails": "Esplora alcuni percorsi",
|
||||
"export": "Esporta",
|
||||
"export-all-trails": "",
|
||||
"features": "Caratteristiche",
|
||||
"file-format": "Formato del file",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Tedesco",
|
||||
"get-position-from-exif": "Ottieni posizione da dati EXIF",
|
||||
"grid": "Griglia",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Scopri percorsi emozionanti, salva i tuoi preferiti e vivi la bellezza della natura. Trova la tua prossima avventura!",
|
||||
"hero_section_1_heading": "Non ci sono ancora percorsi qui",
|
||||
"hero_section_1_text": "Ecco alcuni percorsi che potrebbero piacerti. Oppure dai un'occhiata alla lista completa.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Icona",
|
||||
"imperial": "Imperiale",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "Adotta descrizione",
|
||||
"invalid-date": "Data non valida",
|
||||
"invalid-username": "Nome utente non valido",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metrico",
|
||||
"moderate": "Moderato",
|
||||
"must-be-at-least-n-characters-long": "Deve essere lungo almeno {n} caratteri",
|
||||
"my-account": "",
|
||||
"n-days-ago": "{n} giorni fa",
|
||||
"n-hours-ago": "{n} ore fa",
|
||||
"n-minutes-ago": "{n} minuti fa",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Percorso} other {Percorsi}}",
|
||||
"trail-not-shared": "Percorso non condiviso con nessuno",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Percorsi per te",
|
||||
"units": "Unità",
|
||||
"upload-file": "Carica file",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "Fout bij afdrukken van kaart",
|
||||
"error-reading-file": "Het bestand kan niet worden ingelezen",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Geschatte duur",
|
||||
"explore": "Verkennen",
|
||||
"explore-some-trails": "Verken enkele wandelroutes",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "Kenmerken",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Duits",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "Rooster",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Verken uitdagende wandelroutes, bewaar je favoriete en ervaar de pracht van de natuur. Op naar het volgende avontuur!",
|
||||
"hero_section_1_heading": "Je hebt nog geen wandelroutes.",
|
||||
"hero_section_1_text": "Wellicht vind je deze routes interessant. Ook kun je de volledige lijst bekijken.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Pictogram",
|
||||
"imperial": "Imperiaal",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "Inclusief beschrijving",
|
||||
"invalid-date": "Ongeldige datum",
|
||||
"invalid-username": "Ongeldige gebruikersnaam",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metrisch",
|
||||
"moderate": "Gemiddeld",
|
||||
"must-be-at-least-n-characters-long": "Minimaal {n} tekens",
|
||||
"my-account": "",
|
||||
"n-days-ago": "{n} dagen geleden",
|
||||
"n-hours-ago": "{n} uuren geleden",
|
||||
"n-minutes-ago": "{n} minuten geleden",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Wandelroute} other {Wandelroutes}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Wandelroutes voor jou",
|
||||
"units": "Eenheden",
|
||||
"upload-file": "Bestand uploaden",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "",
|
||||
"error-reading-file": "Błąd wczytywania pliku",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Szacowany czas",
|
||||
"explore": "Eksploruj",
|
||||
"explore-some-trails": "Eksploruj różne ścieżki",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "Funkcje",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Niemiecki",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Eksploruj ekscytujące szlaki, zapisz swoje ulubione, doświadcz piękna naturalnego świata. Znajdź swoją następną przygodę!",
|
||||
"hero_section_1_heading": "Wygląda na to że nie ma tutaj ścieżek.",
|
||||
"hero_section_1_text": "Oto kila ścieżek które możesz zobaczyć lub możesz przejść do pełnej listy.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Ikona",
|
||||
"imperial": "Anglosaskie",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "",
|
||||
"invalid-date": "Nieprawidłowa data",
|
||||
"invalid-username": "Błędna nazwa użytkownika",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Metryczne",
|
||||
"moderate": "Średnia",
|
||||
"must-be-at-least-n-characters-long": "Długość musi wynosić przynajmniej {n} znaków",
|
||||
"my-account": "",
|
||||
"n-days-ago": "",
|
||||
"n-hours-ago": "",
|
||||
"n-minutes-ago": "",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Szlak} other {Szlaki}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Ścieżki dla ciebie",
|
||||
"units": "Jednostki",
|
||||
"upload-file": "Przesyłanie pliku",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "",
|
||||
"error-reading-file": "Erro ao ler o arquivo",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "Duração prevista",
|
||||
"explore": "Explorar",
|
||||
"explore-some-trails": "Explore algumas trilhas",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "Características",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "Alemão",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "",
|
||||
"help": "",
|
||||
"hero_section_0_text": "Explore trilhas emocionantes, salve seus favoritos e experimente a beleza da natureza. Encontre sua próxima aventura!",
|
||||
"hero_section_1_heading": "Parece que ainda não há trilhas aqui.",
|
||||
"hero_section_1_text": "Aqui estão algumas trilhas que você pode gostar. Ou podes ir à lista completa agora.",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "Ícone",
|
||||
"imperial": "Imperial",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "",
|
||||
"invalid-date": "Data inválida",
|
||||
"invalid-username": "Nome de usuário inválido",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "Métrica",
|
||||
"moderate": "Moderado",
|
||||
"must-be-at-least-n-characters-long": "Deve ter pelo menos {n} caracteres",
|
||||
"my-account": "",
|
||||
"n-days-ago": "",
|
||||
"n-hours-ago": "",
|
||||
"n-minutes-ago": "",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {Percurso} other {Percursos}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "Trilhos para si",
|
||||
"units": "Unidades",
|
||||
"upload-file": "Subir arquivo",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"Biking": "",
|
||||
"Canoeing": "",
|
||||
"Climbing": "",
|
||||
"export-all-trails": "",
|
||||
"Hiking": "",
|
||||
"Skiing": "",
|
||||
"Walking": "",
|
||||
@@ -72,11 +71,13 @@
|
||||
"error-exporting-trail": "",
|
||||
"error-printing-map": "",
|
||||
"error-reading-file": "读取文件错误",
|
||||
"error-saving-trail": "",
|
||||
"error-updating-password": "",
|
||||
"est-duration": "预计时长",
|
||||
"explore": "探索",
|
||||
"explore-some-trails": "探索行程",
|
||||
"export": "",
|
||||
"export-all-trails": "",
|
||||
"features": "特性",
|
||||
"file-format": "",
|
||||
"focus-map-on": "",
|
||||
@@ -84,6 +85,7 @@
|
||||
"german": "德语",
|
||||
"get-position-from-exif": "",
|
||||
"grid": "",
|
||||
"help": "",
|
||||
"hero_section_0_text": "探索激动人心的探险,收藏最爱行程,,体验美丽地大自然。找到你的下一次冒险!",
|
||||
"hero_section_1_heading": "这儿似乎还没有行程。",
|
||||
"hero_section_1_text": "以下有你可能喜欢的线路,或者立刻浏览全部列表。",
|
||||
@@ -94,6 +96,7 @@
|
||||
"icon": "图标",
|
||||
"imperial": "英制",
|
||||
"import": "",
|
||||
"import-hint": "",
|
||||
"include-description": "",
|
||||
"invalid-date": "无效日期",
|
||||
"invalid-username": "无效用户名",
|
||||
@@ -114,6 +117,7 @@
|
||||
"metric": "公制",
|
||||
"moderate": "中等",
|
||||
"must-be-at-least-n-characters-long": "长度至少 {n} 字符",
|
||||
"my-account": "",
|
||||
"n-days-ago": "",
|
||||
"n-hours-ago": "",
|
||||
"n-minutes-ago": "",
|
||||
@@ -171,6 +175,7 @@
|
||||
"tilesets": "",
|
||||
"trail": "{n, plural, =1 {路线} other {路线}}",
|
||||
"trail-not-shared": "",
|
||||
"trail-saved-successfully": "",
|
||||
"trails-for-you": "推荐路线",
|
||||
"units": "单位",
|
||||
"upload-file": "上传文件",
|
||||
|
||||
@@ -79,18 +79,6 @@
|
||||
}));
|
||||
}
|
||||
|
||||
async function handleSearchClick(item: SearchItem) {
|
||||
citySearchQuery = item.text;
|
||||
await settings_update({
|
||||
id: settings?.id!,
|
||||
location: {
|
||||
name: item.value.name,
|
||||
lat: item.value.lat,
|
||||
lon: item.value.lon,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async function handleAvatarSelection() {
|
||||
const files = (
|
||||
document.getElementById("avatarInput") as HTMLInputElement
|
||||
@@ -103,13 +91,6 @@
|
||||
await users_update($currentUser!, files[0]);
|
||||
}
|
||||
|
||||
async function handleUnitSelection(e: RadioItem) {
|
||||
await settings_update({
|
||||
id: settings!.id,
|
||||
unit: e.value as "imperial" | "metric",
|
||||
});
|
||||
}
|
||||
|
||||
async function handleLanguageSelection(
|
||||
value: "en" | "de" | "fr" | "hu" | "nl" | "pl" | "pt",
|
||||
) {
|
||||
@@ -120,13 +101,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
async function handleMapFocusSelection(value: "trails" | "location") {
|
||||
await settings_update({
|
||||
id: settings!.id,
|
||||
mapFocus: value,
|
||||
});
|
||||
}
|
||||
|
||||
async function deleteAccount() {
|
||||
await users_delete($currentUser!);
|
||||
logout();
|
||||
@@ -229,35 +203,6 @@
|
||||
on:change={(e) => handleLanguageSelection(e.detail)}
|
||||
></Select>
|
||||
</div>
|
||||
<!--<div>
|
||||
<h5 class="font-medium mb-1">{$_("units")}</h5>
|
||||
<RadioGroup
|
||||
name="unit"
|
||||
items={units}
|
||||
selected={settings?.unit == "metric" ? 0 : 1}
|
||||
on:change={(e) => handleUnitSelection(e.detail)}
|
||||
></RadioGroup>
|
||||
</div>
|
||||
<div>
|
||||
<h5 class="font-medium mb-1">Focus map on</h5>
|
||||
|
||||
<Select
|
||||
items={mapFocus}
|
||||
bind:value={selectedMapFocus}
|
||||
on:change={(e) => handleMapFocusSelection(e.detail)}
|
||||
></Select>
|
||||
{#if selectedMapFocus == "location"}
|
||||
<div class="mt-3">
|
||||
<Search
|
||||
items={searchDropdownItems}
|
||||
placeholder="{$_('search-cities')}..."
|
||||
bind:value={citySearchQuery}
|
||||
on:update={(e) => searchCities(e.detail)}
|
||||
on:click={(e) => handleSearchClick(e.detail)}
|
||||
></Search>
|
||||
</div>
|
||||
{/if}
|
||||
</div> -->
|
||||
<hr class="border-input-border" />
|
||||
<div class="space-y-4">
|
||||
<h4 class="text-xl text-red-400">{$_("danger-zone")}</h4>
|
||||
|
||||
@@ -143,13 +143,13 @@
|
||||
<div class="space-y-6">
|
||||
<h3 class="text-2xl font-semibold">{$_("import")}</h3>
|
||||
<button
|
||||
class="drop-area relative h-64 w-full border border-content border-dashed rounded-xl flex items-center justify-center text-gray-500 bg-background cursor-pointer hover:bg-menu-item-background-hover focus:bg-menu-item-background-focus transition-colors"
|
||||
class="drop-area relative h-64 w-full p-4 border border-content border-dashed rounded-xl flex items-center justify-center text-gray-500 bg-background cursor-pointer hover:bg-menu-item-background-hover focus:bg-menu-item-background-focus transition-colors"
|
||||
style="--progress: {$uploadProgress}%"
|
||||
on:click={openFileBrowser}
|
||||
on:dragover={handleDragOver}
|
||||
on:drop={handleDrop}
|
||||
>
|
||||
Select or drag GPX, FIT, KML or TCX files here...
|
||||
{$_('import-hint')}
|
||||
</button>
|
||||
|
||||
<input
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
show_toast({
|
||||
type: "success",
|
||||
icon: "check",
|
||||
text: "Trail saved successfully.",
|
||||
text: $_('trail-saved-successfully'),
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
@@ -197,7 +197,7 @@
|
||||
show_toast({
|
||||
type: "error",
|
||||
icon: "close",
|
||||
text: "Error saving trail.",
|
||||
text: $_('error-saving-trail'),
|
||||
});
|
||||
} finally {
|
||||
loading = false;
|
||||
@@ -766,7 +766,7 @@
|
||||
name="category"
|
||||
label={$_("category")}
|
||||
bind:value={$form.category}
|
||||
items={$categories.map((c) => ({ text: c.name, value: c.id }))}
|
||||
items={$categories.map((c) => ({ text: $_(c.name), value: c.id }))}
|
||||
></Select>
|
||||
<Toggle name="public" label={$_("public")} bind:value={$form.public}
|
||||
></Toggle>
|
||||
|
||||
Reference in New Issue
Block a user