Skip to content

Commit 5c0eeb6

Browse files
fix: mapping from waytypes to waytype
- change translations to singular as well see GIScience/openrouteservice#1579
1 parent 550f8bd commit 5c0eeb6

File tree

17 files changed

+22
-22
lines changed

17 files changed

+22
-22
lines changed

cypress/fixtures/build-map-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const buildMapData = {
302302
}
303303
]
304304
},
305-
'waytypes': {
305+
'waytype': {
306306
'values': [
307307
[
308308
0,

cypress/fixtures/map-view-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ let routes = [
25022502
}
25032503
]
25042504
},
2505-
'waytypes': {
2505+
'waytype': {
25062506
'values': [
25072507
[
25082508
0,
@@ -4394,7 +4394,7 @@ let rawData = {
43944394
}
43954395
]
43964396
},
4397-
'waytypes': {
4397+
'waytype': {
43984398
'values': [
43994399
[
44004400
0,

cypress/fixtures/ors-route.geojson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
}
184184
]
185185
},
186-
"waytypes": {
186+
"waytype": {
187187
"values": [
188188
[0, 727, 1],
189189
[727, 728, 2],

cypress/fixtures/ors-route.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@
10121012
}
10131013
]
10141014
},
1015-
"waytypes": {
1015+
"waytype": {
10161016
"values": [
10171017
[0, 3, 7],
10181018
[3, 14, 3],
@@ -2966,7 +2966,7 @@
29662966
}
29672967
]
29682968
},
2969-
"waytypes": {
2969+
"waytype": {
29702970
"values": [
29712971
[0, 5, 7],
29722972
[5, 18, 3],
@@ -4845,7 +4845,7 @@
48454845
}
48464846
]
48474847
},
4848-
"waytypes": {
4848+
"waytype": {
48494849
"values": [
48504850
[0, 3, 7],
48514851
[3, 14, 3],
@@ -6798,7 +6798,7 @@
67986798
}
67996799
]
68006800
},
6801-
"waytypes": {
6801+
"waytype": {
68026802
"values": [
68036803
[0, 5, 7],
68046804
[5, 18, 3],

docs/en-translation-source-merged.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"steepness": "Steepness",
9797
"surface": "Surface",
9898
"roadaccessrestrictions": "Road access restrictions",
99-
"waytypes": "Way types",
99+
"waytype": "Way type",
100100
"suitability": "Suitability",
101101
"waycategory": "Way category",
102102
"tollways": "Tollways",

src/fragments/forms/settings/Settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<v-checkbox class="pt-0 top-0" v-model="mapSettingsTransient.surface"
5757
:label="$t('global.surface')"></v-checkbox>
5858
<v-checkbox class="pt-0 top-0" v-model="mapSettingsTransient.waytype"
59-
:label="$t('global.waytypes')"></v-checkbox>
59+
:label="$t('global.waytype')"></v-checkbox>
6060

6161
<v-checkbox class="pt-0 top-0" v-model="mapSettingsTransient.tollways"
6262
:label="$t('global.tollways')"></v-checkbox>

src/fragments/map-view/map-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default {
186186
focusedPlace: null, // the place that must be focused among the ones visible on the map view (for search mode)
187187
highlightedRoutePointIndex: null, // a point on the route that must be highlighted (a Leaflet latLng)
188188
isAltitudeModalOpen: false,
189-
extraInfo: null, // Extra route info (waytypes, surface, steepness etc)
189+
extraInfo: null, // Extra route info (waytype, surface, steepness etc)
190190
featuresJustFitted: false,
191191
localAvoidPolygons: null,
192192
mapDataViewChangeDebounceTimeoutId: null

src/i18n/translations/cs-cz/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
steepness: 'Strmost',
9797
surface: 'Povrch',
9898
roadaccessrestrictions: 'Omezení přístupu na silnice',
99-
waytypes: 'Typy cest',
99+
waytype: 'Typy cest',
100100
suitability: 'Vhodnost',
101101
waycategory: 'Kategorie cest',
102102
tollways: 'Mýtné brány',

src/i18n/translations/de-de/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
steepness: 'Steilheit',
9696
surface: 'Oberfläche',
9797
roadaccessrestrictions: 'Straßen Zugangsbeschränkung',
98-
waytypes: 'Weg Arten',
98+
waytype: 'Weg Art',
9999
suitability: 'Eignung',
100100
waycategory: 'Wegkategorie',
101101
tollways: 'Mautstraßen',

src/i18n/translations/en-us/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
steepness: 'Steepness',
9797
surface: 'Surface',
9898
roadaccessrestrictions: 'Road access restrictions',
99-
waytypes: 'Way types',
99+
waytype: 'Way type',
100100
suitability: 'Suitability',
101101
waycategory: 'Way category',
102102
tollways: 'Tollways',

src/i18n/translations/es-es/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
steepness: 'Inclinación',
9696
surface: 'Superfície',
9797
roadaccessrestrictions: 'Restricciones de acceso por carretera',
98-
waytypes: 'tipos de camino',
98+
waytype: 'tipo de camino',
9999
suitability: 'Adecuación',
100100
waycategory: 'Categoria de camino',
101101
tollways: 'Peajes',

src/i18n/translations/fr-fr/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
'steepness': 'Inclinaison',
9696
'surface': 'Surface',
9797
'roadaccessrestrictions': 'Restrictions d\'accès à la route',
98-
'waytypes': 'Types de voie',
98+
'waytype': 'Type de voie',
9999
'suitability': 'pertinence',
100100
'waycategory': 'Catégorie de voie',
101101
'tollways': 'Péages',

src/i18n/translations/hu-hu/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
'steepness': 'Meredekség',
9696
'surface': 'Felszín',
9797
'roadaccessrestrictions': 'Behajtási korlátozások',
98-
'waytypes': 'Úttípusok',
98+
'waytype': 'Út típusa',
9999
'suitability': 'Alkalmasság',
100100
'waycategory': 'Útkategória',
101101
'tollways': 'Fizetős utak',

src/i18n/translations/it-it/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
'steepness': 'Ripidezza',
9696
'surface': 'Superficie',
9797
'roadaccessrestrictions': 'Restrizioni d\'accesso alla strada',
98-
'waytypes': 'Tipo di percorsi',
98+
'waytype': 'Tipo di percorsi',
9999
'suitability': 'adeguatezza',
100100
'waycategory': 'Categoria di via',
101101
'tollways': 'Pedaggios',

src/i18n/translations/pt-br/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
steepness: 'Inclinação',
9696
surface: 'Superfície',
9797
roadaccessrestrictions: 'Road access restrictions',
98-
waytypes: 'tipos de caminho',
98+
waytype: 'tipo de caminho',
9999
suitability: 'Adequação',
100100
waycategory: 'Categoria do caminho',
101101
tollways: 'Pedágios',

src/i18n/translations/ro-ro/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
'noise': 'Zgomot',
9797
'steepness': 'Abrupt',
9898
'surface': 'Suprafață',
99-
'waytypes': 'Tipuri de căi',
99+
'waytype': 'Tipul de căi',
100100
'suitability': 'Adecvare',
101101
'waycategory': 'Categoria Calea',
102102
'tollways': 'Autostrăzi cu taxă',

src/resources/ors-dictionary.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const orsDictionary = {
2-
waytypes: [
2+
waytype: [
33
'unknown', // at position 0
44
'stateRoad', // at position 1
55
'road', // at position 2
@@ -107,7 +107,7 @@ const orsDictionary = {
107107
'10': '10'
108108
},
109109
colors: {
110-
waytypes: [
110+
waytype: [
111111
// 11 colors accessed by index
112112
'#AFEEEE',
113113
'#40E0D0',

0 commit comments

Comments
 (0)