Hero-admin: meerdere foto's tegelijk, slepen, niet-opgeslagen waarschuwing, begrijpelijke teksten, rustige wachtanimatie

- Meerdere bestanden kiezen of slepen (2 tegelijk, per bestand voortgang en reden bij falen, volgorde van kiezen), uploadlimiet standaard 100 per uur
- Volgorde ook met slepen (greepje, toetsenbord), pijltjes blijven
- Waarschuwing bij niet-opgeslagen wijzigingen (badge, beforeunload, bevestiging bij navigeren, vergelijking met laatst opgeslagen stand)
- Teksten zonder vakjargon, uitleg per onderdeel, formaten en limieten van de host (GET /hero/images/limits)
- Shimmer (CSS, reduced-motion) op foto's die nog verwerkt worden

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 21:56:10 +01:00
co-authored by Claude Sonnet 5.5
parent 49302c3228
commit 9d647bb049
20 changed files with 900 additions and 98 deletions
+70 -14
View File
@@ -615,12 +615,12 @@
"title": "Hero",
"live": "Live",
"notLive": "Not live",
"intro": "The hero is the first thing visitors of the website see. Here you manage the texts, the buttons and the images; the website decides how they are shown. A change is visible within about a minute.",
"intro": "The hero is the first thing visitors of the website see: a large heading with one or more photos. Here you manage the texts, the buttons and the photos. A change is visible within about a minute.",
"savedToast": "Hero saved",
"fields": {
"title": "Title",
"titleHint": "A new line in this field is a line break in the title (at most 5 lines).",
"tagline": "Tagline (short label, optional)",
"tagline": "Short text above the title (optional)",
"lead": "Introduction (optional)",
"display": "Display"
},
@@ -630,7 +630,7 @@
},
"buttons": {
"title": "Buttons",
"hint": "At most two buttons. The target is an #anchor on the page, a /path on the site or an https:// address.",
"hint": "At most two buttons. As the target, choose a part of the page (for example #contact), a page of the site (for example /privacy) or a full web address (https://…).",
"label": "Button {{n}}: text",
"target": "Button {{n}}: target"
},
@@ -639,16 +639,16 @@
"active": "Hero is switched on",
"starts": "Visible from",
"ends": "Visible until",
"hint": "Outside the schedule, or switched off, the website shows its own default hero."
"hint": "Outside this period, or when the hero is switched off, the website keeps its standard hero."
},
"slides": {
"title": "Images",
"add": "Add image",
"uploading": "Uploading…",
"hint": "Upload a photo (JPEG, PNG, WebP and other common formats, at most 10 MB). Set where the subject is with the Focus button. The first image is the first one visitors see.",
"hint": "Choose several files at once or drag them into this box. New photos are added at the bottom of the list. Drag a photo by its handle, or use the arrows, to change the order; visitors see the first photo first. With the Focus button you show where the subject is.",
"empty": "No images yet.",
"alt": "Description of image {{n}} (alt text)",
"decorative": "Decorative (no description)",
"alt": "Description of image {{n}}",
"decorative": "Decoration only (no description needed)",
"active": "Show",
"up": "Move up",
"down": "Move down",
@@ -658,12 +658,17 @@
"focusPending": "Focus changed, not saved yet.",
"processing": "Processing…",
"processingHint": "The image is being prepared in the background; it appears on the website as soon as it is ready.",
"failed": "Failed"
"failed": "Failed",
"limits": "Allowed: {{formats}}. At most {{size}} MB per file and {{megapixels}} megapixels.",
"altHint": "Describes the photo for people who cannot see it and for search engines.",
"decorativeHint": "Choose this when the photo adds nothing to the content; a screen reader then skips it.",
"drag": "Move image {{n}}",
"dragInstructions": "Press space to pick up the image, use the arrow keys to move it and press space again to drop it. Escape cancels."
},
"processing": {
"count": "{{done}} of {{total}} photos processed",
"label": "Progress of processing the photos",
"explain": "The hero has been saved. The photos are prepared one by one in the background and go live as soon as they are ready. Until the first photo is ready the website keeps showing the baked hero. You do not have to keep this page open.",
"explain": "The hero has been saved. The photos are prepared one by one and go live as soon as they are ready. Until the first photo is ready the website keeps its standard hero. You do not have to keep this page open.",
"failed_one": "Processing {{count}} photo failed.",
"failed_other": "Processing {{count}} photos failed.",
"failedHint": "The server tried three times. Try again, or upload the photo once more (the same photo is the same image).",
@@ -671,7 +676,7 @@
},
"focus": {
"title": "Focus and crop",
"intro": "Click or drag on the photo to show where the subject is. The website crops the photo for landscape (wide) and portrait (tall) screens so that the subject stays in view.",
"intro": "Click or drag on the photo to show where the subject is. The website crops the photo for landscape and portrait screens so that the subject stays in view.",
"targetLegend": "For which display",
"target": {
"general": "General",
@@ -695,20 +700,71 @@
"titleRequired": "A title is required.",
"titleTooLong": "The title can have at most 200 characters.",
"titleTooManyLines": "The title can have at most 5 lines.",
"taglineTooLong": "The tagline can have at most 120 characters.",
"taglineTooLong": "The short text above the title can have at most 120 characters.",
"leadTooLong": "The introduction can have at most 600 characters.",
"buttonLabelTooLong": "The button text can have at most 50 characters.",
"buttonTargetTooLong": "The target can have at most 500 characters.",
"buttonIncomplete": "Fill in both the text and the target of the button, or leave both empty.",
"buttonTargetInvalid": "Choose an #anchor, a /path or an https:// address.",
"buttonTargetInvalid": "Choose a part of the page (for example #contact), a page of the site (for example /privacy) or a full web address (https://…).",
"altTooLong": "The description can have at most 300 characters.",
"altRequired": "Give a description or mark the image as decorative.",
"altRequired": "Give a description or choose ‘Decoration only’.",
"endAfterStart": "The end must be after the start."
},
"upload": {
"tooLarge": "The image is too large (at most {{max}} MB).",
"interrupted": "The upload was interrupted. Check the connection and try again.",
"busy": "Too many uploads in a row. Try again in a few minutes."
"busy": "Too many uploads in a row. Try again in a few minutes.",
"notAnImage": "This file is not an image.",
"progress": "Uploading: {{done}} of {{total}}",
"summary": "{{ok}} of {{total}} photos added",
"waiting": "waiting",
"uploading": "uploading…",
"done": "added",
"close": "Close"
},
"help": {
"heading": "Explanation of each part",
"save": "Changes only take effect after you save the hero.",
"title": {
"name": "Title",
"text": "The large heading. A new line in the field is a new line in the heading."
},
"tagline": {
"name": "Short text above the title",
"text": "A short label above or before the title. Can stay empty."
},
"lead": {
"name": "Introduction",
"text": "One or two sentences below the title. Can stay empty."
},
"buttons": {
"name": "Buttons",
"text": "At most two, each with a text and a target. As the target, choose a part of the page (for example #contact), a page of the site (for example /privacy) or a full web address (https://…)."
},
"display": {
"name": "Display",
"text": "‘Single’ shows one photo, ‘Slideshow’ switches between the photos."
},
"slides": {
"name": "Images",
"text": "Upload photos, describe what is in them and set the order (drag or use the arrows). ‘Show’ switches a photo on or off. Choose ‘Decoration only’ for a photo that adds nothing to the content."
},
"focus": {
"name": "Focus",
"text": "Show where the subject is in the photo, so a crop never cuts it off. For portrait screens, such as a phone, you can choose a separate point."
},
"schedule": {
"name": "Schedule",
"text": "The hero is only visible in the period from–until. Outside that period the website keeps its standard hero."
}
},
"unsaved": {
"badge": "Unsaved changes",
"text": "Save the hero to put them on the website.",
"leaveTitle": "Changes not saved",
"leaveText": "You have made changes that are not saved yet. If you leave this page they will be lost.",
"stay": "Stay",
"discard": "Discard changes"
}
}
}
+70 -14
View File
@@ -615,12 +615,12 @@
"title": "Hero",
"live": "Live",
"notLive": "Niet live",
"intro": "De hero is het eerste wat bezoekers van de website zien. Hier beheer je de teksten, de knoppen en de afbeeldingen; de website bepaalt zelf hoe ze worden getoond. Een wijziging is binnen ongeveer een minuut zichtbaar.",
"intro": "De hero is het eerste wat bezoekers van de website zien: een grote kop met een of meer foto’s. Hier beheer je de teksten, de knoppen en de foto’s. Een wijziging is binnen ongeveer een minuut zichtbaar.",
"savedToast": "Hero opgeslagen",
"fields": {
"title": "Titel",
"titleHint": "Een nieuwe regel in dit veld is een regelafbreking in de titel (maximaal 5 regels).",
"tagline": "Tagline (kort label, optioneel)",
"tagline": "Korte tekst boven de titel (optioneel)",
"lead": "Introductietekst (optioneel)",
"display": "Weergave"
},
@@ -630,7 +630,7 @@
},
"buttons": {
"title": "Knoppen",
"hint": "Maximaal twee knoppen. Het doel is een #anker op de pagina, een /pad op de site of een https://-adres.",
"hint": "Maximaal twee knoppen. Als doel kies je een onderdeel van de pagina (bijvoorbeeld #contact), een pagina van de site (bijvoorbeeld /privacy) of een volledig webadres (https://…).",
"label": "Knop {{n}}: tekst",
"target": "Knop {{n}}: doel"
},
@@ -639,16 +639,16 @@
"active": "Hero is aangezet",
"starts": "Zichtbaar vanaf",
"ends": "Zichtbaar tot",
"hint": "Buiten de planning, of uitgezet, toont de website zijn eigen standaard-hero."
"hint": "Buiten deze periode, of als de hero is uitgezet, blijft de standaard hero van de website staan."
},
"slides": {
"title": "Afbeeldingen",
"add": "Afbeelding toevoegen",
"uploading": "Bezig met uploaden…",
"hint": "Upload een foto (JPEG, PNG, WebP en andere gangbare formaten, maximaal 10 MB). Zet het onderwerp goed met de knop Focus. De eerste afbeelding is de eerste die bezoekers zien.",
"hint": "Kies meerdere bestanden tegelijk of sleep ze naar dit vak. Nieuwe foto’s komen onderaan de lijst. Sleep een foto aan het greepje, of gebruik de pijltjes, om de volgorde te wijzigen; de eerste foto zien bezoekers als eerste. Met de knop Focus geef je aan waar het onderwerp staat.",
"empty": "Nog geen afbeeldingen.",
"alt": "Beschrijving van afbeelding {{n}} (alt-tekst)",
"decorative": "Decoratief (geen beschrijving)",
"alt": "Beschrijving afbeelding {{n}}",
"decorative": "Alleen versiering (geen beschrijving nodig)",
"active": "Tonen",
"up": "Omhoog",
"down": "Omlaag",
@@ -658,12 +658,17 @@
"focusPending": "Focus gewijzigd, nog niet opgeslagen.",
"processing": "Wordt verwerkt…",
"processingHint": "De afbeelding wordt klaargezet op de achtergrond; hij verschijnt op de website zodra hij klaar is.",
"failed": "Mislukt"
"failed": "Mislukt",
"limits": "Toegestaan: {{formats}}. Maximaal {{size}} MB per bestand en {{megapixels}} megapixel.",
"altHint": "Beschrijft de foto voor mensen die hem niet kunnen zien en voor zoekmachines.",
"decorativeHint": "Kies dit als de foto niets toevoegt aan de inhoud; dan leest een schermlezer hem niet voor.",
"drag": "Verplaats afbeelding {{n}}",
"dragInstructions": "Druk op spatie om de afbeelding op te pakken, gebruik de pijltjestoetsen om hem te verplaatsen en druk nogmaals op spatie om hem neer te zetten. Escape annuleert."
},
"processing": {
"count": "{{done}} van {{total}} foto’s verwerkt",
"label": "Voortgang van het verwerken van de foto’s",
"explain": "De hero is al opgeslagen. De foto’s worden één voor één klaargezet op de achtergrond en gaan live zodra ze klaar zijn. Tot de eerste foto klaar is, toont de website de ingebakken hero. Je hoeft deze pagina niet open te houden.",
"explain": "De hero is al opgeslagen. De foto’s worden één voor één klaargezet en gaan live zodra ze klaar zijn. Tot de eerste foto klaar is, blijft de standaard hero van de website staan. Je hoeft deze pagina niet open te houden.",
"failed_one": "Het verwerken van {{count}} foto is mislukt.",
"failed_other": "Het verwerken van {{count}} foto’s is mislukt.",
"failedHint": "De server heeft het drie keer geprobeerd. Probeer het opnieuw, of upload de foto nog een keer (dezelfde foto is dezelfde afbeelding).",
@@ -671,7 +676,7 @@
},
"focus": {
"title": "Focus en uitsnede",
"intro": "Klik of sleep op de foto om aan te geven waar het onderwerp staat. De website snijdt de foto voor liggende (wide) en staande (tall) schermen zo uit dat het onderwerp in beeld blijft.",
"intro": "Klik of sleep op de foto om aan te geven waar het onderwerp staat. De website snijdt de foto voor liggende en staande schermen zo uit dat het onderwerp in beeld blijft.",
"targetLegend": "Voor welke weergave",
"target": {
"general": "Algemeen",
@@ -695,20 +700,71 @@
"titleRequired": "Een titel is verplicht.",
"titleTooLong": "De titel mag maximaal 200 tekens bevatten.",
"titleTooManyLines": "De titel mag maximaal 5 regels hebben.",
"taglineTooLong": "De tagline mag maximaal 120 tekens bevatten.",
"taglineTooLong": "De korte tekst boven de titel mag maximaal 120 tekens bevatten.",
"leadTooLong": "De introductietekst mag maximaal 600 tekens bevatten.",
"buttonLabelTooLong": "De knoptekst mag maximaal 50 tekens bevatten.",
"buttonTargetTooLong": "Het doel mag maximaal 500 tekens bevatten.",
"buttonIncomplete": "Vul zowel de tekst als het doel van de knop in, of laat beide leeg.",
"buttonTargetInvalid": "Kies een #anker, een /pad of een https://-adres.",
"buttonTargetInvalid": "Kies een onderdeel van de pagina (bijvoorbeeld #contact), een pagina van de site (bijvoorbeeld /privacy) of een volledig webadres (https://…).",
"altTooLong": "De beschrijving mag maximaal 300 tekens bevatten.",
"altRequired": "Geef een beschrijving of markeer de afbeelding als decoratief.",
"altRequired": "Geef een beschrijving of kies ‘Alleen versiering’.",
"endAfterStart": "Het einde moet na het begin liggen."
},
"upload": {
"tooLarge": "De afbeelding is te groot (maximaal {{max}} MB).",
"interrupted": "De upload is afgebroken. Controleer de verbinding en probeer het opnieuw.",
"busy": "Er zijn te veel uploads achter elkaar. Probeer het over een paar minuten opnieuw."
"busy": "Er zijn te veel uploads achter elkaar. Probeer het over een paar minuten opnieuw.",
"notAnImage": "Dit bestand is geen afbeelding.",
"progress": "Bezig met uploaden: {{done}} van {{total}}",
"summary": "{{ok}} van {{total}} foto’s toegevoegd",
"waiting": "wacht",
"uploading": "bezig…",
"done": "toegevoegd",
"close": "Sluiten"
},
"help": {
"heading": "Uitleg per onderdeel",
"save": "Wijzigingen gelden pas nadat je de hero opslaat.",
"title": {
"name": "Titel",
"text": "De grote kop. Een nieuwe regel in het veld is een nieuwe regel in de kop."
},
"tagline": {
"name": "Korte tekst boven de titel",
"text": "Een kort label dat boven of voor de titel staat. Mag leeg blijven."
},
"lead": {
"name": "Introductietekst",
"text": "Een of twee zinnen onder de titel. Mag leeg blijven."
},
"buttons": {
"name": "Knoppen",
"text": "Maximaal twee, elk met een tekst en een doel. Als doel kies je een onderdeel van de pagina (bijvoorbeeld #contact), een pagina van de site (bijvoorbeeld /privacy) of een volledig webadres (https://…)."
},
"display": {
"name": "Weergave",
"text": "‘Enkel’ toont één foto, ‘Diavoorstelling’ wisselt tussen de foto’s."
},
"slides": {
"name": "Afbeeldingen",
"text": "Upload foto’s, beschrijf wat erop staat en bepaal de volgorde (slepen of de pijltjes). Met ‘Tonen’ zet je een foto aan of uit. Kies ‘Alleen versiering’ voor een foto die niets toevoegt aan de inhoud."
},
"focus": {
"name": "Focus",
"text": "Geef aan waar het onderwerp op de foto staat, zodat een uitsnede er niets van afhakt. Voor staande schermen, zoals een telefoon, kun je een apart punt kiezen."
},
"schedule": {
"name": "Planning",
"text": "De hero is alleen zichtbaar in de periode van–tot. Buiten die periode blijft de standaard hero van de website staan."
}
},
"unsaved": {
"badge": "Niet-opgeslagen wijzigingen",
"text": "Sla de hero op om ze door te voeren op de website.",
"leaveTitle": "Wijzigingen niet opgeslagen",
"leaveText": "Je hebt wijzigingen gemaakt die nog niet zijn opgeslagen. Als je deze pagina verlaat, gaan ze verloren.",
"stay": "Blijven",
"discard": "Wijzigingen weggooien"
}
}
}