mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
bee500880e
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.
74 lines
3.4 KiB
TypeScript
74 lines
3.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const planner: TranslationStrings = {
|
|
'planner.places': 'Místa',
|
|
'planner.bookings': 'Rezervace',
|
|
'planner.packingList': 'Seznam věcí',
|
|
'planner.documents': 'Dokumenty',
|
|
'planner.dayPlan': 'Denní plán',
|
|
'planner.reservations': 'Rezervace',
|
|
'planner.minTwoPlaces': 'Potřebujete alespoň 2 místa se souřadnicemi',
|
|
'planner.noGeoPlaces': 'Žádná místa se souřadnicemi nejsou k dispozici',
|
|
'planner.routeCalculated': 'Trasa vypočtena',
|
|
'planner.routeCalcFailed': 'Trasu se nepodařilo vypočítat',
|
|
'planner.routeError': 'Chyba při výpočtu trasy',
|
|
'planner.icsExportFailed': 'Export ICS se nezdařil',
|
|
'planner.routeOptimized': 'Trasa optimalizována',
|
|
'planner.reservationUpdated': 'Rezervace aktualizována',
|
|
'planner.reservationAdded': 'Rezervace přidána',
|
|
'planner.confirmDeleteReservation': 'Smazat rezervaci?',
|
|
'planner.reservationDeleted': 'Rezervace smazána',
|
|
'planner.days': 'Dny',
|
|
'planner.allPlaces': 'Všechna místa',
|
|
'planner.totalPlaces': 'Celkem {n} míst',
|
|
'planner.totalPlaces.one': 'Celkem {n} místo',
|
|
'planner.totalPlaces.few': 'Celkem {n} místa',
|
|
'planner.noDaysPlanned': 'Zatím nejsou naplánovány žádné dny',
|
|
'planner.editTrip': 'Upravit cestu →',
|
|
'planner.placeOne': '1 místo',
|
|
'planner.placeN': '{n} míst',
|
|
'planner.placeN.one': '{n} místo',
|
|
'planner.placeN.few': '{n} místa',
|
|
'planner.addNote': 'Přidat poznámku',
|
|
'planner.noEntries': 'Pro tento den nejsou žádné záznamy',
|
|
'planner.addPlace': 'Přidat místo/aktivitu',
|
|
'planner.addPlaceShort': '+ Přidat místo/aktivitu',
|
|
'planner.resPending': 'Rezervace čeká',
|
|
'planner.resConfirmed': 'Rezervace potvrzena',
|
|
'planner.notePlaceholder': 'Poznámka…',
|
|
'planner.noteTimePlaceholder': 'Čas (volitelné)',
|
|
'planner.noteExamplePlaceholder': 'např. S3 ve 14:30 z hlavního nádraží, trajekt z přístaviště 7, přestávka na oběd…',
|
|
'planner.totalCost': 'Celkové náklady',
|
|
'planner.searchPlaces': 'Hledat místa…',
|
|
'planner.allCategories': 'Všechny kategorie',
|
|
'planner.noPlacesFound': 'Žádná místa nenalezena',
|
|
'planner.addFirstPlace': 'Přidat první místo',
|
|
'planner.noReservations': 'Žádné rezervace',
|
|
'planner.addFirstReservation': 'Přidat první rezervaci',
|
|
'planner.new': 'Nový',
|
|
'planner.addToDay': '+ Den',
|
|
'planner.calculating': 'Počítání…',
|
|
'planner.route': 'Trasa',
|
|
'planner.optimize': 'Optimalizovat',
|
|
'planner.openGoogleMaps': 'Otevřít v Google Mapách',
|
|
'planner.openCoMaps': 'Otevřít v CoMaps',
|
|
'planner.selectDayHint': 'Vyberte den ze seznamu vlevo pro zobrazení denního plánu',
|
|
'planner.noPlacesForDay': 'Zatím žádná místa pro tento den',
|
|
'planner.addPlacesLink': 'Přidat místa →',
|
|
'planner.minTotal': 'min. celkem',
|
|
'planner.noReservation': 'Žádná rezervace',
|
|
'planner.removeFromDay': 'Odebrat ze dne',
|
|
'planner.addToThisDay': 'Přidat ke dni',
|
|
'planner.overview': 'Přehled',
|
|
'planner.noDays': 'Zatím žádné dny',
|
|
'planner.editTripToAddDays': 'Upravte cestu pro přidání dnů',
|
|
'planner.dayCount': '{n} dní',
|
|
'planner.dayCount.one': '{n} den',
|
|
'planner.dayCount.few': '{n} dny',
|
|
'planner.clickToUnlock': 'Klikněte pro odemčení',
|
|
'planner.keepPosition': 'Zachovat pozici při optimalizaci trasy',
|
|
'planner.dayDetails': 'Podrobnosti dne',
|
|
'planner.dayN': 'Den {n}',
|
|
};
|
|
export default planner;
|