mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 02:05:59 +00:00
Translation - added translation tags for import/export
This commit is contained in:
@@ -73,19 +73,19 @@
|
|||||||
<div class="column">
|
<div class="column">
|
||||||
{#if direction == 'source'}
|
{#if direction == 'source'}
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<FontIcon icon="icon import" /> Source configuration
|
<FontIcon icon="icon import" /> {_t('importExport.sourceConfiguration', { defaultMessage: 'Source configuration' })}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if direction == 'target'}
|
{#if direction == 'target'}
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<FontIcon icon="icon export" /> Target configuration
|
<FontIcon icon="icon export" /> {_t('importExport.targetConfiguration', { defaultMessage: 'Target configuration' })}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
{#if $currentDatabase}
|
{#if $currentDatabase}
|
||||||
<FormStyledButton
|
<FormStyledButton
|
||||||
value="Current DB"
|
value={_t('importExport.currentDatabase', { defaultMessage: "Current DB" })}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
values.update(x => ({
|
values.update(x => ({
|
||||||
...x,
|
...x,
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<FormStyledButton
|
<FormStyledButton
|
||||||
value="Current archive"
|
value={_t('importExport.currentArchive', { defaultMessage: "Current archive" })}
|
||||||
data-testid={direction == 'source'
|
data-testid={direction == 'source'
|
||||||
? 'SourceTargetConfig_buttonCurrentArchive_source'
|
? 'SourceTargetConfig_buttonCurrentArchive_source'
|
||||||
: 'SourceTargetConfig_buttonCurrentArchive_target'}
|
: 'SourceTargetConfig_buttonCurrentArchive_target'}
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
/>
|
/>
|
||||||
{#if direction == 'target'}
|
{#if direction == 'target'}
|
||||||
<FormStyledButton
|
<FormStyledButton
|
||||||
value="New archive"
|
value={_t('importExport.newArchive', { defaultMessage: "New archive" })}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
showModal(InputTextModal, {
|
showModal(InputTextModal, {
|
||||||
header: 'Archive',
|
header: 'Archive',
|
||||||
@@ -172,9 +172,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if storageType == 'database' || storageType == 'query'}
|
{#if storageType == 'database' || storageType == 'query'}
|
||||||
<FormConnectionSelect name={connectionIdField} label="Server" {direction} />
|
<FormConnectionSelect name={connectionIdField} label={_t('common.server', { defaultMessage: 'Server' })} {direction} />
|
||||||
{#if !$connectionInfo?.singleDatabase}
|
{#if !$connectionInfo?.singleDatabase}
|
||||||
<FormDatabaseSelect conidName={connectionIdField} name={databaseNameField} label="Database" />
|
<FormDatabaseSelect conidName={connectionIdField} name={databaseNameField} label={_t('common.database', { defaultMessage: 'Database' })} />
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if storageType == 'database'}
|
{#if storageType == 'database'}
|
||||||
|
|||||||
Reference in New Issue
Block a user