mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
3238fbc517
The PDF export routed the whole trip under an 8 s deadline while the router is asked one leg at a time, a second apart. A cold month-long trip got about seven legs routed per export; the rest printed as straight lines at "0 m" under a total that looked final, and every further export routed a few more days from the device cache. The export now waits for every leg, bounded by the request pacing, the rate-limit retries and a per-leg timeout. The export dialog and the phone sheet count the legs while they route and offer to print without the rest. Any leg left without a road is marked in the document: the day reads "not routed" or "at least ...", the total says it is a floor, and a note names how many legs are missing. The planner overview shares the same wording. The PDF also routes what the planner map routes now: the road trip's vias, the multi-day tour stages and the reader's distance unit. Closes #2876
150 lines
7.6 KiB
TypeScript
150 lines
7.6 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const dayplan: TranslationStrings = {
|
|
'dayplan.icsTooltip': 'Export calendar (ICS)',
|
|
'dayplan.emptyDay': 'No places planned for this day',
|
|
'dayplan.addPlaceHere': 'Add place to this day',
|
|
'dayplan.cannotReorderTransport': 'Bookings with a fixed time cannot be reordered',
|
|
'dayplan.confirmRemoveTimeTitle': 'Remove time?',
|
|
'dayplan.confirmRemoveTimeBody':
|
|
'This place has a fixed time ({time}). Moving it will remove the time and allow free sorting.',
|
|
'dayplan.confirmRemoveTimeAction': 'Remove time & move',
|
|
'dayplan.confirmDeleteNoteTitle': 'Delete note?',
|
|
'dayplan.confirmDeleteNoteBody': 'This note will be permanently deleted.',
|
|
'dayplan.cannotDropOnTimed': 'Items cannot be placed between time-bound entries',
|
|
'dayplan.cannotBreakChronology': 'This would break the chronological order of timed items and bookings',
|
|
'dayplan.addNote': 'Add Note',
|
|
'dayplan.expandAll': 'Expand all days',
|
|
'dayplan.collapseAll': 'Collapse all days',
|
|
'dayplan.editNote': 'Edit Note',
|
|
'dayplan.noteAdd': 'Add Note',
|
|
'dayplan.noteEdit': 'Edit Note',
|
|
'dayplan.noteDelete': 'Delete Note',
|
|
'dayplan.noteTitle': 'Note',
|
|
'dayplan.noteSubtitle': 'Daily Note',
|
|
'dayplan.noteIcon': 'Icon',
|
|
'notes.appearance': 'Appearance',
|
|
'notes.preview': 'Preview',
|
|
'notes.bodyPlaceholder': 'Details, links, reminders…',
|
|
'notes.markdownHint': 'Markdown supported',
|
|
'notes.format.toolbar': 'Formatting',
|
|
'notes.format.bold': 'Bold',
|
|
'notes.format.italic': 'Italic',
|
|
'notes.format.strike': 'Strikethrough',
|
|
'notes.format.code': 'Code',
|
|
'notes.format.link': 'Link',
|
|
'notes.format.list': 'Bulleted list',
|
|
'notes.format.orderedList': 'Numbered list',
|
|
'notes.format.quote': 'Quote',
|
|
'notes.color.label': 'Colour',
|
|
'notes.color.none': 'No colour',
|
|
'notes.color.red': 'Red',
|
|
'notes.color.orange': 'Orange',
|
|
'notes.color.amber': 'Amber',
|
|
'notes.color.green': 'Green',
|
|
'notes.color.cyan': 'Cyan',
|
|
'notes.color.blue': 'Blue',
|
|
'notes.color.purple': 'Purple',
|
|
'dayplan.totalCost': 'Total Cost',
|
|
'dayplan.days': 'Days',
|
|
'dayplan.dayN': 'Day {n}',
|
|
'dayplan.calculating': 'Calculating...',
|
|
'dayplan.route': 'Route',
|
|
'dayplan.optimize': 'Optimize',
|
|
'dayplan.transportMode.change': 'Change travel mode',
|
|
'dayplan.transportMode.useDefault': 'Use day default',
|
|
'dayplan.optimized': 'Route optimized',
|
|
'dayplan.routeError': 'Failed to calculate route',
|
|
'dayplan.toast.needTwoPlaces': 'At least two places needed for route optimization',
|
|
'dayplan.toast.routeOptimized': 'Route optimized',
|
|
'dayplan.toast.routeOptimizedFromHotel': 'Route optimized from your accommodation',
|
|
'dayplan.toast.noGeoPlaces': 'No places with coordinates found for route calculation',
|
|
'dayplan.confirmed': 'Confirmed',
|
|
'dayplan.pendingRes': 'Pending',
|
|
'dayplan.export': 'Export',
|
|
'dayplan.exportIntro': 'Take your plan with you: as a document, in your calendar or on your GPS.',
|
|
'dayplan.exportDocument': 'Document',
|
|
'dayplan.exportCalendar': 'Calendar',
|
|
'dayplan.exportMaps': 'Maps & GPS',
|
|
'dayplan.pdf': 'PDF',
|
|
'dayplan.pdfTooltip': 'Export day plan as PDF',
|
|
'dayplan.pdfMine': 'My plan as PDF',
|
|
'dayplan.pdfRouting': 'Calculating routes: {done} of {total}',
|
|
'dayplan.pdfSkipRouting': 'Export without the remaining routes',
|
|
'dayplan.pdfMineSub': 'Only the activities and bookings you take part in',
|
|
'dayplan.gpxTooltip': 'Export as GPX for offline maps and GPS devices',
|
|
'dayplan.gpxAll': 'Whole trip',
|
|
'dayplan.gpxPlaces': 'Places only',
|
|
'dayplan.gpxDays': 'Days as routes',
|
|
'dayplan.gpxEmpty': 'There is nothing to export yet',
|
|
'dayplan.gpxFailed': 'GPX export failed',
|
|
'dayplan.pdfError': 'Failed to export PDF',
|
|
'dayplan.mobile.addPlace': 'Add Place',
|
|
'dayplan.mobile.searchPlaces': 'Search places...',
|
|
'dayplan.mobile.allAssigned': 'All places assigned',
|
|
'dayplan.mobile.noMatch': 'No match',
|
|
'dayplan.mobile.createNew': 'Create new place',
|
|
'dayplan.reorderDays': 'Reorder days',
|
|
'dayplan.reorderTitle': 'Reorder days',
|
|
'dayplan.reorderHint': "A day's places, notes and bookings move with it.",
|
|
'dayplan.addDay': 'Add day',
|
|
'dayplan.moveUp': 'Move up',
|
|
'dayplan.moveDown': 'Move down',
|
|
'dayplan.reorderUndo': 'Reorder days',
|
|
'dayplan.reorderError': 'Failed to reorder days',
|
|
'dayplan.addDayError': 'Failed to add day',
|
|
'dayplan.deleteDay': 'Delete day',
|
|
'dayplan.deleteDayTitle': 'Delete {day}?',
|
|
'dayplan.deleteDayBody': 'The day is removed from the trip. This cannot be undone.',
|
|
'dayplan.excludeFromRoute': 'Leave out of route',
|
|
'dayplan.includeInRoute': 'Add back to route',
|
|
'dayplan.offRoute': 'Off route',
|
|
'dayplan.offRouteHint': 'Stays on the day and the map, but the route skips it',
|
|
'dayplan.clearDay': 'Clear day',
|
|
'dayplan.clearDayTitle': 'Clear {day}?',
|
|
'dayplan.clearDayBody':
|
|
'Every place comes off this day. The places stay in the trip, and the day keeps its notes and bookings.',
|
|
'dayplan.deleteDayEmpty': 'Nothing is planned on this day.',
|
|
'dayplan.impactPlaces': 'Planned places: {count}',
|
|
'dayplan.impactPlaces.one': 'Planned places: {count}',
|
|
'dayplan.impactPlacesHint': 'They stay in the place list.',
|
|
'dayplan.impactNotes': 'Notes: {count}',
|
|
'dayplan.impactNotes.one': 'Notes: {count}',
|
|
'dayplan.impactTexts': 'Day titles and descriptions: {count}',
|
|
'dayplan.impactTexts.one': 'Day titles and descriptions: {count}',
|
|
'dayplan.impactDeletedHint': 'Deleted as well.',
|
|
'dayplan.impactBookings': 'Bookings: {count}',
|
|
'dayplan.impactBookings.one': 'Bookings: {count}',
|
|
'dayplan.impactStay': 'Stay at {name}',
|
|
'dayplan.deleteDayBookingsHint': 'They keep their date and stay under Bookings, without a day.',
|
|
'dayplan.deleteDayStayHint': 'Checks in or out on this day and is cancelled.',
|
|
'dayplan.deleteDayStayBookedHint':
|
|
'Checks in or out on this day and is cancelled, together with the booking “{booking}” and its expense.',
|
|
'dayplan.deleteDayStayBookingHint':
|
|
'Checks in or out on this day and is cancelled, together with the booking “{booking}”.',
|
|
'dayplan.deleteDayStayPaidHint':
|
|
'Checks in or out on this day and is cancelled, together with the booking “{booking}” and its expense of {amount}.',
|
|
'dayplan.deleteDayShift': 'Later days: {count}',
|
|
'dayplan.deleteDayShift.one': 'Later days: {count}',
|
|
'dayplan.deleteDayShiftHint': 'Each moves one date earlier.',
|
|
'dayplan.deleteDayShiftBookingsHint': 'Each moves one date earlier. Bookings moving along: {count}',
|
|
'dayplan.deleteDayShiftBookingsHint.one': 'Each moves one date earlier. Bookings moving along: {count}',
|
|
'dayplan.deleteDayShrink': 'Trip now ends on {date}',
|
|
'dayplan.deleteDayShrinkHint': 'There is no day without a date to take over the last date.',
|
|
'dayplan.impactStayShorter': 'Stay at {name}: one night less',
|
|
'dayplan.deleteDayStayShorterHint': 'Check-out is now on {date}, as it runs across this day.',
|
|
'dayplan.deleteDayStayShorterUndatedHint': 'It runs across this day and now ends one day earlier.',
|
|
'dayplan.deleteDaySpareDated': '{day} takes the date {date}',
|
|
'dayplan.deleteDaySpareDatedHint': 'It is the first day without a date, and it takes over the last date of the trip.',
|
|
'dayplan.deleteDayLast': 'A trip needs at least one day',
|
|
'dayplan.daysOffline': 'Changing days needs a connection',
|
|
'dayplan.deleteDaySuccess': 'Day deleted',
|
|
'dayplan.deleteDayError': 'Failed to delete day',
|
|
'dayplan.addUndatedDay': 'Without date',
|
|
'dayplan.addUndatedDayHint': 'Adds a day without a date at the end. The trip dates stay as they are.',
|
|
'dayplan.addDatedDay': 'Add {date}',
|
|
'dayplan.addDatedDayHint': 'Adds {date} and extends the trip by one day.',
|
|
'dayplan.tripExtended': 'Day added. The trip now ends on {date}, one day later.',
|
|
};
|
|
export default dayplan;
|