From cf1f547ea1fb32d0d9a0be277e7e04708c3e0fa7 Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Wed, 8 Jan 2025 18:04:04 +0100 Subject: [PATCH] :globe_with_meridians: [open-formulieren/open-forms#2177] Translations --- i18n/messages/en.json | 50 +++++++++++++++++-- i18n/messages/nl.json | 50 +++++++++++++++++-- .../map/interaction-configuration.tsx | 14 +++--- src/registry/map/map-configuration.stories.ts | 4 +- src/registry/map/map-configuration.tsx | 2 +- 5 files changed, 100 insertions(+), 20 deletions(-) diff --git a/i18n/messages/en.json b/i18n/messages/en.json index 0c878b23..1eb6f421 100644 --- a/i18n/messages/en.json +++ b/i18n/messages/en.json @@ -204,6 +204,11 @@ "description": "Character count", "originalDefault": "{length} {length, plural, one {character} other {characters}}" }, + "5iMlhl": { + "defaultMessage": "Initial focus", + "description": "Map configuration panel title", + "originalDefault": "Initial focus" + }, "5xNPpS": { "defaultMessage": "Option label", "description": "Accessible label for option label", @@ -284,6 +289,11 @@ "description": "Operator 'subtract' option label", "originalDefault": "Subtract" }, + "9oJuUL": { + "defaultMessage": "Marker", + "description": "Label for 'interactions.marker' builder field", + "originalDefault": "Marker" + }, "AClYLf": { "defaultMessage": "If checked, the current day is an allowed value.", "description": "Tooltip for 'date constraint includeToday' builder validation field", @@ -564,6 +574,11 @@ "description": "Label for 'disableAddingRemovingRows' builder field", "originalDefault": "Disable adding or removing groups" }, + "N2dWW9": { + "defaultMessage": "Available drawing shapes", + "description": "Interaction configuration panel title", + "originalDefault": "Available drawing shapes" + }, "NdaqDN": { "defaultMessage": "Option description ()", "description": "Label for option description location", @@ -679,6 +694,11 @@ "description": "Double column label", "originalDefault": "Double column" }, + "T64zDz": { + "defaultMessage": "Polygon", + "description": "Label for 'interactions.polygon' builder field", + "originalDefault": "Polygon" + }, "TCNvqa": { "defaultMessage": "Minimum date", "description": "Date field 'minDate' fixed value label", @@ -794,6 +814,11 @@ "description": "Tooltip for 'Multiple values' builder field", "originalDefault": "Are there multiple values possible for this field?" }, + "WXpj4j": { + "defaultMessage": "Users can set a marker on the map", + "description": "Tooltip for 'interactions.marker' builder field", + "originalDefault": "Users can set a marker on the map" + }, "WZJG0y": { "defaultMessage": "In the past", "description": "Date constraint mode 'past' label", @@ -914,6 +939,11 @@ "description": "Label for address houseletter", "originalDefault": "House letter addition" }, + "b64egT": { + "defaultMessage": "Users can draw shapes (polygons) on the map", + "description": "Tooltip for 'interactions.polygon' builder field", + "originalDefault": "Users can draw shapes (polygons) on the map" + }, "bYBFBc": { "defaultMessage": "Whether to show this value in the submission summary", "description": "Tooltip for 'showInSummary' builder field", @@ -999,11 +1029,6 @@ "description": "Date field 'minDate' validation panel title", "originalDefault": "Minimum date {configured, select, false {(not set)} other {}}" }, - "e6SsfR": { - "defaultMessage": "Map configuration", - "description": "Map configuration panel title", - "originalDefault": "Map configuration" - }, "eAmrdi": { "defaultMessage": "Loading...", "description": "Loading content text", @@ -1244,6 +1269,11 @@ "description": "Tooltip for 'operator' in relative delta date constraint validation", "originalDefault": "Specify whether to add or subtract a time delta to/from the variable." }, + "mRmbnJ": { + "defaultMessage": "Line", + "description": "Label for 'interactions.polyline' builder field", + "originalDefault": "Line" + }, "mWuCXv": { "defaultMessage": "Optionally provide additional information to explain the meaning of the option.", "description": "Tooltip for option/choice description", @@ -1339,6 +1369,11 @@ "description": "Label for 'NumberOfRows' builder field", "originalDefault": "Number of rows" }, + "pM92DZ": { + "defaultMessage": "Users can draw straight lines on the map", + "description": "Tooltip for 'interactions.polyline' builder field", + "originalDefault": "Users can draw straight lines on the map" + }, "pT5jx/": { "defaultMessage": "Column size on mobile, value between 1 and 4.", "description": "Accessible label for column mobile size", @@ -1464,6 +1499,11 @@ "description": "Tooltip for 'prefill.attribute' builder field", "originalDefault": "Specify the attribute holding the pre-fill data." }, + "wJ7Yha": { + "defaultMessage": "Map settings", + "description": "Component edit form tab title for 'Map settings' tab", + "originalDefault": "Map settings" + }, "wOq8Pb": { "defaultMessage": "Translation for option with value \"{value}\"", "description": "Accessible label for option label translation field", diff --git a/i18n/messages/nl.json b/i18n/messages/nl.json index 692b6b38..b60779b0 100644 --- a/i18n/messages/nl.json +++ b/i18n/messages/nl.json @@ -206,6 +206,11 @@ "description": "Character count", "originalDefault": "{length} {length, plural, one {character} other {characters}}" }, + "5iMlhl": { + "defaultMessage": "Begin focuspunt", + "description": "Map configuration panel title", + "originalDefault": "Initial focus" + }, "5xNPpS": { "defaultMessage": "Optielabel", "description": "Accessible label for option label", @@ -287,6 +292,11 @@ "description": "Operator 'subtract' option label", "originalDefault": "Subtract" }, + "9oJuUL": { + "defaultMessage": "Pin/punt", + "description": "Label for 'interactions.marker' builder field", + "originalDefault": "Marker" + }, "AClYLf": { "defaultMessage": "Indien aangevinkt, dan is de dag op het moment van evaluatie een geldige datum.", "description": "Tooltip for 'date constraint includeToday' builder validation field", @@ -572,6 +582,11 @@ "description": "Label for 'disableAddingRemovingRows' builder field", "originalDefault": "Disable adding or removing groups" }, + "N2dWW9": { + "defaultMessage": "Mogelijke kaartmateriaalvormen", + "description": "Interaction configuration panel title", + "originalDefault": "Available drawing shapes" + }, "NdaqDN": { "defaultMessage": "Waarde-omschrijving ()", "description": "Label for option description location", @@ -688,6 +703,11 @@ "description": "Double column label", "originalDefault": "Double column" }, + "T64zDz": { + "defaultMessage": "Veelhoek (Polygoon)", + "description": "Label for 'interactions.polygon' builder field", + "originalDefault": "Polygon" + }, "TCNvqa": { "defaultMessage": "Minimale datum", "description": "Date field 'minDate' fixed value label", @@ -804,6 +824,11 @@ "description": "Tooltip for 'Multiple values' builder field", "originalDefault": "Are there multiple values possible for this field?" }, + "WXpj4j": { + "defaultMessage": "Gebruikers kunnen een punt aanduiden op de kaart", + "description": "Tooltip for 'interactions.marker' builder field", + "originalDefault": "Users can set a marker on the map" + }, "WZJG0y": { "defaultMessage": "In het verleden", "description": "Date constraint mode 'past' label", @@ -925,6 +950,11 @@ "description": "Label for address houseletter", "originalDefault": "House letter addition" }, + "b64egT": { + "defaultMessage": "Gebruikers kunnen een veelhoek (gesloten vorm die uit rechte lijnen bestaat) tekenen.", + "description": "Tooltip for 'interactions.polygon' builder field", + "originalDefault": "Users can draw shapes (polygons) on the map" + }, "bYBFBc": { "defaultMessage": "Geef aan of deze waarde in het bevestigscherm moet getoond worden.", "description": "Tooltip for 'showInSummary' builder field", @@ -1011,11 +1041,6 @@ "description": "Date field 'minDate' validation panel title", "originalDefault": "Minimum date {configured, select, false {(not set)} other {}}" }, - "e6SsfR": { - "defaultMessage": "Kaartinstellingen", - "description": "Map configuration panel title", - "originalDefault": "Map configuration" - }, "eAmrdi": { "defaultMessage": "Aan het laden...", "description": "Loading content text", @@ -1260,6 +1285,11 @@ "description": "Tooltip for 'operator' in relative delta date constraint validation", "originalDefault": "Specify whether to add or subtract a time delta to/from the variable." }, + "mRmbnJ": { + "defaultMessage": "Lijn", + "description": "Label for 'interactions.polyline' builder field", + "originalDefault": "Line" + }, "mWuCXv": { "defaultMessage": "Je kan een extra omschrijving opnemen om een keuzeoptie te verduidelijken.", "description": "Tooltip for option/choice description", @@ -1357,6 +1387,11 @@ "description": "Label for 'NumberOfRows' builder field", "originalDefault": "Number of rows" }, + "pM92DZ": { + "defaultMessage": "Gebruikers kunnen rechte lijnen tekenen op de kaart.", + "description": "Tooltip for 'interactions.polyline' builder field", + "originalDefault": "Users can draw straight lines on the map" + }, "pT5jx/": { "defaultMessage": "Kolombreedte op mobiel, de waarde moet tussen 1 en 4 liggen.", "description": "Accessible label for column mobile size", @@ -1484,6 +1519,11 @@ "description": "Tooltip for 'prefill.attribute' builder field", "originalDefault": "Specify the attribute holding the pre-fill data." }, + "wJ7Yha": { + "defaultMessage": "Kaartmateriaal instellingen", + "description": "Component edit form tab title for 'Map settings' tab", + "originalDefault": "Map settings" + }, "wOq8Pb": { "defaultMessage": "Vertaling voor het label van de optie met waarde \"{value}\"", "description": "Accessible label for option label translation field", diff --git a/src/registry/map/interaction-configuration.tsx b/src/registry/map/interaction-configuration.tsx index 437b3b18..f05cdc2b 100644 --- a/src/registry/map/interaction-configuration.tsx +++ b/src/registry/map/interaction-configuration.tsx @@ -6,7 +6,7 @@ const PolygonInteraction: React.FC = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ description: "Tooltip for 'interactions.polygon' builder field", - defaultMessage: 'Allowing users to draw a polygon when using the map component', + defaultMessage: 'Users can draw shapes (polygons) on the map', }); return ( { label={ } tooltip={tooltip} @@ -26,7 +26,7 @@ const PolylineInteraction: React.FC = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ description: "Tooltip for 'interactions.polyline' builder field", - defaultMessage: 'Allowing users to draw a line when using the map component', + defaultMessage: 'Users can draw straight lines on the map', }); return ( { label={ } tooltip={tooltip} @@ -46,7 +46,7 @@ const MarkerInteraction: React.FC = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ description: "Tooltip for 'interactions.marker' builder field", - defaultMessage: 'Allowing users to set a marker when using the map component', + defaultMessage: 'Users can set a marker on the map', }); return ( { label={ } tooltip={tooltip} @@ -67,7 +67,7 @@ const InteractionConfiguration: React.FC = () => ( title={ } > diff --git a/src/registry/map/map-configuration.stories.ts b/src/registry/map/map-configuration.stories.ts index 666e7b01..d1eac19a 100644 --- a/src/registry/map/map-configuration.stories.ts +++ b/src/registry/map/map-configuration.stories.ts @@ -52,7 +52,7 @@ export const NotUsingGlobalConfig: Story = { }); await step('Open configuration panel', async () => { - const panelTitle = await canvas.findByText('Map configuration'); + const panelTitle = await canvas.findByText('Initial focus'); await waitFor(async () => { expect(panelTitle).toBeVisible(); }); @@ -89,7 +89,7 @@ export const UsingGlobalConfig: Story = { }); await step('Toggle checkbox to enable global configuration', async () => { - const panelTitle = await canvas.findByText('Map configuration'); + const panelTitle = await canvas.findByText('Initial focus'); await waitFor(async () => { expect(panelTitle).toBeVisible(); }); diff --git a/src/registry/map/map-configuration.tsx b/src/registry/map/map-configuration.tsx index 9db9f2c8..b55ef190 100644 --- a/src/registry/map/map-configuration.tsx +++ b/src/registry/map/map-configuration.tsx @@ -85,7 +85,7 @@ const MapConfiguration: React.FC = () => ( title={ } collapsible