mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
feat(tours): a hike can be marked as a winter hike or a snowshoe hike
HIK-01. The details of the hiking planner gain an optional Winter activity switch, off by default, so the normal hiking flow asks for nothing more. Switched on, the hike is a winter hike or a snowshoe hike; the choice stays dimmed and out of reach while the switch is off. The label is saved with the tour, comes back when it is opened, survives a draft reload, a copy and a take-over, and switching it off takes only the label away: the route, its grade and the days stay as they were. The label is a label only. Routing, the walking time and the 3D terrain view work as for any hike, and the info dot and the head pill's tooltip say that nothing was checked for snow, avalanches or whether a path can be walked in winter. The saved label shows as a frosted snowflake on the corner of the tour's tile in the tour list and the day plan, and as a pill beside the type in the tour's detail. The server keeps it in tours.winter_activity (CHECK list, NULL for every tour saved before and for every other type), refuses it on a bike tour, a city walk and a paddle tour, and keeps the stored label when an older client saves a hike without the field. A snowshoe hike exports to GPX as snowshoeing. list_tours names the field, with the same words on what it does not say.
This commit is contained in:
@@ -404,6 +404,15 @@ const tours: TranslationStrings = {
|
||||
'tours.planner.tourTypeHint.hike': 'A piedi, entro una difficoltà che scegli tu',
|
||||
'tours.planner.tourTypeHint.bike': 'In bici, percorso per cicloturismo, strada, gravel o MTB',
|
||||
'tours.planner.tourTypeHint.kayak': 'In acqua, in kayak, canoa o SUP',
|
||||
'tours.winter.title': 'Attività invernale',
|
||||
'tours.winter.infoLabel': 'Cosa fa il contrassegno invernale',
|
||||
'tours.winter.info':
|
||||
'Solo un contrassegno dell’escursione. Percorso, colori di pendenza e tempo di cammino restano quelli di ogni escursione e non dicono nulla su neve, valanghe o percorribilità di un sentiero in inverno.',
|
||||
'tours.winter.kind': 'Tipo di attività invernale',
|
||||
'tours.winter.activity.winter_hike': 'Escursione invernale',
|
||||
'tours.winter.activity.snowshoe': 'Ciaspolata',
|
||||
'tours.winter.labelOnly':
|
||||
'Contrassegnato dai viaggiatori. Percorso e tempi sono pianificati come per ogni escursione, non verificati per l’inverno.',
|
||||
'tours.bike.profile': 'Profilo',
|
||||
'tours.bike.profile.touring': 'Turismo',
|
||||
'tours.bike.profile.road': 'Strada',
|
||||
|
||||
Reference in New Issue
Block a user