mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
feat(tours): a city walk's arrivals and opening hours for the day it is on, at each stop in the planner and the detail (CW-02, CW-04)
A city walk now shows, at each stop, when the walk gets there, until when the stay lasts, and what the stop's opening hours say about that visit. The same lines appear under each stop row in the planner and under each stop in the walk's detail, in the user's 12 or 24 hour format. A conflict names the stop, the arrival, the end of the stay and the hours it was checked against, for instance "Lenbachhaus closes at 18:00, during the stay from 17:20 to 18:20 (open 10:00 to 18:00)", in the warning colour. Nothing is changed by these hints: no stop, order or route moves. The times belong to one day the walk is on. Opened from a day of the plan, the detail keeps that day, and checking stops off stays bound to it. Opened otherwise, and in the planner, a small pill above the stops names the day and its start, and the walk's other days can be picked from it; it starts on the first day with a start time. The pick is only what is looked at and is never saved, and another day never takes over the times quietly. Without a day, a date or a start time the line says what is missing and no arrival is shown. TREK keeps no time zone on a trip, so start, arrivals and opening hours are all read as the local time of the plan, and an arrival after midnight is said to be on the next day without being checked. Opening hours come from the trip place a stop stands for, as the travellers entered them, and otherwise from OpenStreetMap; a pill at each stop names the source, and a notice says the hours are a hint to check. A stop without hours stays unknown and is never shown as open, hours that are not in a plain form are shown as written, and an arrival that is only a lower bound, because a stay before it is not entered yet, is not judged unless no later arrival could escape the conflict. A trip place that a stop stands for also gives the stop its name before "Stop N". The arrival at a stop is found where the route passes it in the walk's order, so the end of a loop and a stop passed on the way out and back get the right time. The rules live once in the shared package, for the server to give the same answers. The walk's detail reads its stops again after a save, its own or a teammate's.
This commit is contained in:
@@ -522,12 +522,29 @@ const tours: TranslationStrings = {
|
||||
'tours.walk.themeReason': 'Navrženo pro {theme}',
|
||||
'tours.walk.arrival': 'Příchod kolem {time}',
|
||||
'tours.walk.arrivalAtLeast': 'Příchod nejdříve {time}',
|
||||
'tours.walk.hours.closed': 'V {arrival} podle otevírací doby zavřeno',
|
||||
'tours.walk.hours.closes': 'Příchod {arrival}, pobyt do {leave}, ale zavírá v {closes}',
|
||||
'tours.walk.hours.closed': '{name}: v {arrival} zavřeno, pobyt by trval do {leave}; otevřeno {window}',
|
||||
'tours.walk.hours.closes': '{name}: zavírá v {closes}, během pobytu od {arrival} do {leave} (otevřeno {window})',
|
||||
'tours.walk.hours.unread': 'Otevírací dobu zde nelze vyhodnotit: {text}',
|
||||
'tours.walk.hours.source':
|
||||
'Otevírací doba podle OpenStreetMap proti odhadovanému příchodu; před cestou si ji ověř. Zastávka bez časů je neznámá, ne otevřená.',
|
||||
'Otevírací doby z OpenStreetMap nebo z tvých vlastních míst, porovnané s odhadovaným příchodem v místním čase plánu; před cestou si je ověř. Zastávka bez časů je neznámá, ne otevřená.',
|
||||
'tours.walk.hours.noStart': 'Dej procházce v tento den čas, abys viděl příchody a otevírací doby.',
|
||||
'tours.walk.day.label': 'Časy pro',
|
||||
'tours.walk.day.start': '{day}, začátek {time}',
|
||||
'tours.walk.day.noStart': '{day}, bez času začátku',
|
||||
'tours.walk.hours.noDate': 'Tento den nemá datum, proto se příchody a otevírací doby nezobrazují.',
|
||||
'tours.walk.hours.noDay': 'Dej procházku na den s časem začátku, abys viděl příchody a otevírací doby.',
|
||||
'tours.walk.hours.closedNoStay': '{name}: v {arrival} zavřeno; otevřeno {window}',
|
||||
'tours.walk.hours.closedAllDay': '{name}: v tento den celý den zavřeno',
|
||||
'tours.walk.hours.open': 'Otevřeno {window}',
|
||||
'tours.walk.hours.window': 'od {from} do {to}',
|
||||
'tours.walk.hours.uncertain': 'Otevírací doba neověřena: u některé dřívější zastávky ještě chybí pobyt.',
|
||||
'tours.walk.arrivalNextDay': 'Příchod kolem {time} následující den; otevírací doba se po půlnoci neověřuje.',
|
||||
'tours.walk.arrivalStay': 'Příchod kolem {arrival}, pobyt do {leave}',
|
||||
'tours.walk.arrivalStayAtLeast': 'Příchod nejdříve {arrival}, pobyt do {leave} nebo déle',
|
||||
'tours.walk.hours.sourceOsm': 'OpenStreetMap',
|
||||
'tours.walk.hours.sourcePlace': 'Místo výletu',
|
||||
'tours.walk.hours.sourceOsmHint': 'Nalezeno se zastávkou v OpenStreetMap; může být zastaralé.',
|
||||
'tours.walk.hours.sourcePlaceHint': 'Zadáno u tohoto místa výletu.',
|
||||
'tours.poi.categoriesNone': 'Žádná kategorie',
|
||||
'tours.poi.categoriesMore': '{first} +{more}',
|
||||
'tours.planner.tourType': 'Typ túry',
|
||||
|
||||
Reference in New Issue
Block a user