Files
TREK/shared/src/i18n/ar/planner.ts
T
Maurice bee500880e fix(i18n): every language says one file and five files its own way
Finishes the plural work the previous wip commit started. t() picks a
count string's form by the language's own Intl.PluralRules, and every
locale now spells out the forms its language reaches with whole
numbers, about 160 count strings in all: one, few and many in Russian,
Ukrainian and Polish, one and few in Czech and Slovak, five forms in
Arabic, one in the others, none in Japanese, Korean, Chinese, Thai,
Vietnamese and Indonesian. Each language was translated and then
reviewed on its own. English no longer reads "1 files", "1 updates
available" or "photo(s)".

Count labels shown next to a number now take that number too: the
atlas and admin statistics, the trip cards, journey and shared trip
pills, packing templates, receipts, storage usage, the Studio export
note. A heading that shared its key with a counted label keeps a key of
its own (the boarding pass heading, the Bookings tab), so languages that
put a noun after a number in the singular keep a plural heading. The
plugin hosts chip passed its count through .replace() after t() and
never got a form; three toasts sent the count as text. Mail and push
texts for shared photos and suppressed storage failures pick their form
in code through pluralForm.

A whole number sent as text counts too, which is how in-app
notification params arrive, and the plural rule follows the language of
the strings on screen while another one still loads.

The parity check knows which forms each language needs and refuses
missing and impossible ones. It also reads keys that contain a colon
now: it skipped them, which hid 58 missing plugin permission texts in
Catalan and 35 in Vietnamese, both translated. The client parity test
covers every language of the registry instead of a hand-kept list of 19,
and the placeholder spec lets a form spell its number out only where
its category is that one number. Brazilian Portuguese error screens
were in Breton, and an Arabic dashboard label held Hebrew text.
2026-10-08 00:01:59 +00:00

83 lines
4.3 KiB
TypeScript

import type { TranslationStrings } from '../types';
const planner: TranslationStrings = {
'planner.places': 'الأماكن',
'planner.bookings': 'الحجوزات',
'planner.packingList': 'قائمة التجهيز',
'planner.documents': 'المستندات',
'planner.dayPlan': 'خطة اليوم',
'planner.reservations': 'الحجوزات',
'planner.minTwoPlaces': 'يلزم مكانان على الأقل مع إحداثيات',
'planner.noGeoPlaces': 'لا توجد أماكن بإحداثيات',
'planner.routeCalculated': 'تم حساب المسار',
'planner.routeCalcFailed': 'تعذر حساب المسار',
'planner.routeError': 'خطأ أثناء حساب المسار',
'planner.icsExportFailed': 'فشل تصدير ICS',
'planner.routeOptimized': 'تم تحسين المسار',
'planner.reservationUpdated': 'تم تحديث الحجز',
'planner.reservationAdded': 'تمت إضافة الحجز',
'planner.confirmDeleteReservation': 'حذف الحجز؟',
'planner.reservationDeleted': 'تم حذف الحجز',
'planner.days': 'الأيام',
'planner.allPlaces': 'كل الأماكن',
'planner.totalPlaces': '{n} مكان في المجموع',
'planner.totalPlaces.zero': 'لا توجد أماكن',
'planner.totalPlaces.one': 'مكان واحد في المجموع',
'planner.totalPlaces.two': 'مكانان في المجموع',
'planner.totalPlaces.few': '{n} أماكن في المجموع',
'planner.totalPlaces.many': '{n} مكانًا في المجموع',
'planner.noDaysPlanned': 'لا توجد أيام مخططة بعد',
'planner.editTrip': 'تعديل الرحلة ←',
'planner.placeOne': 'مكان واحد',
'planner.placeN': '{n} مكان',
'planner.placeN.zero': 'لا توجد أماكن',
'planner.placeN.one': 'مكان واحد',
'planner.placeN.two': 'مكانان',
'planner.placeN.few': '{n} أماكن',
'planner.placeN.many': '{n} مكانًا',
'planner.addNote': 'إضافة ملاحظة',
'planner.noEntries': 'لا توجد عناصر لهذا اليوم',
'planner.addPlace': 'إضافة مكان/نشاط',
'planner.addPlaceShort': '+ إضافة مكان/نشاط',
'planner.resPending': 'حجز قيد الانتظار',
'planner.resConfirmed': 'حجز مؤكد',
'planner.notePlaceholder': 'ملاحظة…',
'planner.noteTimePlaceholder': 'الوقت (اختياري)',
'planner.noteExamplePlaceholder': 'مثال: S3 الساعة 14:30 من المحطة المركزية، عبّارة من الرصيف 7، استراحة غداء…',
'planner.totalCost': 'إجمالي التكلفة',
'planner.searchPlaces': 'ابحث عن أماكن…',
'planner.allCategories': 'كل الفئات',
'planner.noPlacesFound': 'لم يتم العثور على أماكن',
'planner.addFirstPlace': 'أضف أول مكان',
'planner.noReservations': 'لا توجد حجوزات',
'planner.addFirstReservation': 'أضف أول حجز',
'planner.new': 'جديد',
'planner.addToDay': '+ يوم',
'planner.calculating': 'جارٍ الحساب…',
'planner.route': 'المسار',
'planner.optimize': 'تحسين',
'planner.openGoogleMaps': 'فتح في Google Maps',
'planner.openCoMaps': 'فتح في CoMaps',
'planner.selectDayHint': 'اختر يومًا من القائمة اليسرى لعرض خطة اليوم',
'planner.noPlacesForDay': 'لا توجد أماكن لهذا اليوم بعد',
'planner.addPlacesLink': 'إضافة أماكن ←',
'planner.minTotal': 'دقيقة إجمالًا',
'planner.noReservation': 'لا يوجد حجز',
'planner.removeFromDay': 'إزالة من اليوم',
'planner.addToThisDay': 'إضافة إلى اليوم',
'planner.overview': 'نظرة عامة',
'planner.noDays': 'لا توجد أيام بعد',
'planner.editTripToAddDays': 'عدّل الرحلة لإضافة أيام',
'planner.dayCount': '{n} يوم',
'planner.dayCount.zero': 'لا توجد أيام',
'planner.dayCount.one': 'يوم واحد',
'planner.dayCount.two': 'يومان',
'planner.dayCount.few': '{n} أيام',
'planner.dayCount.many': '{n} يومًا',
'planner.clickToUnlock': 'انقر لفتح القفل',
'planner.keepPosition': 'الحفاظ على الموضع أثناء تحسين المسار',
'planner.dayDetails': 'تفاصيل اليوم',
'planner.dayN': 'اليوم {n}',
};
export default planner;