mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +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:
@@ -516,12 +516,29 @@ const tours: TranslationStrings = {
|
||||
'tours.walk.themeReason': '{theme} のおすすめ',
|
||||
'tours.walk.arrival': '到着 {time} ごろ',
|
||||
'tours.walk.arrivalAtLeast': '到着は早くても {time}',
|
||||
'tours.walk.hours.closed': '営業時間では {arrival} は閉まっています',
|
||||
'tours.walk.hours.closes': '{arrival} 到着、{leave} まで滞在予定ですが {closes} に閉まります',
|
||||
'tours.walk.hours.closed': '{name} は {arrival} に閉まっています(滞在は {leave} まで)。営業 {window}',
|
||||
'tours.walk.hours.closes': '{name} は {closes} に閉まります。{arrival} から {leave} の滞在中です(営業 {window})',
|
||||
'tours.walk.hours.unread': '営業時間はここでは読み取れません:{text}',
|
||||
'tours.walk.hours.source':
|
||||
'OpenStreetMap の営業時間を推定到着時刻と照合しています。出かける前に確認してください。営業時間のない立ち寄り先は「不明」で、営業中とはみなしません。',
|
||||
'OpenStreetMap または自分で入力した場所の営業時間を、計画の現地時刻での推定到着時刻と照合しています。出かける前に確認してください。営業時間のない立ち寄り先は「不明」で、営業中とはみなしません。',
|
||||
'tours.walk.hours.noStart': 'この日の開始時刻を設定すると、到着時刻と営業時間が表示されます。',
|
||||
'tours.walk.day.label': '時刻の基準日',
|
||||
'tours.walk.day.start': '{day}、開始 {time}',
|
||||
'tours.walk.day.noStart': '{day}、開始時刻なし',
|
||||
'tours.walk.hours.noDate': 'この日には日付がないため、到着時刻と営業時間は表示されません。',
|
||||
'tours.walk.hours.noDay': '到着時刻と営業時間を見るには、開始時刻のある日に街歩きを入れてください。',
|
||||
'tours.walk.hours.closedNoStay': '{name} は {arrival} に閉まっています。営業 {window}',
|
||||
'tours.walk.hours.closedAllDay': '{name} はこの日、終日休業です',
|
||||
'tours.walk.hours.open': '営業 {window}',
|
||||
'tours.walk.hours.window': '{from}~{to}',
|
||||
'tours.walk.hours.uncertain': '営業時間は未確認です:前の立ち寄り先の滞在時間がまだ入力されていません。',
|
||||
'tours.walk.arrivalNextDay': '翌日の {time} ごろ到着。日付をまたぐ営業時間は確認しません。',
|
||||
'tours.walk.arrivalStay': '到着 {arrival} ごろ、{leave} まで滞在',
|
||||
'tours.walk.arrivalStayAtLeast': '到着は早くても {arrival}、滞在は {leave} 以降まで',
|
||||
'tours.walk.hours.sourceOsm': 'OpenStreetMap',
|
||||
'tours.walk.hours.sourcePlace': '旅行の場所',
|
||||
'tours.walk.hours.sourceOsmHint': '立ち寄り先と一緒に OpenStreetMap から取得。古い可能性があります。',
|
||||
'tours.walk.hours.sourcePlaceHint': 'この旅行の場所に入力されたものです。',
|
||||
'tours.poi.categoriesNone': 'カテゴリー未選択',
|
||||
'tours.poi.categoriesMore': '{first} +{more}',
|
||||
'tours.planner.tourType': 'ツアーの種類',
|
||||
|
||||
Reference in New Issue
Block a user