mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +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.
107 lines
5.2 KiB
TypeScript
107 lines
5.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const trip: TranslationStrings = {
|
||
'trip.tabs.plan': 'Plán',
|
||
'trip.tabs.transports': 'Doprava',
|
||
'trip.tabs.reservations': 'Rezervace',
|
||
'trip.tabs.reservationsShort': 'Rez.',
|
||
'trip.tabs.packing': 'Seznam věcí',
|
||
'trip.tabs.packingShort': 'Balení',
|
||
'trip.tabs.lists': 'Seznamy',
|
||
'trip.tabs.listsShort': 'Seznamy',
|
||
'trip.tabs.budget': 'Náklady',
|
||
'trip.tabs.files': 'Soubory',
|
||
'trip.loading': 'Načítání cesty...',
|
||
'trip.loadingPhotos': 'Načítání fotek míst...',
|
||
'trip.loadingSteps.pack': 'Balíme kufry...',
|
||
'trip.loadingSteps.road': 'Vyrážíme na cestu...',
|
||
'trip.loadingSteps.arrive': 'Už jsme skoro tam...',
|
||
'trip.mobilePlan': 'Plán',
|
||
'trip.mobilePlaces': 'Místa',
|
||
'trip.panelWidth': 'Šířka panelu',
|
||
'trip.toast.placeUpdated': 'Místo bylo aktualizováno',
|
||
'trip.toast.tripUpdated': 'Cesta aktualizována',
|
||
'trip.toast.placeAdded': 'Místo bylo přidáno',
|
||
'trip.toast.placeDeleted': 'Místo bylo smazáno',
|
||
'trip.toast.selectDay': 'Prosím nejdříve vyberte den',
|
||
'trip.toast.assignedToDay': 'Místo bylo přiřazeno ke dni',
|
||
'trip.toast.loadError': 'Cestu se nepodařilo načíst',
|
||
'trip.toast.reorderError': 'Nepodařilo se změnit pořadí',
|
||
'trip.toast.reservationUpdated': 'Rezervace aktualizována',
|
||
'trip.toast.reservationAdded': 'Rezervace přidána',
|
||
'trip.toast.deleted': 'Smazáno',
|
||
'trip.confirm.deletePlace': 'Opravdu chcete toto místo smazat?',
|
||
'trip.confirm.deletePlaces': 'Smazat {count} míst?',
|
||
'trip.confirm.deletePlaces.one': 'Smazat {count} místo?',
|
||
'trip.confirm.deletePlaces.few': 'Smazat {count} místa?',
|
||
'trip.toast.placesDeleted': '{count} míst smazáno',
|
||
'trip.toast.placesDeleted.one': '{count} místo smazáno',
|
||
'trip.toast.placesDeleted.few': '{count} místa smazána',
|
||
'trip.invite.linkTitle': 'Odkaz pro pozvání na cestu',
|
||
'trip.invite.linkHint':
|
||
'Kdokoli s účtem TREK, kdo otevře tento odkaz, se připojí k cestě jako člen. Vygenerováním nového odkazu zneplatníte ten starý.',
|
||
'trip.invite.create': 'Vytvořit odkaz pro pozvání',
|
||
'trip.invite.regenerate': 'Vygenerovat znovu',
|
||
'trip.invite.disable': 'Deaktivovat',
|
||
'trip.invite.joinHeading': 'Připojit se k této cestě',
|
||
'trip.invite.joinPrompt': 'Byli jste pozváni k připojení k cestě „{title}".',
|
||
'trip.invite.joinCta': 'Připojit se k cestě',
|
||
'trip.invite.joining': 'Připojování…',
|
||
'trip.invite.invalidTitle': 'Pozvánka není dostupná',
|
||
'trip.invite.invalid': 'Tento odkaz pro pozvání je neplatný nebo jeho platnost vypršela.',
|
||
'trip.invite.backToDashboard': 'Zpět na přehled',
|
||
'transit.title': 'Veřejná doprava',
|
||
'transit.from': 'Odkud',
|
||
'transit.to': 'Kam',
|
||
'transit.searchStop': 'Hledat zastávku nebo stanici…',
|
||
'transit.swap': 'Prohodit',
|
||
'transit.depart': 'Odjezd',
|
||
'transit.arrive': 'Příjezd',
|
||
'transit.mode.rail': 'Vlak',
|
||
'transit.mode.subway': 'Metro',
|
||
'transit.mode.tram': 'Tramvaj',
|
||
'transit.mode.bus': 'Autobus',
|
||
'transit.mode.ferry': 'Trajekt',
|
||
'transit.mode.cable': 'Lanovka',
|
||
'transit.pref.best': 'Nejlepší spojení',
|
||
'transit.pref.transfers': 'Méně přestupů',
|
||
'transit.pref.walking': 'Méně chůze',
|
||
'transit.search': 'Hledat',
|
||
'transit.searching': 'Hledání…',
|
||
'transit.searchError': 'Vyhledání spojení selhalo. Zkuste to prosím znovu.',
|
||
'transit.noResultsVia': 'Přes {provider} nebylo nalezeno žádné spojení. Zkuste jiný čas nebo filtry.',
|
||
'transit.noResults': 'Nebyla nalezena žádná spojení. Zkuste jiný čas nebo filtry.',
|
||
'transit.direct': 'Přímé',
|
||
'transit.transfers': '{count} přestupů',
|
||
'transit.transfers.one': '{count} přestup',
|
||
'transit.transfers.few': '{count} přestupy',
|
||
'transit.min': '{count} min',
|
||
'transit.stops': '{count} zastávek',
|
||
'transit.stops.one': '{count} zastávka',
|
||
'transit.stops.few': '{count} zastávky',
|
||
'transit.walkTo': 'Pěšky k {name}',
|
||
'transit.platform': 'Nástupiště {track}',
|
||
'transit.adding': 'Přidávání…',
|
||
'transit.addToDay': 'Přidat ke dni',
|
||
'transit.itinerary': 'Itinerář',
|
||
'transit.attribution': 'Data o spojení přes',
|
||
'transport.modeManual': 'Ručně',
|
||
'transport.modeAutomated': 'Automaticky',
|
||
'transit.sectionTitle': 'Automatické spojení MHD',
|
||
'transit.changeRoute': 'Změnit trasu',
|
||
'transit.editDetails': 'Upravit podrobnosti',
|
||
'transit.journey': 'Cesta veřejnou dopravou',
|
||
'transit.pickDay': 'Vyberte den, pro který chcete vyhledat spojení.',
|
||
'transit.noItinerary': 'Tato položka nemá uložené spojení – vyhledejte ho pomocí tlačítka „Změnit trasu“.',
|
||
'transit.durationLabel': 'Doba trvání',
|
||
'transit.transfersLabel': 'Přestupy',
|
||
'transit.walkLabel': 'Chůze',
|
||
'transit.searchHint': 'Vyhledejte reálná spojení a přidejte je rovnou do dne — data přes Transitous.',
|
||
'trip.confirm.deletePlaceNight': 'Tím se smaže i ubytování rezervované v „{name}“.',
|
||
'trip.confirm.deletePlaceBooked':
|
||
'Tím se smažou i ubytování rezervované v „{name}“, rezervace „{booking}“ a všechny navázané výdaje.',
|
||
'trip.confirm.deletePlaceBookedSame':
|
||
'Tím se smažou i ubytování rezervované v „{name}“, jeho rezervace a všechny navázané výdaje.',
|
||
};
|
||
export default trip;
|