chore(web): more translations for user settings and admin pages (#10161)

* chore(web): more translations for user settings and admin pages

* JobSettings translations

* feedback

* missed one

* feedback
This commit is contained in:
Michel Heusschen 2024-06-12 12:54:40 +02:00 committed by GitHub
parent 0e1311e3d3
commit 9e5c52b7b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 300 additions and 160 deletions

View file

@ -53,7 +53,7 @@
}
notificationController.show({
message: 'Reset settings to the recent saved settings',
message: $t('admin.reset_settings_to_recent_saved'),
type: NotificationType.Info,
});
};
@ -64,7 +64,7 @@
}
notificationController.show({
message: $t('reset_settings_to_default'),
message: $t('admin.reset_settings_to_default'),
type: NotificationType.Info,
});
};

View file

@ -270,7 +270,7 @@
},
{
value: TranscodeHWAccel.Disabled,
text: $t('admin.disabled'),
text: $t('disabled'),
},
]}
isEdited={config.ffmpeg.accel !== savedConfig.ffmpeg.accel}

View file

@ -9,6 +9,7 @@
import SettingInputField, {
SettingInputFieldType,
} from '$lib/components/shared-components/settings/setting-input-field.svelte';
import { t } from 'svelte-i18n';
export let savedConfig: SystemConfigDto;
export let defaultConfig: SystemConfigDto;
@ -45,7 +46,7 @@
<SettingInputField
inputType={SettingInputFieldType.NUMBER}
{disabled}
label="{getJobName(jobName)} Concurrency"
label={$t('admin.job_concurrency', { values: { job: $getJobName(jobName) } })}
desc=""
bind:value={config.job[jobName].concurrency}
required={true}
@ -54,11 +55,11 @@
{:else}
<SettingInputField
inputType={SettingInputFieldType.NUMBER}
label="{getJobName(jobName)} Concurrency"
label={$t('admin.job_concurrency', { values: { job: $getJobName(jobName) } })}
desc=""
value="1"
disabled={true}
title="This job is not concurrency-safe."
title={$t('admin.job_not_concurrency_safe')}
/>
{/if}
</div>