Added missing translations for dictionary import. (#18551)

This commit is contained in:
Andy Butland
2025-03-06 12:40:42 +01:00
committed by GitHub
parent 5bf63c2fa8
commit 7b6cef6083
3 changed files with 8 additions and 4 deletions

View File

@@ -623,13 +623,15 @@ export default {
},
dictionary: {
importDictionaryItemHelp:
'\n To import a dictionary item, find the ".udt" file on your computer by clicking the\n "Import" button (you\'ll be asked for confirmation on the next screen)\n ',
'To import a dictionary item, find the ".udt" file on your computer by clicking the "Add" button (you\'ll be asked for confirmation on the next screen).',
itemDoesNotExists: 'Dictionary item does not exist.',
parentDoesNotExists: 'Parent item does not exist.',
noItems: 'There are no dictionary items.',
noItemsInFile: 'There are no dictionary items in this file.',
noItemsFound: 'There were no dictionary items found.',
createNew: 'Create dictionary item',
pickFile: 'Select file',
pickFileRequired: 'Please select a ".udt" file',
},
dictionaryItem: {
description: "Edit the different language versions for the dictionary item '%0%' below",

View File

@@ -625,13 +625,15 @@ export default {
},
dictionary: {
importDictionaryItemHelp:
'\n To import a dictionary item, find the ".udt" file on your computer by clicking the\n "Import" button (you\'ll be asked for confirmation on the next screen)\n ',
'To import a dictionary item, find the ".udt" file on your computer by clicking the "Add" button (you\'ll be asked for confirmation on the next screen).',
itemDoesNotExists: 'Dictionary item does not exist.',
parentDoesNotExists: 'Parent item does not exist.',
noItems: 'There are no dictionary items.',
noItemsInFile: 'There are no dictionary items in this file.',
noItemsFound: 'There were no dictionary items found.',
createNew: 'Create dictionary item',
pickFile: 'Select file',
pickFileRequired: 'Please select a ".udt" file',
},
dictionaryItem: {
description: "Edit the different language versions for the dictionary item '%0%' below",

View File

@@ -175,14 +175,14 @@ export class UmbImportDictionaryModalLayout extends UmbModalBaseElement<
<uui-form>
<form id="form" name="form" @submit=${this.#onUpload}>
<uui-form-layout-item>
<uui-label for="file" slot="label" required>${this.localize.term('formFileUpload_pickFile')}</uui-label>
<uui-label for="file" slot="label" required>${this.localize.term('dictionary_pickFile')}</uui-label>
<uui-input-file
accept=".udt"
name="file"
id="file"
@input=${this.#onFileInput}
required
required-message=${this.localize.term('formFileUpload_pickFile')}></uui-input-file>
required-message=${this.localize.term('dictionary_pickFileRequired')}></uui-input-file>
</uui-form-layout-item>
</form>
</uui-form>`;