From be15c5183bb844514f1cf54d5eec56df1fa1ac6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sat, 14 Sep 2024 19:15:48 +0200
Subject: [PATCH] Etymology: new category

---
 culture_religion.json |  3 +++
 etymology.yaml        | 23 +++++++++++++++++++++++
 lang/en.json          |  3 ++-
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 etymology.yaml

diff --git a/culture_religion.json b/culture_religion.json
index db98ecd..632d718 100644
--- a/culture_religion.json
+++ b/culture_religion.json
@@ -44,6 +44,9 @@
         },
         {
             "id": "tourism_attractions"
+        },
+        {
+            "id": "etymology"
         }
     ]
 }
diff --git a/etymology.yaml b/etymology.yaml
new file mode 100644
index 0000000..1b14f56
--- /dev/null
+++ b/etymology.yaml
@@ -0,0 +1,23 @@
+name:
+  en: Etymology
+query: |
+  (
+  nwr["name:etymology"];
+  nwr["name:etymology:wikidata"];
+  )
+feature:
+  description: |
+    {% set value = null %}
+    {% for tag in ['highway', 'railway', 'amenity', 'leisure', 'shop', 'man_made', 'landuse', 'natural', 'waterway', 'place', 'route', 'aeroway', 'aerialway', 'craft', 'office', 'military', 'building', 'barrier','geological','historic', 'power', 'tourism', 'boundary'] %}
+      {% if not value and tags[tag] %}
+        {% set value = attribute(tags, tag) %}
+        {% if value in ['yes'] %}
+          {{ keyTrans(tag) }}
+        {% else %}
+          {{ tagTransList(tag, value) }}
+        {% endif %}
+      {% endif %}
+    {% endfor %}
+
+  details: |
+    {{ attribute(tags, "name:etymology")|enumerate }}
diff --git a/lang/en.json b/lang/en.json
index 07f7664..366c9b6 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -103,5 +103,6 @@
     "category:gastro": "Gastronomy",
     "category:health": "Health",
     "category:heritage": "Heritage Protection",
-    "category:hiking_routes": "Hiking routes"
+    "category:hiking_routes": "Hiking routes",
+    "category:etymology": "Etymology"
 }