Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases control panel: Improve layout and add CSV upload #6421

Merged
merged 13 commits into from
Oct 22, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ describe('Add a new alias from control panel interface', () => {
});
it('adds a new alias', () => {
cy.visit('/controlpanel/aliases');
cy.get('#add-alt-url').click();
cy.get('#alternative-url-input').type('/alturl');
cy.get('#target-url-input').type('/my-page');
cy.get('#submit-alias').click();
cy.get('.toast-inner-content').contains('Alias has been added');
});
});
53 changes: 46 additions & 7 deletions packages/volto/locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ msgstr ""
msgid "Add Addons"
msgstr "Afegeix complements"

#. Default: "Add Alternative URL"
#: components/manage/Controlpanels/Aliases
msgid "Add Alternative URL"
msgstr ""

#. Default: "Add Content…"
#: components/manage/Toolbar/Types
msgid "Add Content"
Expand Down Expand Up @@ -310,6 +315,11 @@ msgstr ""
msgid "Alias has been added"
msgstr ""

#. Default: "Aliases have been uploaded."
#: components/manage/Controlpanels/Aliases
msgid "Aliases have been uploaded."
msgstr ""

#. Default: "Alignment"
#: components/manage/Blocks/Image/schema
#: components/manage/Blocks/LeadImage/LeadImageSidebar
Expand All @@ -329,7 +339,7 @@ msgstr "Tots"
msgid "All content"
msgstr "Tot el contingut"

#. Default: "All existing alternative urls for this site"
#. Default: "Existing alternative URLs for this site"
#: components/manage/Controlpanels/Aliases
msgid "All existing alternative urls for this site"
msgstr ""
Expand All @@ -356,7 +366,7 @@ msgstr "Deixeu el camp buit si la imatge és purament decorativa"
msgid "Alt text hint link text"
msgstr "Descriu el propòsit de la imatge"

#. Default: "Alternative url path (Required)"
#. Default: "Alternative URL path (Required)"
#: components/manage/Controlpanels/Aliases
msgid "Alternative url path (Required)"
msgstr ""
Expand All @@ -367,7 +377,7 @@ msgstr ""
msgid "Alternative url path must start with a slash."
msgstr ""

#. Default: "Alternative url path → target url path (date and time of creation, manually created yes/no)"
#. Default: "Alternative URL path → target URL path (date and time of creation, manually created yes/no)"
#: components/manage/Controlpanels/Aliases
msgid "Alternative url path → target url path (date and time of creation, manually created yes/no)"
msgstr ""
Expand Down Expand Up @@ -503,11 +513,21 @@ msgstr "Navegui"
msgid "Browse the site, drop an image, or type a URL"
msgstr "Navegueu pel lloc, deixeu anar una imatge o escriviu un URL"

#. Default: "Bulk upload CSV"
#: components/manage/Controlpanels/Aliases
msgid "BulkUploadAltUrls"
msgstr ""

#. Default: "By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator."
#: components/manage/Sharing/Sharing
msgid "By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator."
msgstr "Per defecte, els permisos del contenidor d'aquest element són heretats. Si es desactiva, només seran vàlids els permisos de compartició definits explícitament. A la vista general, el símbol ${inherited} indica un valor heretat. De la mateixa manera, el símbol ${global} indica un rol global, que és gestionat per l'administrador del lloc."

#. Default: "CSV file"
#: components/manage/Controlpanels/Aliases
msgid "CSVFile"
msgstr ""

#. Default: "Cache Name"
#: components/manage/Controlpanels/DatabaseInformation
msgid "Cache Name"
Expand All @@ -526,6 +546,7 @@ msgstr "No es pot editar el disseny per al tipus de contingut <strong>{type}</st
#. Default: "Cancel"
#: components/manage/Add/Add
#: components/manage/Contents/ContentsUploadModal
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ContentType
#: components/manage/Controlpanels/ContentTypeLayout
#: components/manage/Controlpanels/ContentTypeSchema
Expand Down Expand Up @@ -836,6 +857,16 @@ msgstr ""
msgid "Create working copy"
msgstr "Crea una còpia de treball"

#. Default: "Created after"
#: components/manage/Controlpanels/Aliases
msgid "Created after"
msgstr ""

#. Default: "Created before"
#: components/manage/Controlpanels/Aliases
msgid "Created before"
msgstr ""

#. Default: "Created by {creator} on {date}"
#: components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory
msgid "Created by {creator} on {date}"
Expand Down Expand Up @@ -1293,14 +1324,18 @@ msgstr "Introduïu el nom complet, per exemple John Smith."
msgid "Enter map Embed Code"
msgstr "Introduïu el codi d'inserció del mapa"

#. Default: "Enter the absolute path of the target. Target must exist or be an existing alternative url path to the target."
#. Default: "Enter the absolute path of the target. Target must exist or be an existing alternative URL path to the target."
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path of the target. Target must exist or be an existing alternative url path to the target."
msgstr ""

#. Default: "Enter the absolute path where the alternative URL should exist. The path must start with '/'. Only URLs that result in a 404 not found page will result in a redirect occurring."
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only URLs that result in a 404 not found page will result in a redirect occurring."
davisagli marked this conversation as resolved.
Show resolved Hide resolved
msgstr ""

#. Default: "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."
#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."
msgstr ""

Expand Down Expand Up @@ -1496,7 +1531,7 @@ msgstr ""
msgid "Filter Rules:"
msgstr ""

#. Default: "Filter by prefix"
#. Default: "Filter by path"
#: components/manage/Controlpanels/Aliases
msgid "Filter by prefix"
msgstr ""
Expand Down Expand Up @@ -3591,7 +3626,6 @@ msgstr "Etiquetes per eliminar"

#. Default: "Target"
#: components/manage/Blocks/Teaser/schema
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/Relations/BrokenRelations
#: components/manage/Controlpanels/Relations/RelationsMatrix
msgid "Target"
Expand Down Expand Up @@ -4432,6 +4466,11 @@ msgstr ""
msgid "box_forgot_password_option"
msgstr "Has oblidat la teva contrasenya?"

#. Default: "Add many alternative URLs at once by uploading a CSV file. The first column should be the path to redirect from; the second, the path to redirect to. Both paths must be Plone-site-relative, starting with a slash (/). An optional third column can contain a date and time. An optional fourth column can contain a boolean to mark as a manual redirect (default true)."
#: components/manage/Controlpanels/Aliases
msgid "bulkUploadUrlsHelp"
msgstr ""

#. Default: "Checkbox"
#: config/Blocks
msgid "checkboxFacet"
Expand Down
53 changes: 46 additions & 7 deletions packages/volto/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ msgstr "Hinzufügen"
msgid "Add Addons"
msgstr "Hier werden verfügbare und installierte Backend-Add-ons gezeigt. Informationen wie Weitere hinzugefügt werden können, finden sich hier:"

#. Default: "Add Alternative URL"
#: components/manage/Controlpanels/Aliases
msgid "Add Alternative URL"
msgstr ""

#. Default: "Add Content…"
#: components/manage/Toolbar/Types
msgid "Add Content"
Expand Down Expand Up @@ -309,6 +314,11 @@ msgstr "Alias"
msgid "Alias has been added"
msgstr "Alias wurde hinzugefügt"

#. Default: "Aliases have been uploaded."
#: components/manage/Controlpanels/Aliases
msgid "Aliases have been uploaded."
msgstr ""

#. Default: "Alignment"
#: components/manage/Blocks/Image/schema
#: components/manage/Blocks/LeadImage/LeadImageSidebar
Expand All @@ -328,7 +338,7 @@ msgstr "Alle"
msgid "All content"
msgstr "Alle Inhalte"

#. Default: "All existing alternative urls for this site"
#. Default: "Existing alternative URLs for this site"
#: components/manage/Controlpanels/Aliases
msgid "All existing alternative urls for this site"
msgstr "Alle existierenden, alternativen Pfade für diese Seite"
Expand All @@ -355,7 +365,7 @@ msgstr "Das Feld kann leer bleiben, wenn das Bild rein dekorativ ist."
msgid "Alt text hint link text"
msgstr "Beschreiben Sie, was auf dem Bild zu sehen ist."

#. Default: "Alternative url path (Required)"
#. Default: "Alternative URL path (Required)"
#: components/manage/Controlpanels/Aliases
msgid "Alternative url path (Required)"
msgstr "Alternativer Pfad (erforderlich)"
Expand All @@ -366,7 +376,7 @@ msgstr "Alternativer Pfad (erforderlich)"
msgid "Alternative url path must start with a slash."
msgstr "Alternativer Pfad muss mit einem Schrägstrich beginnen"

#. Default: "Alternative url path → target url path (date and time of creation, manually created yes/no)"
#. Default: "Alternative URL path → target URL path (date and time of creation, manually created yes/no)"
#: components/manage/Controlpanels/Aliases
msgid "Alternative url path → target url path (date and time of creation, manually created yes/no)"
msgstr "Alternativer URL Pfad → Zielpfad (Datum und Zeit der Erstellung, manuell erstellt ja/nein)"
Expand Down Expand Up @@ -502,11 +512,21 @@ msgstr "Durchsuchen"
msgid "Browse the site, drop an image, or type a URL"
msgstr "Seite durchsuchen, Bild ablegen oder URL eingeben"

#. Default: "Bulk upload CSV"
#: components/manage/Controlpanels/Aliases
msgid "BulkUploadAltUrls"
msgstr ""

#. Default: "By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator."
#: components/manage/Sharing/Sharing
msgid "By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator."
msgstr "Standardmäßig werden die Berechtigungen von einem Ordner auf die in ihm befindlichen Artikel vererbt. Wenn Sie dies deaktivieren, sind nur die explizit definierten Zugriffsberechtigungen gültig. In der Übersicht zeigt das Symbol ${image_confirm_icon} einen ererbten Wert an. Das Symbol ${image_link_icon} zeigt eine globale Funktion an, die vom Administrator verwaltet wird."

#. Default: "CSV file"
#: components/manage/Controlpanels/Aliases
msgid "CSVFile"
msgstr ""

#. Default: "Cache Name"
#: components/manage/Controlpanels/DatabaseInformation
msgid "Cache Name"
Expand All @@ -525,6 +545,7 @@ msgstr "Layout für <strong>{type}</strong> kann nicht verändert werden, da das
#. Default: "Cancel"
#: components/manage/Add/Add
#: components/manage/Contents/ContentsUploadModal
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/ContentType
#: components/manage/Controlpanels/ContentTypeLayout
#: components/manage/Controlpanels/ContentTypeSchema
Expand Down Expand Up @@ -835,6 +856,16 @@ msgstr "Relationen mit diesem Ziel erstellen oder löschen"
msgid "Create working copy"
msgstr "Arbeitskopie erstellen"

#. Default: "Created after"
#: components/manage/Controlpanels/Aliases
msgid "Created after"
msgstr ""

#. Default: "Created before"
#: components/manage/Controlpanels/Aliases
msgid "Created before"
msgstr ""

#. Default: "Created by {creator} on {date}"
#: components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory
msgid "Created by {creator} on {date}"
Expand Down Expand Up @@ -1292,14 +1323,18 @@ msgstr "Tragen Sie bitte Ihren vollen Namen ein."
msgid "Enter map Embed Code"
msgstr "Karten-Einbettungscode eingeben"

#. Default: "Enter the absolute path of the target. Target must exist or be an existing alternative url path to the target."
#. Default: "Enter the absolute path of the target. Target must exist or be an existing alternative URL path to the target."
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path of the target. Target must exist or be an existing alternative url path to the target."
msgstr "Geben Sie den absoluten Pfad des Ziels ein. Das Ziel muss existieren oder ein existierender, alternativer Pfad zum Ziel sein."

#. Default: "Enter the absolute path where the alternative URL should exist. The path must start with '/'. Only URLs that result in a 404 not found page will result in a redirect occurring."
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only URLs that result in a 404 not found page will result in a redirect occurring."
msgstr ""

#. Default: "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."
#: components/manage/Aliases/Aliases
#: components/manage/Controlpanels/Aliases
msgid "Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."
msgstr "Geben Sie den absoluten Pfad ein, an dem die alternative URL existieren soll. Der Pfad muss mit '/' beginnen. Es werden nur URLs die in einem '404 Nicht Gefunden' enden, weitergeleitet."

Expand Down Expand Up @@ -1495,7 +1530,7 @@ msgstr ""
msgid "Filter Rules:"
msgstr "Filterregeln:"

#. Default: "Filter by prefix"
#. Default: "Filter by path"
#: components/manage/Controlpanels/Aliases
msgid "Filter by prefix"
msgstr "Nach Präfix filtern"
Expand Down Expand Up @@ -3590,7 +3625,6 @@ msgstr "Zu entfernende Tags"

#. Default: "Target"
#: components/manage/Blocks/Teaser/schema
#: components/manage/Controlpanels/Aliases
#: components/manage/Controlpanels/Relations/BrokenRelations
#: components/manage/Controlpanels/Relations/RelationsMatrix
msgid "Target"
Expand Down Expand Up @@ -4431,6 +4465,11 @@ msgstr ""
msgid "box_forgot_password_option"
msgstr "Passwort vergessen?"

#. Default: "Add many alternative URLs at once by uploading a CSV file. The first column should be the path to redirect from; the second, the path to redirect to. Both paths must be Plone-site-relative, starting with a slash (/). An optional third column can contain a date and time. An optional fourth column can contain a boolean to mark as a manual redirect (default true)."
#: components/manage/Controlpanels/Aliases
msgid "bulkUploadUrlsHelp"
msgstr ""

#. Default: "Checkbox"
#: config/Blocks
msgid "checkboxFacet"
Expand Down
Loading
Loading