From ef788f4e6af8949b9a4d907ddf1b6ef4b07cfef4 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Thu, 29 Feb 2024 09:56:31 +0000 Subject: [PATCH 1/4] Corrected `allowAsRoot` to `allowAtRoot` (as->at) --- src/assets/lang/da-dk.ts | 4 ++-- src/assets/lang/en-us.ts | 4 ++-- .../document-type-workspace-view-structure.element.ts | 6 +++--- .../media-type-workspace-view-structure.element.ts | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/assets/lang/da-dk.ts b/src/assets/lang/da-dk.ts index 68461e1e90..7d4bbfce2c 100644 --- a/src/assets/lang/da-dk.ts +++ b/src/assets/lang/da-dk.ts @@ -1565,8 +1565,8 @@ export default { 'Konfigurér indholdet til at blive vist i en sortérbar og søgbar liste;\n undersider vil ikke blive vist i træet\n ', allowedTemplatesHeading: 'Tilladte skabeloner', allowedTemplatesDescription: 'Vælg hvilke skabeloner, der er tilladt at bruge på dette indhold.', - allowAsRootHeading: 'Tillad på rodniveau', - allowAsRootDescription: + allowAtRootHeading: 'Tillad på rodniveau', + allowAtRootDescription: 'Kun dokumenttyper med denne indstilling aktiveret kan oprettes i rodniveau under\n indhold og mediearkiv.\n ', childNodesHeading: 'Tilladte typer', childNodesDescription: 'Tillad at oprette indhold af en specifik type under denne.', diff --git a/src/assets/lang/en-us.ts b/src/assets/lang/en-us.ts index f2332f75d7..1905a4175d 100644 --- a/src/assets/lang/en-us.ts +++ b/src/assets/lang/en-us.ts @@ -1563,8 +1563,8 @@ export default { 'Configures the content item to show a sortable and searchable list of its\n children, the children will not be shown in the tree\n ', allowedTemplatesHeading: 'Allowed Templates', allowedTemplatesDescription: 'Choose which templates editors are allowed to use on content of this type', - allowAsRootHeading: 'Allow as root', - allowAsRootDescription: 'Allow editors to create content of this type in the root of the content tree.\n ', + allowAtRootHeading: 'Allow at root', + allowAtRootDescription: 'Allow editors to create content of this type in the root of the content tree.\n ', childNodesHeading: 'Allowed child node types', childNodesDescription: 'Allow content of the specified types to be created underneath content of this\n type.\n ', diff --git a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts index 9f8b9dc91b..3b05af2549 100644 --- a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts +++ b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts @@ -65,11 +65,11 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement render() { return html` - -
${this.localize.term('contentTypeEditor_allowAsRootDescription')}
+ +
${this.localize.term('contentTypeEditor_allowAtRootDescription')}
{ this.#workspaceContext?.setAllowedAsRoot((e.target as UUIToggleElement).checked); diff --git a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts index 2608977233..ea6febe5ab 100644 --- a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts +++ b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts @@ -43,11 +43,11 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp render() { return html` - -
${this.localize.term('contentTypeEditor_allowAsRootDescription')}
+ +
${this.localize.term('contentTypeEditor_allowAtRootDescription')}
{ this.#workspaceContext?.updateProperty('allowedAsRoot', (e.target as UUIToggleElement).checked); From 903278070114d63735c73a610786fbdbd4cf5426 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Thu, 29 Feb 2024 09:57:23 +0000 Subject: [PATCH 2/4] Wired up localization keys for "Allowed child node types" --- src/assets/lang/en-us.ts | 3 +-- .../document-type-workspace-view-structure.element.ts | 6 ++---- .../media-type-workspace-view-structure.element.ts | 6 ++---- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/assets/lang/en-us.ts b/src/assets/lang/en-us.ts index 1905a4175d..2718e2a79b 100644 --- a/src/assets/lang/en-us.ts +++ b/src/assets/lang/en-us.ts @@ -1566,8 +1566,7 @@ export default { allowAtRootHeading: 'Allow at root', allowAtRootDescription: 'Allow editors to create content of this type in the root of the content tree.\n ', childNodesHeading: 'Allowed child node types', - childNodesDescription: - 'Allow content of the specified types to be created underneath content of this\n type.\n ', + childNodesDescription: 'Allow content of the specified types to be created underneath content of this type.', chooseChildNode: 'Choose child node', compositionsDescription: 'Inherit tabs and properties from an existing Document Type. New tabs will be\n added to the current Document Type or merged if a tab with an identical name exists.\n ', diff --git a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts index 3b05af2549..653b9fab61 100644 --- a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts +++ b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts @@ -76,10 +76,8 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement }}>
- -
- Allow content of the specified types to be created underneath content of this type. -
+ +
${this.localize.term('contentTypeEditor_childNodesDescription')}
- -
- Allow content of the specified types to be created underneath content of this type. -
+ +
${this.localize.term('contentTypeEditor_childNodesDescription')}
Date: Thu, 29 Feb 2024 10:03:32 +0000 Subject: [PATCH 3/4] Added localization key for "Structure" --- src/assets/lang/da-dk.ts | 1 + src/assets/lang/en-us.ts | 1 + .../structure/document-type-workspace-view-structure.element.ts | 2 +- .../structure/media-type-workspace-view-structure.element.ts | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/assets/lang/da-dk.ts b/src/assets/lang/da-dk.ts index 7d4bbfce2c..91d9559571 100644 --- a/src/assets/lang/da-dk.ts +++ b/src/assets/lang/da-dk.ts @@ -1658,6 +1658,7 @@ export default { collections: 'Samlinger', collectionsDescription: 'Konfigurerer indholdselementet til at vise listen over dets underordnede elementer, underordnede elementer vil ikke blive vist i træet.', + structure: 'Struktur', }, languages: { addLanguage: 'Tilføj sprog', diff --git a/src/assets/lang/en-us.ts b/src/assets/lang/en-us.ts index 2718e2a79b..a932a9ca4b 100644 --- a/src/assets/lang/en-us.ts +++ b/src/assets/lang/en-us.ts @@ -1654,6 +1654,7 @@ export default { collections: 'Collections', collectionsDescription: 'Configures the content item to show list of its children, the children will not be shown in the tree.', + structure: 'Structure', }, languages: { addLanguage: 'Add language', diff --git a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts index 653b9fab61..c4bc13f2fe 100644 --- a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts +++ b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts @@ -64,7 +64,7 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement render() { return html` - +
${this.localize.term('contentTypeEditor_allowAtRootDescription')}
diff --git a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts index d9f5eb1a39..72f1dfadc7 100644 --- a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts +++ b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts @@ -42,7 +42,7 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp render() { return html` - +
${this.localize.term('contentTypeEditor_allowAtRootDescription')}
From 0e2a02064b1a54e20155280304573dba6df984d5 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Thu, 29 Feb 2024 10:03:43 +0000 Subject: [PATCH 4/4] Added localization key for "Presentation" --- src/assets/lang/da-dk.ts | 1 + src/assets/lang/en-us.ts | 1 + .../structure/document-type-workspace-view-structure.element.ts | 2 +- .../structure/media-type-workspace-view-structure.element.ts | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/assets/lang/da-dk.ts b/src/assets/lang/da-dk.ts index 91d9559571..59691293a3 100644 --- a/src/assets/lang/da-dk.ts +++ b/src/assets/lang/da-dk.ts @@ -1659,6 +1659,7 @@ export default { collectionsDescription: 'Konfigurerer indholdselementet til at vise listen over dets underordnede elementer, underordnede elementer vil ikke blive vist i træet.', structure: 'Struktur', + presentation: 'Præsentation', }, languages: { addLanguage: 'Tilføj sprog', diff --git a/src/assets/lang/en-us.ts b/src/assets/lang/en-us.ts index a932a9ca4b..e4c941f1ac 100644 --- a/src/assets/lang/en-us.ts +++ b/src/assets/lang/en-us.ts @@ -1655,6 +1655,7 @@ export default { collectionsDescription: 'Configures the content item to show list of its children, the children will not be shown in the tree.', structure: 'Structure', + presentation: 'Presentation', }, languages: { addLanguage: 'Add language', diff --git a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts index c4bc13f2fe..7fb5dda0a7 100644 --- a/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts +++ b/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts @@ -96,7 +96,7 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement
- +
${this.localize.term('contentTypeEditor_collectionsDescription')}
diff --git a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts index 72f1dfadc7..58568a471c 100644 --- a/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts +++ b/src/packages/media/media-types/workspace/views/structure/media-type-workspace-view-structure.element.ts @@ -73,7 +73,7 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp
- +
Provides an overview of child content and hides it in the tree.