Files
TREK/shared/src/i18n/ru/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

77 lines
4.4 KiB
TypeScript

import type { TranslationStrings } from '../types';
const planner: TranslationStrings = {
'planner.places': 'Места',
'planner.bookings': 'Бронирования',
'planner.packingList': 'Список вещей',
'planner.documents': 'Документы',
'planner.dayPlan': 'План дня',
'planner.reservations': 'Бронирования',
'planner.minTwoPlaces': 'Нужно минимум 2 места с координатами',
'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.one': 'Всего {n} место',
'planner.totalPlaces.few': 'Всего {n} места',
'planner.totalPlaces.many': 'Всего {n} мест',
'planner.noDaysPlanned': 'Дни ещё не запланированы',
'planner.editTrip': 'Редактировать поездку →',
'planner.placeOne': '1 место',
'planner.placeN': '{n} места',
'planner.placeN.one': '{n} место',
'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.one': '{n} день',
'planner.dayCount.few': '{n} дня',
'planner.dayCount.many': '{n} дней',
'planner.clickToUnlock': 'Нажмите для разблокировки',
'planner.keepPosition': 'Сохранить позицию при оптимизации маршрута',
'planner.dayDetails': 'Подробности дня',
'planner.dayN': 'День {n}',
};
export default planner;