Skip to content

Commit

Permalink
feat:c2corg#3936 switch public transportation filter to a slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayor committed May 6, 2024
1 parent 3d9325a commit df52ce7
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/js/constants/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,12 @@
"previous_injuries": ["no", "previous_injuries_2"],
"product_types": ["farm_sale", "restaurant", "grocery", "bar", "sport_shop"],
"public_transportation_ratings": [
"good service",
"seasonal service",
"poor service",
"no service",
"unknown service",
"nearby service",
"no service"
"poor service",
"seasonal service",
"good service"
],
"public_transportation_types": ["train", "bus", "service_on_demand", "boat"],
"qualification": ["federal_supervisor", "federal_trainer", "professional_diploma"],
Expand Down
3 changes: 2 additions & 1 deletion src/js/constants/fieldsProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@
"default": false
},
"public_transportation_rating": {
"values": "public_transportation_ratings"
"values": "public_transportation_ratings",
"queryMode": "valuesRangeSlider"
},
"public_transportation_types": {
"values": "public_transportation_types",
Expand Down
3 changes: 3 additions & 0 deletions src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,9 @@
"unknown": {
"tracking": "Unbekannt"
},
"unknown service": {
"public_transportation_ratings": "Unbekannt Verkehr"
},
"unsufficient-scopes": {
"tracking": "Unzureichende Berechtigungen"
},
Expand Down
6 changes: 6 additions & 0 deletions src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,12 @@
"traverse": {
"route_types": "cruce"
},
"unknown": {
"tracking": "desconocido"
},
"unknown service": {
"public_transportation_ratings": "servicio desconocido"
},
"users": "usuarios",
"very_dangerous": {
"children_proof_types": "peligroso"
Expand Down
6 changes: 6 additions & 0 deletions src/translations/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,12 @@
"traverse": {
"route_types": "trabesia"
},
"unknown": {
"tracking": "ezezaguna"
},
"unknown service": {
"public_transportation_ratings": "zerbitzu ezezaguna"
},
"url": "URL",
"vertical": {
"climbing_styles": "bertikala"
Expand Down
9 changes: 5 additions & 4 deletions src/translations/fixed_strings_common_js.vue
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,12 @@
<span v-translate translate-context="product_types">bar</span>
<span v-translate translate-context="product_types">sport_shop</span>
<!-- public_transportation_ratings -->
<span v-translate translate-context="public_transportation_ratings">good service</span>
<span v-translate translate-context="public_transportation_ratings">seasonal service</span>
<span v-translate translate-context="public_transportation_ratings">poor service</span>
<span v-translate translate-context="public_transportation_ratings">nearby service</span>
<span v-translate translate-context="public_transportation_ratings">no service</span>
<span v-translate translate-context="public_transportation_ratings">unknown</span>
<span v-translate translate-context="public_transportation_ratings">nearby service</span>
<span v-translate translate-context="public_transportation_ratings">poor service</span>
<span v-translate translate-context="public_transportation_ratings">seasonal service</span>
<span v-translate translate-context="public_transportation_ratings">good service</span>
<!-- public_transportation_types -->
<span v-translate translate-context="public_transportation_types">train</span>
<span v-translate translate-context="public_transportation_types">bus</span>
Expand Down
3 changes: 3 additions & 0 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,9 @@
"unknown": {
"tracking": "Inconnu"
},
"unknown service": {
"public_transportation_ratings": "service inconnu"
},
"unsufficient-scopes": {
"tracking": "Autorisations insuffisantes"
},
Expand Down
6 changes: 6 additions & 0 deletions src/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,12 @@
"traverse": {
"route_types": "áthalad"
},
"unknown": {
"tracking": "ismeretlen"
},
"unknown service": {
"public_transportation_ratings": "ismeretlen szolgáltatás"
},
"users": "felhasználók",
"vertical": {
"climbing_styles": "függőleges"
Expand Down
5 changes: 4 additions & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,10 @@
"route_types": "traversata"
},
"unknown": {
"tracking": "Sconosciuto"
"tracking": "sconosciuto"
},
"unknown service": {
"public_transportation_ratings": "servizio sconosciuto"
},
"unsufficient-scopes": {
"tracking": "Autorizzazioni insufficienti"
Expand Down
5 changes: 4 additions & 1 deletion src/translations/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,10 @@
"route_types": "prečenje"
},
"unknown": {
"tracking": "Neznano"
"tracking": "neznano"
},
"unknown service": {
"public_transportation_ratings": "neznana storitev"
},
"unsufficient-scopes": {
"tracking": "Nezadostna dovoljenja"
Expand Down
3 changes: 3 additions & 0 deletions src/translations/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,9 @@
"unknown": {
"tracking": "未知"
},
"unknown service": {
"public_transportation_ratings": "未知服务"
},
"unsufficient-scopes": {
"tracking": "范围不足"
},
Expand Down

0 comments on commit df52ce7

Please sign in to comment.