From bba0a378ef923f1064567e4635ec1d1c925c8c53 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 31 Mar 2023 15:21:37 +0200 Subject: [PATCH] fix casing of field label and reuse existing parking orientation strings --- data/fields/orientation/orientation_parking.json | 13 ++++++------- data/fields/parking/side/orientation.json | 2 +- interim/source_strings.yaml | 11 ++--------- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/data/fields/orientation/orientation_parking.json b/data/fields/orientation/orientation_parking.json index 6de35ffd..d3959c61 100644 --- a/data/fields/orientation/orientation_parking.json +++ b/data/fields/orientation/orientation_parking.json @@ -2,12 +2,11 @@ "key": "orientation", "type": "combo", "label": "Orientation", - "strings": { - "options": { - "parallel": "Parallel to the Street", - "diagonal": "Diagonal in Relation to the Street", - "perpendicular": "Meets the Street at a Straight Angle" - } - }, + "options": [ + "parallel", + "diagonal", + "perpendicular" + ], + "stringsCrossReference": "{parking/side/orientation}", "autoSuggestions": false } diff --git a/data/fields/parking/side/orientation.json b/data/fields/parking/side/orientation.json index 4c9f87b1..ea83e6af 100644 --- a/data/fields/parking/side/orientation.json +++ b/data/fields/parking/side/orientation.json @@ -8,7 +8,7 @@ "key": "parking:orientation" }, "type": "directionalCombo", - "label": "Parking orientation", + "label": "Parking Orientation", "strings": { "types": { "parking:left:orientation": "Left side", diff --git a/interim/source_strings.yaml b/interim/source_strings.yaml index b556b0bc..9290433f 100644 --- a/interim/source_strings.yaml +++ b/interim/source_strings.yaml @@ -3363,13 +3363,6 @@ en: orientation/orientation_parking: # orientation=* label: Orientation - options: - # orientation=diagonal - diagonal: Diagonal in Relation to the Street - # orientation=parallel - parallel: Parallel to the Street - # orientation=perpendicular - perpendicular: Meets the Street at a Straight Angle outdoor_seating: # outdoor_seating=* label: Outdoor Seating @@ -3428,7 +3421,7 @@ en: underground: Underground parking/side/orientation: # parking:left:orientation=*, parking:right:orientation=* - label: Parking orientation + label: Parking Orientation options: # parking:both:orientation=diagonal diagonal: Diagonal in Relation to the Street (~45°) @@ -3436,7 +3429,7 @@ en: parallel: Parallel to the Street # parking:both:orientation=perpendicular perpendicular: Meets the Street at a Straight Angle (~90°) - terms: '[translate with synonyms or related terms for ''Parking orientation'', separated by commas]' + terms: '[translate with synonyms or related terms for ''Parking Orientation'', separated by commas]' types: parking:left:orientation: Left side parking:right:orientation: Right side