translation - settings, menu

This commit is contained in:
Stela Augustinova
2025-11-14 17:03:54 +01:00
committed by SPRINX0\prochazka
parent 7bb9414be8
commit edf9f3a2be
11 changed files with 77 additions and 23 deletions

View File

@@ -4,6 +4,7 @@
import FormSelectField from '../forms/FormSelectField.svelte';
import SelectField from '../forms/SelectField.svelte';
import { lastUsedDefaultActions } from '../stores';
import { _val } from '../translations';
export let label;
export let objectTypeField;
@@ -18,7 +19,7 @@
defaultValue={defaultDatabaseObjectAppObjectActions[objectTypeField][0]?.defaultActionId}
options={defaultDatabaseObjectAppObjectActions[objectTypeField].map(x => ({
value: x.defaultActionId,
label: x.label,
label: _val(x.label),
}))}
value={$lastUsedDefaultActions[objectTypeField]}
on:change={e => {

View File

@@ -126,7 +126,7 @@ ORDER BY
<div class="heading">{_t('settings.appearance', { defaultMessage: 'Appearance' })}</div>
<FormCheckboxField
name="app.useNativeMenu"
label={isMac() ? 'Use native window title' : 'Use system native menu'}
label={isMac() ? _t('settings.useNativeWindowTitle', { defaultMessage: 'Use native window title' }) : _t('settings.useSystemNativeMenu', { defaultMessage: 'Use system native menu' })}
on:change={() => {
restartWarning = true;
}}