mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +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.
71 lines
3.3 KiB
TypeScript
71 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const planner: TranslationStrings = {
|
|
'planner.places': 'Lieux',
|
|
'planner.bookings': 'Réservations',
|
|
'planner.packingList': 'Liste de bagages',
|
|
'planner.documents': 'Documents',
|
|
'planner.dayPlan': 'Plan du jour',
|
|
'planner.reservations': 'Réservations',
|
|
'planner.minTwoPlaces': 'Au moins 2 lieux avec coordonnées nécessaires',
|
|
'planner.noGeoPlaces': 'Aucun lieu avec coordonnées disponible',
|
|
'planner.routeCalculated': 'Itinéraire calculé',
|
|
'planner.routeCalcFailed': "L'itinéraire n'a pas pu être calculé",
|
|
'planner.routeError': "Erreur lors du calcul de l'itinéraire",
|
|
'planner.icsExportFailed': "Échec de l'export ICS",
|
|
'planner.routeOptimized': 'Itinéraire optimisé',
|
|
'planner.reservationUpdated': 'Réservation mise à jour',
|
|
'planner.reservationAdded': 'Réservation ajoutée',
|
|
'planner.confirmDeleteReservation': 'Supprimer la réservation ?',
|
|
'planner.reservationDeleted': 'Réservation supprimée',
|
|
'planner.days': 'Jours',
|
|
'planner.allPlaces': 'Tous les lieux',
|
|
'planner.totalPlaces': '{n} lieux au total',
|
|
'planner.totalPlaces.one': '{n} lieu au total',
|
|
'planner.noDaysPlanned': 'Aucun jour planifié',
|
|
'planner.editTrip': 'Modifier le voyage →',
|
|
'planner.placeOne': '1 lieu',
|
|
'planner.placeN': '{n} lieux',
|
|
'planner.placeN.one': '{n} lieu',
|
|
'planner.addNote': 'Ajouter une note',
|
|
'planner.noEntries': 'Aucune entrée pour ce jour',
|
|
'planner.addPlace': 'Ajouter un lieu ou une activité',
|
|
'planner.addPlaceShort': '+ Ajouter un lieu ou une activité',
|
|
'planner.resPending': 'Réservation en attente',
|
|
'planner.resConfirmed': 'Réservation confirmée',
|
|
'planner.notePlaceholder': 'Note…',
|
|
'planner.noteTimePlaceholder': 'Heure (facultatif)',
|
|
'planner.noteExamplePlaceholder': 'ex. S3 à 14h30 depuis la gare centrale, ferry depuis le quai 7, pause déjeuner…',
|
|
'planner.totalCost': 'Coût total',
|
|
'planner.searchPlaces': 'Rechercher des lieux…',
|
|
'planner.allCategories': 'Toutes les catégories',
|
|
'planner.noPlacesFound': 'Aucun lieu trouvé',
|
|
'planner.addFirstPlace': 'Ajouter un premier lieu',
|
|
'planner.noReservations': 'Aucune réservation',
|
|
'planner.addFirstReservation': 'Ajouter une première réservation',
|
|
'planner.new': 'Nouveau',
|
|
'planner.addToDay': '+ Jour',
|
|
'planner.calculating': 'Calcul…',
|
|
'planner.route': 'Itinéraire',
|
|
'planner.optimize': 'Optimiser',
|
|
'planner.openGoogleMaps': 'Ouvrir dans Google Maps',
|
|
'planner.openCoMaps': 'Ouvrir dans CoMaps',
|
|
'planner.selectDayHint': 'Sélectionnez un jour dans la liste de gauche pour voir le plan du jour',
|
|
'planner.noPlacesForDay': 'Aucun lieu pour ce jour',
|
|
'planner.addPlacesLink': 'Ajouter des lieux →',
|
|
'planner.minTotal': 'min. total',
|
|
'planner.noReservation': 'Pas de réservation',
|
|
'planner.removeFromDay': 'Retirer du jour',
|
|
'planner.addToThisDay': 'Ajouter au jour',
|
|
'planner.overview': 'Aperçu',
|
|
'planner.noDays': 'Aucun jour',
|
|
'planner.editTripToAddDays': 'Modifiez le voyage pour ajouter des jours',
|
|
'planner.dayCount': '{n} jours',
|
|
'planner.dayCount.one': '{n} jour',
|
|
'planner.clickToUnlock': 'Cliquez pour déverrouiller',
|
|
'planner.keepPosition': "Maintenir la position lors de l'optimisation de l'itinéraire",
|
|
'planner.dayDetails': 'Détails du jour',
|
|
'planner.dayN': 'Jour {n}',
|
|
};
|
|
export default planner;
|