reduce duplicate translatable strings, closes #686

This commit is contained in:
Martin Raifer 2022-12-12 11:39:46 +01:00
parent b90959d2d8
commit 31774890d2
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD
26 changed files with 49 additions and 107 deletions

View file

@ -4,5 +4,5 @@
"geometry": [
"area"
],
"label": "Building"
"label": "{building}"
}

View file

@ -5,5 +5,5 @@
"geometry": [
"area"
],
"label": "Building"
"label": "{building}"
}

View file

@ -1,7 +1,7 @@
{
"key": "covered",
"type": "check",
"label": "Covered",
"label": "{covered}",
"strings": {
"options": {
"undefined": "Assumed to be No",

View file

@ -1,7 +1,7 @@
{
"key": "destination:ref",
"type": "semiCombo",
"label": "Destination Road Numbers",
"label": "{destination/ref}",
"prerequisiteTag": {
"key": "oneway",
"value": "yes"

View file

@ -1,7 +1,7 @@
{
"key": "destination:symbol",
"type": "semiCombo",
"label": "Destination Symbols",
"label": "{destination/symbol}",
"prerequisiteTag": {
"key": "oneway",
"value": "yes"

View file

@ -1,7 +1,7 @@
{
"key": "destination",
"type": "semiCombo",
"label": "Destinations",
"label": "{destination}",
"prerequisiteTag": {
"key": "oneway",
"value": "yes"

View file

@ -1,7 +1,7 @@
{
"key": "direction",
"type": "number",
"label": "Direction (Degrees Clockwise)",
"label": "{direction}",
"placeholder": "45, 90, 180, 270",
"increment": 5,
"geometry": [

View file

@ -1,13 +1,12 @@
{
"key": "direction",
"type": "combo",
"label": "Direction Affected",
"strings": {
"options": {
"forward": "Forward",
"backward": "Backward"
}
},
"label": "{direction_vertex}",
"stringsCrossReference": "{direction_vertex}",
"options": [
"forward",
"backward"
],
"autoSuggestions": false,
"customValues": false
}

View file

@ -1,7 +1,7 @@
{
"key": "ele",
"type": "number",
"label": "Elevation (Meters)",
"label": "{ele}",
"universal": true,
"geometry": [
"point",

View file

@ -1,7 +1,7 @@
{
"key": "frequency",
"type": "combo",
"label": "Operating Frequency",
"label": "{frequency}",
"prerequisiteTag": {
"key": "electrified",
"valueNot": "no"

View file

@ -1,7 +1,7 @@
{
"key": "incline",
"type": "combo",
"label": "Incline",
"label": "{incline}",
"strings": {
"options": {
"up": "Up",

View file

@ -1,6 +1,6 @@
{
"key": "intermittent",
"type": "check",
"label": "Intermittent",
"label": "{intermittent}",
"default": "yes"
}

View file

@ -1,15 +1,14 @@
{
"key": "leaf_cycle",
"type": "combo",
"label": "Leaf Cycle",
"strings": {
"options": {
"evergreen": "Evergreen",
"deciduous": "Deciduous",
"semi_evergreen": "Semi-Evergreen",
"semi_deciduous": "Semi-Deciduous"
}
},
"label": "{leaf_cycle}",
"stringsCrossReference": "{leaf_cycle}",
"options": [
"evergreen",
"deciduous",
"semi_evergreen",
"semi_deciduous"
],
"autoSuggestions": false,
"customValues": false
}

View file

@ -2,13 +2,12 @@
"key": "leaf_type",
"type": "combo",
"label": "Leaf Type",
"strings": {
"options": {
"broadleaved": "Broadleaved",
"needleleaved": "Needleleaved",
"leafless": "Leafless"
}
},
"stringsCrossReference": "{leaf_type}",
"options": [
"broadleaved",
"needleleaved",
"leafless"
],
"autoSuggestions": false,
"customValues": false
}

View file

@ -1,7 +1,7 @@
{
"key": "location",
"type": "combo",
"label": "Location",
"label": "{location}",
"strings": {
"options": {
"outdoor": "Outdoor",

View file

@ -1,7 +1,7 @@
{
"key": "maxweight",
"type": "combo",
"label": "Max Weight",
"label": "{maxweight}",
"snake_case": false,
"prerequisiteTag": {
"key": "bridge",

View file

@ -1,7 +1,7 @@
{
"key": "oneway",
"type": "onewayCheck",
"label": "One Way",
"label": "{oneway}",
"strings": {
"options": {
"undefined": "Assumed to be Yes",

View file

@ -2,10 +2,12 @@
"key": "parking",
"type": "combo",
"label": "Type",
"strings": {
"options": {
"underground": "Underground",
"multi-storey": "Multilevel"
}
}
"stringsCrossReference": "{parking}",
"options": [
"underground",
"multi-storey",
"surface"
],
"autoSuggestions": false,
"customValues": true
}

View file

@ -1,7 +1,7 @@
{
"key": "piste:difficulty",
"type": "combo",
"label": "Difficulty",
"label": "{piste/difficulty}",
"placeholder": "Easy, Intermediate, Advanced...",
"strings": {
"options": {

View file

@ -1,7 +1,7 @@
{
"key": "piste:difficulty",
"type": "combo",
"label": "Difficulty",
"label": "{piste/difficulty}",
"placeholder": "Easy, Intermediate, Advanced...",
"strings": {
"options": {

View file

@ -1,7 +1,7 @@
{
"key": "piste:difficulty",
"type": "combo",
"label": "Difficulty",
"label": "{piste/difficulty}",
"placeholder": "Easy, Intermediate, Advanced...",
"strings": {
"options": {

View file

@ -1,7 +1,7 @@
{
"key": "piste:grooming",
"type": "combo",
"label": "Grooming",
"label": "{piste/grooming}",
"strings": {
"options": {
"classic": "Classic",

View file

@ -1,7 +1,7 @@
{
"key": "piste:grooming",
"type": "combo",
"label": "Grooming",
"label": "{piste/grooming}",
"strings": {
"options": {
"classic": "Classic - Winter Hiking",

View file

@ -1,7 +1,7 @@
{
"key": "piste:grooming",
"type": "combo",
"label": "Grooming",
"label": "{piste/grooming}",
"strings": {
"options": {
"classic": "Classic",

View file

@ -1,7 +1,7 @@
{
"key": "voltage",
"type": "combo",
"label": "Voltage",
"label": "{voltage}",
"prerequisiteTag": {
"key": "electrified",
"valueNot": "no"

View file

@ -462,11 +462,8 @@ en:
terms: '[translate with synonyms or related terms for ''Prefabricated'', separated by commas]'
building_area:
# building=*
label: Building
terms: '[translate with synonyms or related terms for ''Building'', separated by commas]'
building_area_yes:
# building=*
label: Building
bunker_type:
# bunker_type=*
label: Type
@ -677,7 +674,6 @@ en:
terms: '[translate with synonyms or related terms for ''Covered'', separated by commas]'
covered_no:
# covered=*
label: Covered
options:
# covered=no
'no': 'No'
@ -685,7 +681,6 @@ en:
undefined: Assumed to be No
# covered=yes
'yes': 'Yes'
terms: '[translate with synonyms or related terms for ''Covered'', separated by commas]'
craft:
# craft=*
label: Type
@ -1037,17 +1032,13 @@ en:
label: Destination Road Numbers
destination/ref_oneway:
# destination:ref=*
label: Destination Road Numbers
destination/symbol:
# destination:symbol=*
label: Destination Symbols
destination/symbol_oneway:
# destination:symbol=*
label: Destination Symbols
terms: '[translate with synonyms or related terms for ''Destination Symbols'', separated by commas]'
destination_oneway:
# destination=*
label: Destinations
destination_waterway:
# destination=*
label: Destination
@ -1123,7 +1114,6 @@ en:
clockwise: Clockwise
direction_point:
# direction=*
label: Direction (Degrees Clockwise)
# direction_point field placeholder
placeholder: 45, 90, 180, 270
direction_vertex:
@ -1139,12 +1129,6 @@ en:
terms: '[translate with synonyms or related terms for ''Direction Affected'', separated by commas]'
direction_vertex_dual:
# direction=*
label: Direction Affected
options:
# direction=backward
backward: Backward
# direction=forward
forward: Forward
dispensing:
# dispensing=*
label: Dispenses Prescriptions
@ -1225,9 +1209,7 @@ en:
terms: '[translate with synonyms or related terms for ''Elevation (Meters)'', separated by commas]'
ele_node:
# ele=*
label: Elevation (Meters)
# 'terms: altitude,height'
terms: '[translate with synonyms or related terms for ''Elevation (Meters)'', separated by commas]'
electrified:
# electrified=*
label: Electrification
@ -1444,8 +1426,6 @@ en:
terms: '[translate with synonyms or related terms for ''Operating Frequency'', separated by commas]'
frequency_electrified:
# frequency=*
label: Operating Frequency
terms: '[translate with synonyms or related terms for ''Operating Frequency'', separated by commas]'
from:
# from=*
label: From
@ -1959,7 +1939,6 @@ en:
terms: '[translate with synonyms or related terms for ''Incline'', separated by commas]'
incline_steps:
# incline=*
label: Incline
options:
# incline=down
down: Down
@ -1992,7 +1971,6 @@ en:
terms: '[translate with synonyms or related terms for ''Intermittent'', separated by commas]'
intermittent_yes:
# intermittent=*
label: Intermittent
internet_access:
# internet_access=*
label: Internet Connection
@ -2107,17 +2085,6 @@ en:
terms: '[translate with synonyms or related terms for ''Leaf Cycle'', separated by commas]'
leaf_cycle_singular:
# leaf_cycle=*
label: Leaf Cycle
options:
# leaf_cycle=deciduous
deciduous: Deciduous
# leaf_cycle=evergreen
evergreen: Evergreen
# leaf_cycle=semi_deciduous
semi_deciduous: Semi-Deciduous
# leaf_cycle=semi_evergreen
semi_evergreen: Semi-Evergreen
terms: '[translate with synonyms or related terms for ''Leaf Cycle'', separated by commas]'
leaf_type:
# leaf_type=*
label: Leaf Type
@ -2134,13 +2101,6 @@ en:
leaf_type_singular:
# leaf_type=*
label: Leaf Type
options:
# leaf_type=broadleaved
broadleaved: Broadleaved
# leaf_type=leafless
leafless: Leafless
# leaf_type=needleleaved
needleleaved: Needleleaved
terms: '[translate with synonyms or related terms for ''Leaf Type'', separated by commas]'
leisure:
# leisure=*
@ -2189,7 +2149,6 @@ en:
terms: '[translate with synonyms or related terms for ''Location'', separated by commas]'
location_pool:
# location=*
label: Location
options:
# location=indoor
indoor: Indoor
@ -2275,8 +2234,6 @@ en:
terms: '[translate with synonyms or related terms for ''Max Weight'', separated by commas]'
maxweight_bridge:
# maxweight=*
label: Max Weight
terms: '[translate with synonyms or related terms for ''Max Weight'', separated by commas]'
maxwidth:
# maxwidth=*
label: Max Width
@ -2475,7 +2432,6 @@ en:
terms: '[translate with synonyms or related terms for ''One Way (Bicycles)'', separated by commas]'
oneway_yes:
# oneway=*
label: One Way
options:
# oneway=alternating
alternating: Alternating
@ -2589,11 +2545,6 @@ en:
parking_entrance:
# parking=*
label: Type
options:
# parking=multi-storey
multi-storey: Multilevel
# parking=underground
underground: Underground
parking_space:
# parking_space=*
label: Type
@ -2721,7 +2672,6 @@ en:
placeholder: Easy, Intermediate, Advanced...
piste/difficulty_downhill:
# piste:difficulty=*
label: Difficulty
options:
# piste:difficulty=advanced
advanced: Advanced (black diamond)
@ -2741,7 +2691,6 @@ en:
placeholder: Easy, Intermediate, Advanced...
piste/difficulty_nordic:
# piste:difficulty=*
label: Difficulty
options:
# piste:difficulty=advanced
advanced: Advanced - Narrow, steep or icy section, sharp turn
@ -2757,7 +2706,6 @@ en:
placeholder: Easy, Intermediate, Advanced...
piste/difficulty_skitour:
# piste:difficulty=*
label: Difficulty
options:
# piste:difficulty=advanced
advanced: 'Advanced - S: 40-45° incline'
@ -2793,7 +2741,6 @@ en:
skating: Skating
piste/grooming_downhill:
# piste:grooming=*
label: Grooming
options:
# piste:grooming=backcountry
backcountry: Backcountry - no grooming
@ -2803,7 +2750,6 @@ en:
mogul: Mogul
piste/grooming_hike:
# piste:grooming=*
label: Grooming
options:
# piste:grooming=backcountry
backcountry: Backcountry - Snowshoeing
@ -2811,7 +2757,6 @@ en:
classic: Classic - Winter Hiking
piste/grooming_nordic:
# piste:grooming=*
label: Grooming
options:
# piste:grooming=backcountry
backcountry: Backcountry, no grooming
@ -4257,8 +4202,6 @@ en:
terms: '[translate with synonyms or related terms for ''Tertiary Voltage'', separated by commas]'
voltage_electrified:
# voltage=*
label: Voltage
terms: '[translate with synonyms or related terms for ''Voltage'', separated by commas]'
wall:
# wall=*
label: Type