mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-01 08:12:32 +00:00
more localization
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
>
|
>
|
||||||
<ToolbarItem on:click={getToggleTool('routing')}>
|
<ToolbarItem on:click={getToggleTool('routing')}>
|
||||||
<Pencil slot="icon" size="18" />
|
<Pencil slot="icon" size="18" />
|
||||||
<span slot="tooltip">{$_('toolbar.routing_tooltip')}</span>
|
<span slot="tooltip">{$_('toolbar.routing.tooltip')}</span>
|
||||||
</ToolbarItem>
|
</ToolbarItem>
|
||||||
<ToolbarItem>
|
<ToolbarItem>
|
||||||
<CalendarClock slot="icon" size="18" />
|
<CalendarClock slot="icon" size="18" />
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
import type { GPXFile } from 'gpx';
|
import type { GPXFile } from 'gpx';
|
||||||
|
|
||||||
|
import { _ } from 'svelte-i18n';
|
||||||
|
|
||||||
let routingProfile = {
|
let routingProfile = {
|
||||||
value: 'bike',
|
value: 'bike',
|
||||||
label: 'bike'
|
label: 'bike'
|
||||||
@@ -139,13 +141,9 @@
|
|||||||
|
|
||||||
<ToolbarItemMenu>
|
<ToolbarItemMenu>
|
||||||
<Card.Root>
|
<Card.Root>
|
||||||
<Card.Header class="p-4">
|
<Card.Content class="p-4 flex flex-col gap-4">
|
||||||
<Card.Title>Routing</Card.Title>
|
|
||||||
</Card.Header>
|
|
||||||
|
|
||||||
<Card.Content class="p-4 pt-0 flex flex-col gap-4">
|
|
||||||
<div class="w-full flex flex-row justify-between items-center gap-2">
|
<div class="w-full flex flex-row justify-between items-center gap-2">
|
||||||
<Label>Activity</Label>
|
<Label>{$_('toolbar.routing.activity')}</Label>
|
||||||
<Select.Root bind:selected={routingProfile}>
|
<Select.Root bind:selected={routingProfile}>
|
||||||
<Select.Trigger class="h-8 w-40">
|
<Select.Trigger class="h-8 w-40">
|
||||||
<Select.Value />
|
<Select.Value />
|
||||||
@@ -154,18 +152,15 @@
|
|||||||
{#each Object.keys(brouterProfiles) as profile}
|
{#each Object.keys(brouterProfiles) as profile}
|
||||||
<Select.Item value={profile}>{profile}</Select.Item>
|
<Select.Item value={profile}>{profile}</Select.Item>
|
||||||
{/each}
|
{/each}
|
||||||
<!-- <Select.Item value="light">Light</Select.Item>
|
|
||||||
<Select.Item value="dark">Dark</Select.Item>
|
|
||||||
<Select.Item value="system">System</Select.Item> -->
|
|
||||||
</Select.Content>
|
</Select.Content>
|
||||||
</Select.Root>
|
</Select.Root>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full flex flex-row justify-between items-center gap-2">
|
<div class="w-full flex flex-row justify-between items-center gap-2">
|
||||||
<Label for="routing">Routing (follow roads)</Label>
|
<Label for="routing">{$_('toolbar.routing.use_routing')}</Label>
|
||||||
<Switch id="routing" class="scale-90" bind:checked={routing} />
|
<Switch id="routing" class="scale-90" bind:checked={routing} />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full flex flex-row justify-between items-center gap-2">
|
<div class="w-full flex flex-row justify-between items-center gap-2">
|
||||||
<Label for="private">Allow private roads</Label>
|
<Label for="private">{$_('toolbar.routing.allow_private')}</Label>
|
||||||
<Switch id="private" class="scale-90" bind:checked={privateRoads} />
|
<Switch id="private" class="scale-90" bind:checked={privateRoads} />
|
||||||
</div>
|
</div>
|
||||||
<Alert.Root class="max-w-64">
|
<Alert.Root class="max-w-64">
|
||||||
@@ -173,11 +168,11 @@
|
|||||||
<!-- <Alert.Title>Heads up!</Alert.Title> -->
|
<!-- <Alert.Title>Heads up!</Alert.Title> -->
|
||||||
<Alert.Description>
|
<Alert.Description>
|
||||||
{#if $selectedFiles.size > 1}
|
{#if $selectedFiles.size > 1}
|
||||||
<div>Select a single file to use the routing tool</div>
|
<div>{$_('toolbar.routing.help_multiple_files')}</div>
|
||||||
{:else if $selectedFiles.size == 0}
|
{:else if $selectedFiles.size == 0}
|
||||||
<div>Select a file to use the routing tool, or create a new file from the menu</div>
|
<div>{$_('toolbar.routing.help_no_file')}</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div>Click on the map to plot a route</div>
|
<div>{$_('toolbar.routing.help')}</div>
|
||||||
{/if}
|
{/if}
|
||||||
</Alert.Description>
|
</Alert.Description>
|
||||||
</Alert.Root>
|
</Alert.Root>
|
||||||
|
@@ -26,7 +26,15 @@
|
|||||||
"donate": "Donate"
|
"donate": "Donate"
|
||||||
},
|
},
|
||||||
"toolbar": {
|
"toolbar": {
|
||||||
"routing_tooltip": "Edit the route",
|
"routing": {
|
||||||
|
"tooltip": "Edit the route",
|
||||||
|
"activity": "Activity",
|
||||||
|
"use_routing": "Routing (follow roads)",
|
||||||
|
"allow_private": "Allow private roads",
|
||||||
|
"help_no_file": "Select a file to use the routing tool, or create a new file from the menu",
|
||||||
|
"help_multiple_files": "Select a single file to use the routing tool",
|
||||||
|
"help": "Click on the map to add a new point, or drag existing points to change the route"
|
||||||
|
},
|
||||||
"time_tooltip": "Change the time and speed data",
|
"time_tooltip": "Change the time and speed data",
|
||||||
"reverse_tooltip": "Reverse the direction",
|
"reverse_tooltip": "Reverse the direction",
|
||||||
"merge_tooltip": "Merge files together",
|
"merge_tooltip": "Merge files together",
|
||||||
|
Reference in New Issue
Block a user