diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 16:50:19 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 16:50:19 +0200 |
| commit | 37c542bee952193ebfbced8529b8699e2712fdc8 (patch) | |
| tree | df8d70c586002a08b85ba1143a93f9444215ff63 /config/locales | |
| parent | 970f0daaa7097d1a34cf3daa6266b80b93c190a9 (diff) | |
Localise model validation messages and refusal reasons
Diffstat (limited to 'config/locales')
| -rw-r--r-- | config/locales/de.yml | 37 | ||||
| -rw-r--r-- | config/locales/en.yml | 30 |
2 files changed, 66 insertions, 1 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml index e8a65cea..647caf57 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -114,6 +114,41 @@ de: | |||
| 114 | node_id: "Node-ID" | 114 | node_id: "Node-ID" |
| 115 | path: "Pfad" | 115 | path: "Pfad" |
| 116 | title: "Titel" | 116 | title: "Titel" |
| 117 | node: | ||
| 118 | slug: "Slug" | ||
| 119 | staged_slug: "Vorgemerkter Slug" | ||
| 120 | parent_id: "Eltern-Node" | ||
| 121 | staged_parent_id: "Vorgemerkter Eltern-Node" | ||
| 122 | head_id: "Head" | ||
| 123 | related_asset: | ||
| 124 | headline: "Aufmacher" | ||
| 125 | |||
| 126 | errors: | ||
| 127 | models: | ||
| 128 | node: | ||
| 129 | # Attribute messages: full_messages prefixes the human attribute | ||
| 130 | # name, so these read as fragments. Defined at model level rather | ||
| 131 | # than per attribute, because several attributes share a message. | ||
| 132 | reserved_for_trash: "ist für den Papierkorb reserviert" | ||
| 133 | trash_immutable: "des Papierkorb-Nodes kann nicht geändert werden" | ||
| 134 | trash_must_be_empty: "muss auf dem Papierkorb-Node leer bleiben" | ||
| 135 | inside_trash: "kann im Papierkorb nicht existieren" | ||
| 136 | attributes: | ||
| 137 | base: | ||
| 138 | # :base messages stand alone -- no attribute name is prefixed, | ||
| 139 | # so these are whole sentences. | ||
| 140 | has_children: "Ein Node mit Kindern kann nicht gelöscht werden" | ||
| 141 | trash_undeletable: "Der Papierkorb-Node kann nicht gelöscht werden" | ||
| 142 | publish_in_trash: "Ein Node im Papierkorb kann nicht veröffentlicht werden" | ||
| 143 | move_under_self: "Ein Node kann nicht unter sich selbst oder einen seiner Nachfahren verschoben werden" | ||
| 144 | trash_the_trash: "Der Papierkorb-Node selbst kann nicht in den Papierkorb verschoben werden" | ||
| 145 | restore_target_invalid: "Das Wiederherstellungsziel muss ein lebender Node sein" | ||
| 146 | destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" | ||
| 147 | attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" | ||
| 148 | related_asset: | ||
| 149 | attributes: | ||
| 150 | headline: | ||
| 151 | images_and_pdfs_only: "kann nur auf Bildern oder PDFs gesetzt werden" | ||
| 117 | 152 | ||
| 118 | tags: | 153 | tags: |
| 119 | index: | 154 | index: |
| @@ -639,7 +674,7 @@ de: | |||
| 639 | edit: | 674 | edit: |
| 640 | title: "Menüeintrag bearbeiten" | 675 | title: "Menüeintrag bearbeiten" |
| 641 | title_fields: | 676 | title_fields: |
| 642 | falls_back: "Menu-Title leer lassen, fall-back nach deutsch" | 677 | falls_back: "Menu-Titel. Leere Titel werden aus deutsch übernommen" |
| 643 | 678 | ||
| 644 | layouts: | 679 | layouts: |
| 645 | application: | 680 | application: |
diff --git a/config/locales/en.yml b/config/locales/en.yml index da87777d..1b112e3d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -66,6 +66,36 @@ en: | |||
| 66 | node_id: "Node Id" | 66 | node_id: "Node Id" |
| 67 | path: "Path" | 67 | path: "Path" |
| 68 | title: "Title" | 68 | title: "Title" |
| 69 | node: | ||
| 70 | slug: "Slug" | ||
| 71 | staged_slug: "Staged slug" | ||
| 72 | parent_id: "Parent node" | ||
| 73 | staged_parent_id: "Staged parent node" | ||
| 74 | head_id: "Head" | ||
| 75 | related_asset: | ||
| 76 | headline: "Headline" | ||
| 77 | |||
| 78 | errors: | ||
| 79 | models: | ||
| 80 | node: | ||
| 81 | reserved_for_trash: "is reserved for the Trash" | ||
| 82 | trash_immutable: "of the Trash node cannot change" | ||
| 83 | trash_must_be_empty: "must stay empty on the Trash node" | ||
| 84 | inside_trash: "cannot exist inside the Trash" | ||
| 85 | attributes: | ||
| 86 | base: | ||
| 87 | has_children: "Cannot destroy a node that still has children" | ||
| 88 | trash_undeletable: "The Trash node cannot be destroyed" | ||
| 89 | publish_in_trash: "Cannot publish a node in the Trash" | ||
| 90 | move_under_self: "Cannot move a node under itself or one of its own descendants" | ||
| 91 | trash_the_trash: "The Trash node itself cannot be trashed" | ||
| 92 | restore_target_invalid: "Restore target must be a living node" | ||
| 93 | destroy_outside_trash: "Nodes are only destroyed from the Trash" | ||
| 94 | attach_in_trash: "Cannot attach assets to a node in the Trash" | ||
| 95 | related_asset: | ||
| 96 | attributes: | ||
| 97 | headline: | ||
| 98 | images_and_pdfs_only: "can only be set on image or PDF assets" | ||
| 69 | 99 | ||
| 70 | tags: | 100 | tags: |
| 71 | index: | 101 | index: |
