Browse Source

make pitchnames translatable

make pitchnames translatable in weblate,
eg for a tennis court define "tag:leisure pitch sport=tennis"
leisure-restruct
Hufkratzer 5 years ago
parent
commit
f77139726d
  1. 8
      leisure.json

8
leisure.json

@ -28,9 +28,17 @@
},
"feature": {
"description": [
"{% if tags.leisure == 'pitch' and tags.sport %}",
" {% set pitchName = tagTrans('leisure', 'pitch sport=' ~ tags.sport) %}",
"{% endif %}",
"",
"{% if pitchName and pitchName != tags.sport %}",
" {{ pitchName }} ",
"{% else %}",
" {{ tagTrans('leisure', tags.leisure) }}",
" {% if tags.leisure == 'pitch' and tags.sport %}",
" - {{ tagTransList('sport', tags.sport) }}",
" {% endif %}",
"{% endif %}"
]
}

Loading…
Cancel
Save