mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +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.
180 lines
9.4 KiB
TypeScript
180 lines
9.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const places: TranslationStrings = {
|
||
'places.addPlace': 'Afegeix un lloc / activitat',
|
||
'places.addToSelectedDay': 'Afegeix al dia obert',
|
||
'places.addPlaceShort': 'Lloc nou',
|
||
'places.addToDayShort': 'Al dia',
|
||
'places.importFile': 'Importa un fitxer',
|
||
'places.trackIndicator': 'Track / ruta',
|
||
'places.sidebarDrop': 'Deixa anar per importar',
|
||
'places.importFileHint':
|
||
"Importa fitxers .gpx, .kml o .kmz d'eines com Google My Maps, Google Earth o un rastrejador GPS.",
|
||
'places.importFileDropHere': "Fes clic per seleccionar un fitxer o arrossega'l aquí",
|
||
'places.importFileDropActive': 'Deixa anar el fitxer per seleccionar-lo',
|
||
'places.importFileUnsupported': 'Tipus de fitxer no compatible. Utilitza .gpx, .kml o .kmz.',
|
||
'places.importFileTooLarge': 'El fitxer és massa gran. La mida màxima de pujada és de {maxMb} MB.',
|
||
'places.importFileError': 'Importació fallida',
|
||
'places.importAllSkipped': 'Tots els llocs ja eren al viatge.',
|
||
'places.gpxImported': '{count} llocs importats des de GPX',
|
||
'places.gpxImported.one': '{count} lloc importat des de GPX',
|
||
'places.gpxImportTypes': 'Què vols importar?',
|
||
'places.gpxImportWaypoints': 'Punts de ruta',
|
||
'places.gpxImportRoutes': 'Rutes',
|
||
'places.gpxImportTracks': 'Tracks (amb geometria de ruta)',
|
||
'places.gpxImportNoneSelected': 'Selecciona almenys un tipus per importar.',
|
||
'places.kmlImportTypes': 'Què vols importar?',
|
||
'places.kmlImportPoints': 'Punts (Placemarks)',
|
||
'places.kmlImportPaths': 'Rutes (LineStrings)',
|
||
'places.kmlImportNoneSelected': 'Selecciona almenys un tipus.',
|
||
'places.selectionCount': '{count} seleccionats',
|
||
'places.selectionCount.one': '{count} seleccionat',
|
||
'places.deleteSelected': 'Elimina la selecció',
|
||
'places.kmlKmzImported': '{count} llocs importats des de KMZ/KML',
|
||
'places.kmlKmzImported.one': '{count} lloc importat des de KMZ/KML',
|
||
'places.urlResolved': "Lloc importat des de l'URL",
|
||
'places.importList': 'Importa una llista',
|
||
'places.kmlKmzSummaryValues': 'Placemarks: {total} · Importats: {created} · Omès: {skipped}',
|
||
'places.importGoogleList': 'Llista de Google',
|
||
'places.importNaverList': 'Llista de Naver',
|
||
'places.googleListHint': "Enganxa un enllaç compartit d'una llista de Google Maps per importar tots els llocs.",
|
||
'places.googleListImported': '{count} llocs importats de "{list}"',
|
||
'places.googleListImported.one': '{count} lloc importat de "{list}"',
|
||
'places.googleDirHint':
|
||
'Un enllaç d’indicacions també serveix: les seves parades esdevenen llocs, en ordre de conducció.',
|
||
'places.googleListError': 'Error en importar la llista de Google Maps',
|
||
'places.naverListHint': "Enganxa un enllaç compartit d'una llista de Naver Maps per importar tots els llocs.",
|
||
'places.naverListImported': '{count} llocs importats de "{list}"',
|
||
'places.naverListImported.one': '{count} lloc importat de "{list}"',
|
||
'places.naverListError': 'Error en importar la llista de Naver Maps',
|
||
'places.viewDetails': 'Mostra els detalls',
|
||
'places.assignToDay': "A quin dia l'afegeixo?",
|
||
'places.all': 'Tot',
|
||
'places.unplanned': 'Sense planificar',
|
||
'places.planned': 'Planificats',
|
||
'places.dayScoped': 'Es mostra només el dia obert',
|
||
'places.dayScopedClear': 'Mostra tot el viatge',
|
||
'places.filterTracks': 'Rutes',
|
||
'places.filterByRating': 'Filtra per valoració',
|
||
'places.sortBy': 'Ordena per',
|
||
'places.sortNewest': 'Afegits recentment',
|
||
'places.sortOldest': 'Primer els més antics',
|
||
'places.sortName': 'Nom (A–Z)',
|
||
'places.sortRating': 'Millor valorats',
|
||
'places.sortUpdated': 'Modificats recentment',
|
||
'places.filterByLocation': 'Filtra per país o regió',
|
||
'places.allLocations': 'Tots els països',
|
||
'places.filterShow': 'Mostrar',
|
||
'places.filters': 'Filtres',
|
||
'places.clearSearch': 'Esborra la cerca',
|
||
'places.yourRating': 'La teva valoració',
|
||
'places.notRated': 'Encara sense valoració',
|
||
'places.search': 'Cerca llocs...',
|
||
'places.allCategories': 'Totes les categories',
|
||
'places.categoriesSelected': 'categories',
|
||
'places.categoriesSelected.one': 'categoria',
|
||
'places.clearFilter': 'Esborra el filtre',
|
||
'places.count': '{count} llocs',
|
||
'places.count.one': '{count} lloc',
|
||
'places.allPlanned': 'Tots els llocs estan planificats',
|
||
'places.noneFound': "No s'han trobat llocs",
|
||
'places.editPlace': 'Edita el lloc',
|
||
'places.formName': 'Nom',
|
||
'places.formNamePlaceholder': 'p. ex. Torre Eiffel',
|
||
'places.formDescription': 'Descripció',
|
||
'places.formDescriptionPlaceholder': 'Descripció breu...',
|
||
'places.formAddress': 'Adreça',
|
||
'places.formAddressPlaceholder': 'Carrer, ciutat, país',
|
||
'places.formLat': 'Latitud (p. ex. 48.8566)',
|
||
'places.formLng': 'Longitud (p. ex. 2.3522)',
|
||
'places.formLatLabel': 'Latitud',
|
||
'places.formLngLabel': 'Longitud',
|
||
'places.formCategory': 'Categoria',
|
||
'places.noCategory': 'Sense categoria',
|
||
'places.newCategory': 'Categoria nova',
|
||
'places.openInMaps': 'Obre a mapes',
|
||
'places.categoryNamePlaceholder': 'Nom de la categoria',
|
||
'places.formTime': 'Hora',
|
||
'places.startTime': 'Inici',
|
||
'places.endTime': 'Fi',
|
||
'places.endTimeBeforeStart': "L'hora de fi és anterior a la d'inici",
|
||
'places.timeCollision': 'Solapament horari amb:',
|
||
'places.formWebsite': 'Lloc web',
|
||
'places.formPhone': 'Telèfon',
|
||
'places.formEmail': 'Correu electrònic',
|
||
'places.hoursAdd': "Afegeix l'horari",
|
||
'places.hoursClosed': 'Tancat',
|
||
'places.hoursOpens': 'obre',
|
||
'places.hoursCloses': 'tanca',
|
||
'places.hoursCopyFirst': "Fes servir l'horari de {day} per a tots els dies",
|
||
'places.hoursRemove': "Elimina l'horari",
|
||
'places.hoursFromDetails': 'Agafa-ho dels detalls del lloc',
|
||
'places.searchNothing': "No s'ha trobat res per a «{query}»",
|
||
'places.searchNothingHint': 'Afegeix-lo tu: adreça, telèfon, correu i horari tenen un camp a sota.',
|
||
'places.addByHand': 'Afegeix a mà',
|
||
'places.formNotes': 'Notes',
|
||
'places.formNotesPlaceholder': 'Notes personals...',
|
||
'places.assignmentNotes': 'Notes per a aquest dia',
|
||
'places.assignmentNotesPlaceholder': 'Notes per a aquest lloc només aquest dia...',
|
||
'places.formReservation': 'Reserva',
|
||
'places.reservationNotesPlaceholder': 'Notes de reserva, número de confirmació...',
|
||
'places.mapsSearchPlaceholder': 'Cerca llocs...',
|
||
'places.mapsSearchError': 'La cerca de llocs ha fallat.',
|
||
'places.searchGoogleInstead': 'No és el lloc correcte? Cerca a Google',
|
||
'places.nearby': 'Llocs a prop d’aquest marcador',
|
||
'places.nearbyNone': 'No s’ha trobat res a prop d’aquest marcador',
|
||
'places.loadingDetails': 'Carregant els detalls del lloc…',
|
||
'places.osmHint':
|
||
"S'està utilitzant la cerca amb OpenStreetMap (sense fotos, horaris ni valoracions). Afegeix una clau API de Google a Configuració per obtenir tots els detalls.",
|
||
'places.source.amap': 'Amap',
|
||
'places.details.title': 'Detalls del lloc',
|
||
'places.details.empty': 'Tria un resultat per veure’n més',
|
||
'places.details.loading': "S'estan carregant els detalls...",
|
||
'places.details.error': "No s'han pogut carregar els detalls.",
|
||
'places.details.disabled': "L'enriquiment està desactivat per l'administrador.",
|
||
'places.details.noPhotos': "No s'han trobat imatges per a aquest lloc.",
|
||
'places.details.pickImage': 'Tria una imatge',
|
||
'places.details.description': 'Descripció',
|
||
'places.details.adopt': 'Utilitza aquest text',
|
||
'places.details.adoptBlocked': 'Buida primer el camp de descripció',
|
||
'places.details.facts': 'Bo saber',
|
||
'places.details.nothing': "No s'ha trobat res per a aquest lloc.",
|
||
'places.details.aboutBrand': 'Sobre la cadena',
|
||
'places.details.aboutBrandNote': 'Descriu la cadena, no aquest local.',
|
||
'places.details.fact.rating': 'Valoració',
|
||
'places.details.fact.cuisine': 'Cuina',
|
||
'places.details.fact.openingHours': 'Horari',
|
||
'places.details.fact.menu': 'Carta',
|
||
'places.details.fact.outdoorSeating': 'Terrassa',
|
||
'places.details.fact.takeaway': 'Per emportar',
|
||
'places.details.fact.delivery': 'Lliurament',
|
||
'places.details.fact.wheelchair': 'Accés sense esglaons',
|
||
'places.details.fact.vegetarian': 'Vegetarià',
|
||
'places.details.fact.vegan': 'Vegà',
|
||
'places.details.fact.internetAccess': 'Wi-Fi',
|
||
'places.categoryCreateError': "No s'ha pogut crear la categoria",
|
||
'places.nameRequired': 'Introdueix un nom',
|
||
'places.saveError': "No s'ha pogut desar",
|
||
'places.createExpenseHint': 'Desa el lloc i després obre l’editor de despeses.',
|
||
|
||
'places.changeCategory': 'Canviar categoria',
|
||
'places.categoryChanged': '{count} llocs actualitzats',
|
||
'places.categoryChanged.one': '{count} lloc actualitzat',
|
||
'places.duplicateExists': "'{name}' ja es troba en aquest viatge.",
|
||
'places.addAnyway': 'Afegir igualment',
|
||
'places.enrichOnImport': 'Enriquir llocs mitjançant Google',
|
||
'places.enrichOnImportHint':
|
||
"Obté automàticament adreces, puntuacions i horaris d'obertura des de Google en importar.",
|
||
'places.enrichOnImportFileHint':
|
||
'Després cerca cada punt importat a Google i n’afegeix la foto, l’adreça, el lloc web i el telèfon. Els camins i els tracks es queden com estan.',
|
||
'places.uploadImage': 'Puja una imatge',
|
||
'places.changeImage': 'Canvia la imatge',
|
||
'places.removeImage': 'Elimina la imatge',
|
||
'places.chooseImage': 'Tria una imatge',
|
||
'places.uploadFromDevice': 'Puja des del dispositiu',
|
||
'places.fromAttachedFiles': 'Dels fitxers adjunts',
|
||
'places.imageUploadError': "No s'ha pogut pujar la imatge",
|
||
'places.imageRemoveError': "No s'ha pogut eliminar la imatge",
|
||
};
|
||
export default places;
|