Browse Source

Corrected translatoin functions.

master
Nathan Hartley 2 years ago
parent
commit
3c0c3ebfb1
  1. 12
      paddling_amenities.yaml
  2. 4
      paddling_hazards.yaml

12
paddling_amenities.yaml

@ -34,8 +34,16 @@ feature:
<dl> <dl>
<dt>Surface</dt> <dt>Surface</dt>
<dd>{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}</dd> <dd>{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}</dd>
<dt>{{ localizedTag(tags, 'description') }}</dt>
<dd>{{ tags.description }}</dd>
<dt>{{ keyTrans('description') }}</dt>
<dd>{{ localizedTag(tags, 'description') }}</dd>
<dt>{{ keyKey('access') }}</dt>
<dd>{{ tagTrans('access', tags.access) }}</dd>
<dt>{{ keyTrans('fee') }}</dt>
<dd>{{ tagTrans('fee', tags.fee) }}</dd>
</dl> </dl>
{% if attribute(tags, 'mapillary') %} {% if attribute(tags, 'mapillary') %}
<div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div> <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>

4
paddling_hazards.yaml

@ -22,8 +22,8 @@ feature:
{{ tagTrans(key, value) }} {{ tagTrans(key, value) }}
body: |- body: |-
<dl> <dl>
<dt>{{ localizedTag(tags, 'description') }}</dt>
<dd>{{ tags.description }}</dd>
<dt>{{ keyTrans('description') }}</dt>
<dd>{{ localizedTag(tags, 'description') }}</dd>
</dl> </dl>
{% if attribute(tags, 'mapillary') %} {% if attribute(tags, 'mapillary') %}
<div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div> <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>

Loading…
Cancel
Save