Skip to content

Commit

Permalink
Add common *_name-tags as global fields (openstreetmap#215)
Browse files Browse the repository at this point in the history
Add `alt_name`, `loc_name`, `nat_name`, `official_name`, `reg_name`, `short_name` as global fields (which makes them `moreFields` for every preset) with the `prerequisiteTag` of `name` being present.
  • Loading branch information
1ec5 authored Jul 14, 2024
1 parent 4a3c6f6 commit a453c95
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 0 deletions.
16 changes: 16 additions & 0 deletions data/fields/alt_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"key": "alt_name",
"type": "localized",
"label": "Alternative Name",
"universal": true,
"terms": [
"aka",
"alias",
"also known as",
"nonstandard name",
"secondary name"
],
"prerequisiteTag": {
"key": "name"
}
}
15 changes: 15 additions & 0 deletions data/fields/loc_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"key": "loc_name",
"type": "localized",
"label": "Local Name",
"universal": true,
"terms": [
"colloquial name",
"common name",
"informal name",
"nickname"
],
"prerequisiteTag": {
"key": "name"
}
}
9 changes: 9 additions & 0 deletions data/fields/nat_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"key": "nat_name",
"type": "localized",
"label": "National Name",
"universal": true,
"prerequisiteTag": {
"key": "name"
}
}
14 changes: 14 additions & 0 deletions data/fields/official_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"key": "official_name",
"type": "localized",
"label": "Official Name",
"universal": true,
"terms": [
"formal name",
"full name",
"legal name"
],
"prerequisiteTag": {
"key": "name"
}
}
9 changes: 9 additions & 0 deletions data/fields/reg_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"key": "reg_name",
"type": "localized",
"label": "Regional Name",
"universal": true,
"prerequisiteTag": {
"key": "name"
}
}
14 changes: 14 additions & 0 deletions data/fields/short_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"key": "short_name",
"type": "localized",
"label": "Short Name",
"universal": true,
"terms": [
"abbreviation",
"acronym",
"initialism"
],
"prerequisiteTag": {
"key": "name"
}
}
28 changes: 28 additions & 0 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ en:
label: Air Conditioning
# 'terms: cooling system,refrigeration'
terms: '[translate with synonyms or related terms for ''Air Conditioning'', separated by commas]'
alt_name:
# alt_name=*
label: Alternative Name
# 'terms: aka,alias,also known as,nonstandard name,secondary name'
terms: '[translate with synonyms or related terms for ''Alternative Name'', separated by commas]'
amenity:
# amenity=*
label: Type
Expand Down Expand Up @@ -3150,6 +3155,11 @@ en:
label: Lit
# 'terms: lamp,lighting'
terms: '[translate with synonyms or related terms for ''Lit'', separated by commas]'
loc_name:
# loc_name=*
label: Local Name
# 'terms: colloquial name,common name,informal name,nickname'
terms: '[translate with synonyms or related terms for ''Local Name'', separated by commas]'
location:
# location=*
label: Location
Expand Down Expand Up @@ -3499,6 +3509,10 @@ en:
placeholder: Common name (if any)
# 'terms: label,title'
terms: '[translate with synonyms or related terms for ''Name'', separated by commas]'
nat_name:
# nat_name=*
label: National Name
terms: '[translate with synonyms or related terms for ''National Name'', separated by commas]'
natural:
# natural=*
label: Natural
Expand Down Expand Up @@ -3680,6 +3694,11 @@ en:
union: Labor Union Office
# office=water_utility
water_utility: Water Utility Office
official_name:
# official_name=*
label: Official Name
# 'terms: formal name,full name,legal name'
terms: '[translate with synonyms or related terms for ''Official Name'', separated by commas]'
oneway:
# oneway=*
label: One Way
Expand Down Expand Up @@ -4410,6 +4429,10 @@ en:
label: Taxiway Name
# ref_taxiway field placeholder
placeholder: e.g. A5
reg_name:
# reg_name=*
label: Regional Name
terms: '[translate with synonyms or related terms for ''Regional Name'', separated by commas]'
relation:
# type=*
label: Type
Expand Down Expand Up @@ -4862,6 +4885,11 @@ en:
shop:
# shop=*
label: Type
short_name:
# short_name=*
label: Short Name
# 'terms: abbreviation,acronym,initialism'
terms: '[translate with synonyms or related terms for ''Short Name'', separated by commas]'
shower:
# shower=*
label: Showers
Expand Down

0 comments on commit a453c95

Please sign in to comment.