From b026c1cb1366a750baed1a8c13d0b496075658a5 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Wed, 15 Jan 2025 17:22:58 +0100 Subject: [PATCH] Rename external link list element to teasers REDMINE-20852, REDMINE-20896 --- entry_types/scrolled/config/locales/de.yml | 21 ------------------- entry_types/scrolled/config/locales/en.yml | 21 ------------------- .../locales/new/ext-link-options.de.yml | 4 ++-- .../locales/new/ext-link-options.en.yml | 4 ++-- .../locales/new/teaser_inline_editing.de.yml | 21 +++++++++++++++++++ .../locales/new/teaser_inline_editing.en.yml | 21 +++++++++++++++++++ .../editor/SidebarEditLinkView.js | 2 +- .../editor/SidebarListView.js | 4 ++-- .../externalLinkList/editor/index.js | 2 +- 9 files changed, 50 insertions(+), 50 deletions(-) diff --git a/entry_types/scrolled/config/locales/de.yml b/entry_types/scrolled/config/locales/de.yml index ad1519386..c7a5f9edc 100644 --- a/entry_types/scrolled/config/locales/de.yml +++ b/entry_types/scrolled/config/locales/de.yml @@ -142,8 +142,6 @@ de: name: Daten und Diagramme interactive: name: Interaktiv - links: - name: Verweise media: name: Media content_elements: @@ -219,30 +217,11 @@ de: externalLinkList: add: Hinzufügen attributes: - description: - inline_help: Link-Beschreibung für die Darstellung im Beitrag. - label: Beschreibung - open_in_new_tab: - label: In neuem Tab öffnen thumbnail: inline_help: Dem Link zugeordnertes Bild für die Darstellung im Beitrag. label: Miniaturansicht - title: - inline_help: Link-Überschrift für die Darstellung im Beitrag. - label: Titel - url: - inline_help: Absolute URL (inklusive http:// oder https://) des Links. - label: URL back: Zurück - confirm_delete: Soll das Element wirklich gelöscht werden? - confirm_delete_link: Soll der Link wirklich gelöscht werden? - description: Sammlung von Verweisen zu Webseiten außerhalb des Beitrags destroy: Löschen - name: Externe Verweise - outline: Gliederung - tabs: - edit_link: Link bearbeiten - general: Externe Verweise heading: attributes: children: diff --git a/entry_types/scrolled/config/locales/en.yml b/entry_types/scrolled/config/locales/en.yml index 1f327da4b..9e6c1d880 100644 --- a/entry_types/scrolled/config/locales/en.yml +++ b/entry_types/scrolled/config/locales/en.yml @@ -137,8 +137,6 @@ en: name: Data and Diagrams interactive: name: Interactive - links: - name: Links media: name: Media content_elements: @@ -214,30 +212,11 @@ en: externalLinkList: add: Add attributes: - description: - inline_help: Link-description for display in entry. - label: Description - open_in_new_tab: - label: Open in new tab thumbnail: inline_help: Link thumbnail image for display in entry. label: Thumbnail - title: - inline_help: Link-title for display in entry. - label: Title - url: - inline_help: Absolute URL (inkluding http:// oder https://) of Link. - label: URL back: Back - confirm_delete: Are you sure you want to delete this element? - confirm_delete_link: Are you sure you want to delete this link? - description: A collection of links to external websites destroy: Delete - name: External links - outline: Outline - tabs: - edit_link: Edit Link - general: External Links heading: attributes: children: diff --git a/entry_types/scrolled/config/locales/new/ext-link-options.de.yml b/entry_types/scrolled/config/locales/new/ext-link-options.de.yml index 44a0cde1a..d775dfc31 100644 --- a/entry_types/scrolled/config/locales/new/ext-link-options.de.yml +++ b/entry_types/scrolled/config/locales/new/ext-link-options.de.yml @@ -22,13 +22,13 @@ de: wide: Landscape (16:9) original: Original textPosition: - label: "Textposition" + label: "Beschriftung" inline_help: |- Anordnung von Bild und Text innerhalb von Links. values: below: "Unter dem Bild" right: "Rechts neben dem Bild" - title: "Nur Bild" + title: "Keine" thumbnailSize: label: "Thumbnail-Breite" inline_help: |- diff --git a/entry_types/scrolled/config/locales/new/ext-link-options.en.yml b/entry_types/scrolled/config/locales/new/ext-link-options.en.yml index 4861aec48..5e5040cc8 100644 --- a/entry_types/scrolled/config/locales/new/ext-link-options.en.yml +++ b/entry_types/scrolled/config/locales/new/ext-link-options.en.yml @@ -21,13 +21,13 @@ en: wide: Landscape (16:9) original: Original textPosition: - label: "Text position" + label: "Caption" inline_help: |- Arrangement of image and text within links. values: below: "Below image" right: "Right from image" - title: "Image only" + title: "None" thumbnailSize: label: "Thumbnail width" inline_help: |- diff --git a/entry_types/scrolled/config/locales/new/teaser_inline_editing.de.yml b/entry_types/scrolled/config/locales/new/teaser_inline_editing.de.yml index 7939b0de1..591a85661 100644 --- a/entry_types/scrolled/config/locales/new/teaser_inline_editing.de.yml +++ b/entry_types/scrolled/config/locales/new/teaser_inline_editing.de.yml @@ -1,4 +1,25 @@ de: pageflow_scrolled: + editor: + content_element_categories: + links: DELETED + tilesAndLinks: + name: Verweise und Kacheln + content_elements: + externalLinkList: + attributes: + description: DELETED + open_in_new_tab: DELETED + title: DELETED + url: DELETED + description: Liste von Kacheln mit Bild und Beschriftung + confirm_delete_item: Soll der Teaser wirklich gelöscht werden? + confirm_delete: DELETED + outline: DELETED + items: Einträge + name: Teaser-Liste + tabs: + general: Teaser-Liste + edit_link: Teaser inline_editing: external_links: DELETED diff --git a/entry_types/scrolled/config/locales/new/teaser_inline_editing.en.yml b/entry_types/scrolled/config/locales/new/teaser_inline_editing.en.yml index f6b387402..601c67ae7 100644 --- a/entry_types/scrolled/config/locales/new/teaser_inline_editing.en.yml +++ b/entry_types/scrolled/config/locales/new/teaser_inline_editing.en.yml @@ -1,4 +1,25 @@ en: pageflow_scrolled: + editor: + content_element_categories: + links: DELETED + tilesAndLinks: + name: Links and Tiles + content_elements: + externalLinkList: + attributes: + description: DELETED + open_in_new_tab: DELETED + title: DELETED + url: DELETED + description: A list of tiles with thumbnail and caption + confirm_delete_item: Are you sure you want to delete this teaser? + confirm_delete: DELETED + outline: DELETED + items: Items + name: Teasers + tabs: + general: Teasers + edit_link: Teaser inline_editing: external_links: DELETED diff --git a/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js b/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js index 3cabc0bab..2ba786384 100644 --- a/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js +++ b/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js @@ -64,7 +64,7 @@ export const SidebarEditLinkView = Marionette.Layout.extend({ editor.navigate(`/scrolled/content_elements/${this.options.contentElement.get('id')}`, {trigger: true}); }, destroyLink: function () { - if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_link'))) { + if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_item'))) { this.options.collection.remove(this.model); this.goBack(); } diff --git a/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarListView.js b/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarListView.js index 20e0b646c..4450d2e40 100644 --- a/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarListView.js +++ b/entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarListView.js @@ -8,7 +8,7 @@ import I18n from 'i18n-js'; export const SidebarListView = Marionette.Layout.extend({ template: (data) => ` - +