Skip to content

Commit

Permalink
Merge pull request #1317 from umbraco/chore/document-type-structure-v…
Browse files Browse the repository at this point in the history
…iew-localizations

Chore: Document Type Structure View localizations
  • Loading branch information
leekelleher authored Feb 29, 2024
2 parents fea8f40 + 0e2a020 commit 82ea375
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
6 changes: 4 additions & 2 deletions src/assets/lang/da-dk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down Expand Up @@ -1658,6 +1658,8 @@ 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',
presentation: 'Præsentation',
},
languages: {
addLanguage: 'Tilføj sprog',
Expand Down
9 changes: 5 additions & 4 deletions src/assets/lang/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1563,11 +1563,10 @@ 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 ',
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 ',
Expand Down Expand Up @@ -1655,6 +1654,8 @@ 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',
presentation: 'Presentation',
},
languages: {
addLanguage: 'Add language',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,20 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement

render() {
return html`
<uui-box headline="Structure">
<umb-property-layout alias="Root" label="Allow as Root">
<div slot="description">${this.localize.term('contentTypeEditor_allowAsRootDescription')}</div>
<uui-box headline=${this.localize.term('contentTypeEditor_structure')}>
<umb-property-layout alias="Root" label=${this.localize.term('contentTypeEditor_allowAtRootHeading')}>
<div slot="description">${this.localize.term('contentTypeEditor_allowAtRootDescription')}</div>
<div slot="editor">
<uui-toggle
label=${this.localize.term('contentTypeEditor_allowAsRootHeading')}
label=${this.localize.term('contentTypeEditor_allowAtRootHeading')}
?checked=${this._allowedAtRoot}
@change=${(e: CustomEvent) => {
this.#workspaceContext?.setAllowedAsRoot((e.target as UUIToggleElement).checked);
}}></uui-toggle>
</div>
</umb-property-layout>
<umb-property-layout alias="ChildNodeType" label="Allowed child node types">
<div slot="description">
Allow content of the specified types to be created underneath content of this type.
</div>
<umb-property-layout alias="ChildNodeType" label=${this.localize.term('contentTypeEditor_childNodesHeading')}>
<div slot="description">${this.localize.term('contentTypeEditor_childNodesDescription')}</div>
<div slot="editor">
<!-- TODO: maybe we want to somehow display the hierarchy, but not necessary in the same way as old backoffice? -->
<umb-input-document-type
Expand All @@ -98,7 +96,7 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement
</div>
</umb-property-layout>
</uui-box>
<uui-box headline="Presentation">
<uui-box headline=${this.localize.term('contentTypeEditor_presentation')}>
<umb-property-layout alias="collection" label="${this.localize.term('contentTypeEditor_collections')}">
<div slot="description">${this.localize.term('contentTypeEditor_collectionsDescription')}</div>
<div slot="editor">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,20 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp

render() {
return html`
<uui-box headline="Structure">
<umb-property-layout alias="Root" label="Allow as Root">
<div slot="description">${this.localize.term('contentTypeEditor_allowAsRootDescription')}</div>
<uui-box headline=${this.localize.term('contentTypeEditor_structure')}>
<umb-property-layout alias="Root" label=${this.localize.term('contentTypeEditor_allowAtRootHeading')}>
<div slot="description">${this.localize.term('contentTypeEditor_allowAtRootDescription')}</div>
<div slot="editor">
<uui-toggle
label=${this.localize.term('contentTypeEditor_allowAsRootHeading')}
label=${this.localize.term('contentTypeEditor_allowAtRootHeading')}
?checked=${this._allowedAsRoot}
@change=${(e: CustomEvent) => {
this.#workspaceContext?.updateProperty('allowedAsRoot', (e.target as UUIToggleElement).checked);
}}></uui-toggle>
</div>
</umb-property-layout>
<umb-property-layout alias="ChildNodeType" label="Allowed child node types">
<div slot="description">
Allow content of the specified types to be created underneath content of this type.
</div>
<umb-property-layout alias="ChildNodeType" label=${this.localize.term('contentTypeEditor_childNodesHeading')}>
<div slot="description">${this.localize.term('contentTypeEditor_childNodesDescription')}</div>
<div slot="editor">
<!-- TODO: maybe we want to somehow display the hierarchy, but not necessary in the same way as old backoffice? -->
<umb-input-media-type
Expand All @@ -75,7 +73,7 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp
</div>
</umb-property-layout>
</uui-box>
<uui-box headline="Presentation">
<uui-box headline=${this.localize.term('contentTypeEditor_presentation')}>
<umb-property-layout alias="Root" label="Collection view">
<div slot="description">Provides an overview of child content and hides it in the tree.</div>
<div slot="editor"><uui-toggle label="Display children in a Collection view"></uui-toggle></div>
Expand Down

0 comments on commit 82ea375

Please sign in to comment.