mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
c5360be242
* feat(dayplan): persist per-leg and per-day travel mode (#1281) The day-plan route used one transport mode for the whole day, held only in ephemeral state. Store it instead: leg_transport_mode on an assignment is the mode of the leg leaving that stop (null = inherit the day default), and days gains a default_transport_mode. Both nullable, so existing itineraries are unchanged. Adds PUT /assignments/:id/transport and PUT /days/:id/transport — their own endpoints so setting the day default can't wipe notes/title the way the general day update would — mirroring the assignment_time path. * feat(dayplan): choose the travel mode per segment (#1281) Each leg between two stops now routes with its own mode, so a day can mix walking, driving and plugin-routed legs. Tap the connector between two places to change that leg's mode (desktop popup / mobile sheet); the whole-day Foot/Car picker sets the persisted day default and leaves explicitly-set legs alone. The connector and map redraw in the chosen mode, and each route segment is tagged with the mode it was drawn in. New strings across all 23 locales.
57 lines
3.5 KiB
TypeScript
57 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const dayplan: TranslationStrings = {
|
|
'dayplan.icsTooltip': 'تصدير التقويم (ICS)',
|
|
'dayplan.emptyDay': 'لا توجد أماكن مخططة لهذا اليوم',
|
|
'dayplan.cannotReorderTransport': 'لا يمكن إعادة ترتيب الحجوزات ذات الوقت الثابت',
|
|
'dayplan.confirmRemoveTimeTitle': 'إزالة الوقت؟',
|
|
'dayplan.confirmRemoveTimeBody': 'هذا المكان له وقت ثابت ({time}). نقله سيزيل الوقت ويسمح بالترتيب الحر.',
|
|
'dayplan.confirmRemoveTimeAction': 'إزالة الوقت ونقل',
|
|
'dayplan.confirmDeleteNoteTitle': 'حذف الملاحظة؟',
|
|
'dayplan.confirmDeleteNoteBody': 'سيتم حذف هذه الملاحظة نهائيًا.',
|
|
'dayplan.cannotDropOnTimed': 'لا يمكن وضع العناصر بين الإدخالات المرتبطة بوقت',
|
|
'dayplan.cannotBreakChronology': 'سيؤدي هذا إلى كسر الترتيب الزمني للعناصر والحجوزات المجدولة',
|
|
'dayplan.addNote': 'إضافة ملاحظة',
|
|
'dayplan.editNote': 'تعديل الملاحظة',
|
|
'dayplan.noteAdd': 'إضافة ملاحظة',
|
|
'dayplan.noteEdit': 'تعديل الملاحظة',
|
|
'dayplan.noteTitle': 'ملاحظة',
|
|
'dayplan.noteSubtitle': 'ملاحظة يومية',
|
|
'dayplan.totalCost': 'إجمالي التكلفة',
|
|
'dayplan.days': 'الأيام',
|
|
'dayplan.dayN': 'اليوم {n}',
|
|
'dayplan.calculating': 'جارٍ الحساب...',
|
|
'dayplan.route': 'المسار',
|
|
'dayplan.optimize': 'تحسين',
|
|
'dayplan.transportMode.change': 'تغيير وسيلة النقل',
|
|
'dayplan.transportMode.useDefault': 'استخدام إعداد اليوم الافتراضي',
|
|
'dayplan.optimized': 'تم تحسين المسار',
|
|
'dayplan.routeError': 'فشل حساب المسار',
|
|
'dayplan.toast.needTwoPlaces': 'يلزم مكانان على الأقل لتحسين المسار',
|
|
'dayplan.toast.routeOptimized': 'تم تحسين المسار',
|
|
'dayplan.toast.routeOptimizedFromHotel': 'تم تحسين المسار انطلاقًا من مكان إقامتك',
|
|
'dayplan.toast.noGeoPlaces': 'لم يتم العثور على أماكن بإحداثيات لحساب المسار',
|
|
'dayplan.confirmed': 'مؤكد',
|
|
'dayplan.pendingRes': 'قيد الانتظار',
|
|
'dayplan.pdfTooltip': 'تصدير خطة اليوم بصيغة PDF',
|
|
'dayplan.pdfError': 'فشل تصدير PDF',
|
|
'dayplan.expandAll': 'Expand all days', // en-fallback
|
|
'dayplan.collapseAll': 'Collapse all days', // en-fallback
|
|
'dayplan.pdf': 'PDF', // en-fallback
|
|
'dayplan.mobile.addPlace': 'Add Place', // en-fallback
|
|
'dayplan.mobile.searchPlaces': 'Search places...', // en-fallback
|
|
'dayplan.mobile.allAssigned': 'All places assigned', // en-fallback
|
|
'dayplan.mobile.noMatch': 'No match', // en-fallback
|
|
'dayplan.mobile.createNew': 'Create new place', // en-fallback
|
|
'dayplan.reorderDays': 'إعادة ترتيب الأيام',
|
|
'dayplan.reorderTitle': 'إعادة ترتيب الأيام',
|
|
'dayplan.reorderHint': 'تنتقل أماكن اليوم وملاحظاته وحجوزاته معه.',
|
|
'dayplan.addDay': 'إضافة يوم',
|
|
'dayplan.moveUp': 'تحريك لأعلى',
|
|
'dayplan.moveDown': 'تحريك لأسفل',
|
|
'dayplan.reorderUndo': 'إعادة ترتيب الأيام',
|
|
'dayplan.reorderError': 'تعذّر إعادة ترتيب الأيام',
|
|
'dayplan.addDayError': 'تعذّر إضافة يوم',
|
|
};
|
|
export default dayplan;
|