forked from MapComplete/MapComplete
Chore: make translatable
This commit is contained in:
parent
45829876ba
commit
90b680764b
3 changed files with 17 additions and 6 deletions
|
@ -387,6 +387,13 @@
|
||||||
"skippedMultiple": "You skipped {skipped} questions",
|
"skippedMultiple": "You skipped {skipped} questions",
|
||||||
"skippedOne": "You skipped one question"
|
"skippedOne": "You skipped one question"
|
||||||
},
|
},
|
||||||
|
"questions": {
|
||||||
|
"disable": "Do not ask this question again",
|
||||||
|
"disabledIntro": "You disabled some type of questions. To enable a question again, click them here",
|
||||||
|
"disabledTitle": "Disabled questions",
|
||||||
|
"enable": "Ask this question for all features",
|
||||||
|
"noneDisabled": "If you are not interested in a specific type of question, disable it. To disable a question, click the three dots in the upper-right corner and select 'disable'"
|
||||||
|
},
|
||||||
"readYourMessages": "Please, read all your OpenStreetMap-messages before adding a new feature.",
|
"readYourMessages": "Please, read all your OpenStreetMap-messages before adding a new feature.",
|
||||||
"removeLocationHistory": "Delete the location history",
|
"removeLocationHistory": "Delete the location history",
|
||||||
"retry": "Retry",
|
"retry": "Retry",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import DisabledQuestionsLayer from "./DisabledQuestionsLayer.svelte"
|
import DisabledQuestionsLayer from "./DisabledQuestionsLayer.svelte"
|
||||||
import { Stores } from "../../Logic/UIEventSource"
|
import { Stores } from "../../Logic/UIEventSource"
|
||||||
|
import Tr from "../Base/Tr.svelte"
|
||||||
|
import Translations from "../i18n/Translations"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows _all_ disabled questions
|
* Shows _all_ disabled questions
|
||||||
|
@ -9,14 +11,16 @@
|
||||||
let layers = state.layout.layers.filter(l => l.isNormal())
|
let layers = state.layout.layers.filter(l => l.isNormal())
|
||||||
|
|
||||||
let allDisabled = Stores.concat<string>(layers.map(l => state.userRelatedState.getThemeDisabled(state.layout.id, l.id))).map(l => [].concat(...l))
|
let allDisabled = Stores.concat<string>(layers.map(l => state.userRelatedState.getThemeDisabled(state.layout.id, l.id))).map(l => [].concat(...l))
|
||||||
|
const t = Translations.t.general.questions
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h3>Disabled questions</h3>
|
<h3>
|
||||||
|
<Tr t={t.disabledTitle} />
|
||||||
|
</h3>
|
||||||
{#if $allDisabled.length === 0}
|
{#if $allDisabled.length === 0}
|
||||||
To disable a question, click the three dots in the upper-right corner
|
<Tr t={t.noneDisabled} />
|
||||||
{:else}
|
{:else}
|
||||||
To enable a question again, click it
|
<Tr t={t.disabledIntro} />
|
||||||
{#each layers as layer (layer.id)}
|
{#each layers as layer (layer.id)}
|
||||||
<DisabledQuestionsLayer {state} {layer} />
|
<DisabledQuestionsLayer {state} {layer} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
@ -365,11 +365,11 @@
|
||||||
<SidebarUnit>
|
<SidebarUnit>
|
||||||
{#if $disabledInTheme.indexOf(config.id) >= 0}
|
{#if $disabledInTheme.indexOf(config.id) >= 0}
|
||||||
<button on:click={() => enableQuestion()}>
|
<button on:click={() => enableQuestion()}>
|
||||||
Ask this question for all features
|
<Tr t={Translations.t.general.questions.enable}/>
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<button on:click={() => disableQuestion()}>
|
<button on:click={() => disableQuestion()}>
|
||||||
Don't ask this question again
|
<Tr t={Translations.t.general.questions.disable}/>
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</SidebarUnit>
|
</SidebarUnit>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue