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"