Skip to content

Commit

Permalink
🌐 [open-formulieren/open-forms#2177] Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Jan 8, 2025
1 parent 061c589 commit d27c01b
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 18 deletions.
50 changes: 45 additions & 5 deletions i18n/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 (<option></option>)",
"description": "Label for option description location",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
50 changes: 45 additions & 5 deletions i18n/messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 (<option></option>)",
"description": "Label for option description location",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions src/registry/map/interaction-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ 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 (
<Checkbox
name="interactions.polygon"
label={
<FormattedMessage
description="Label for 'interactions.polygon' builder field"
defaultMessage="Polygon interactions"
defaultMessage="Polygon"
/>
}
tooltip={tooltip}
Expand All @@ -26,15 +26,15 @@ 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 (
<Checkbox
name="interactions.polyline"
label={
<FormattedMessage
description="Label for 'interactions.polyline' builder field"
defaultMessage="Line interactions"
defaultMessage="Line"
/>
}
tooltip={tooltip}
Expand All @@ -46,15 +46,15 @@ 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 (
<Checkbox
name="interactions.marker"
label={
<FormattedMessage
description="Label for 'interactions.marker' builder field"
defaultMessage="Marker interactions"
defaultMessage="Marker"
/>
}
tooltip={tooltip}
Expand All @@ -67,7 +67,7 @@ const InteractionConfiguration: React.FC = () => (
title={
<FormattedMessage
description="Interaction configuration panel title"
defaultMessage="Available map interactions"
defaultMessage="Available drawing shapes"
/>
}
>
Expand Down
2 changes: 1 addition & 1 deletion src/registry/map/map-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const MapConfiguration: React.FC = () => (
title={
<FormattedMessage
description="Map configuration panel title"
defaultMessage="Map configuration"
defaultMessage="Initial focus"
/>
}
collapsible
Expand Down

0 comments on commit d27c01b

Please sign in to comment.