diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 03:33:55 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 03:33:55 +0200 |
| commit | 20c735b0c5a2db9b8984848253ad99332d6211a8 (patch) | |
| tree | a4ae71c53c403c1a7740db624e43fd3163e37ab7 /config | |
| parent | 5203b80f47786b8adc169e80d89cd69159c44b62 (diff) | |
Attach assets to the draft instead of to every lifecycle row
Node#attach_asset! writes to the node's draft alone, creating one from the
head when none is pending. It refuses when another user holds the lock, and
when an autosave already exists
The asset_attach verb goes with it. create_new_draft names the editor on the
draft it creates and the publish entry's asset delta reports the attachment.
Diffstat (limited to 'config')
| -rw-r--r-- | config/locales/de.yml | 6 | ||||
| -rw-r--r-- | config/locales/en.yml | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml index c6dc17b7..58367aaf 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -136,6 +136,7 @@ de: | |||
| 136 | destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" | 136 | destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" |
| 137 | attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" | 137 | attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" |
| 138 | not_permitted: "In diesem Bereich dürfen nur Mitglieder der Redaktion veröffentlichte Inhalte ändern" | 138 | not_permitted: "In diesem Bereich dürfen nur Mitglieder der Redaktion veröffentlichte Inhalte ändern" |
| 139 | attach_with_autosave: "An einen Node mit ungespeicherten Änderungen im Editor können keine Assets angehängt werden" | ||
| 139 | page: | 140 | page: |
| 140 | attributes: | 141 | attributes: |
| 141 | slug: | 142 | slug: |
| @@ -659,8 +660,9 @@ de: | |||
| 659 | assets: | 660 | assets: |
| 660 | created: "Asset wurde angelegt." | 661 | created: "Asset wurde angelegt." |
| 661 | updated: "Asset wurde aktualisiert." | 662 | updated: "Asset wurde aktualisiert." |
| 662 | attached: "Asset wurde angelegt und an „%{title}“ angehängt." | 663 | already_attached: "Asset wurde gespeichert. Es war bereits an „%{title}“ angehängt." |
| 663 | already_attached: "Asset gespeichert — es war bereits an „%{title}“ angehängt." | 664 | attached_to_draft: "Zum Entwurf von %{title} hinzugefügt. Zum Veröffentlichen den Entwurf freigeben." |
| 665 | attached_new_draft: "Entwurf von %{title} mit diesem Anhang angelegt. Zum Veröffentlichen den Entwurf freigeben." | ||
| 664 | events: | 666 | events: |
| 665 | created: "Termin wurde angelegt." | 667 | created: "Termin wurde angelegt." |
| 666 | updated: "Termin wurde aktualisiert." | 668 | updated: "Termin wurde aktualisiert." |
diff --git a/config/locales/en.yml b/config/locales/en.yml index bd339cc9..4bdca31b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -87,6 +87,7 @@ en: | |||
| 87 | destroy_outside_trash: "Nodes are only destroyed from the Trash" | 87 | destroy_outside_trash: "Nodes are only destroyed from the Trash" |
| 88 | attach_in_trash: "Cannot attach assets to a node in the Trash" | 88 | attach_in_trash: "Cannot attach assets to a node in the Trash" |
| 89 | not_permitted: "Only Redaktion members may change published content in this section" | 89 | not_permitted: "Only Redaktion members may change published content in this section" |
| 90 | attach_with_autosave: "Cannot attach assets to a node with unsaved changes in the editor" | ||
| 90 | page: | 91 | page: |
| 91 | attributes: | 92 | attributes: |
| 92 | slug: | 93 | slug: |
| @@ -627,8 +628,9 @@ en: | |||
| 627 | assets: | 628 | assets: |
| 628 | created: "Asset was successfully created." | 629 | created: "Asset was successfully created." |
| 629 | updated: "Asset was successfully updated." | 630 | updated: "Asset was successfully updated." |
| 630 | attached: "Asset was successfully created and attached to “%{title}”." | ||
| 631 | already_attached: "Asset saved — it was already attached to “%{title}”." | 631 | already_attached: "Asset saved — it was already attached to “%{title}”." |
| 632 | attached_to_draft: "Attached to the draft of %{title}. Publish it to make the change live." | ||
| 633 | attached_new_draft: "Created a draft of %{title} with this attachment. Publish it to make the change live." | ||
| 632 | events: | 634 | events: |
| 633 | created: "Event was successfully created." | 635 | created: "Event was successfully created." |
| 634 | updated: "Event was successfully updated." | 636 | updated: "Event was successfully updated." |
