Files
TREK/shared/src/i18n/ca/collection.ts
T
Maurice 80bb06c84f feat(collections): export and import a list as GPX
A list could leave the instance as a TREK file, which only another TREK
reads. Export now asks for a format, and GPX is the second one: the
places as waypoints, for OsmAnd, Organic Maps, a Garmin or gpx.studio.
Import takes a GPX in the same dialog as a list file. Asked for in
discussion #2301.

The GPX is written from the very list file the JSON export returns, so
what may leave the instance is still decided in one place. Name,
description and address, notes, website and category go into GPX's own
elements, where every app shows them. Labels, status, phone and the
rest travel in a TREK extension namespace, so a GPX made by TREK comes
back as the same list. A place without coordinates cannot be a
waypoint; it is left out and the export says how many were.

A GPX is read on the server, sent as text, with the XML library the
trip importer already uses. A document with a DOCTYPE is refused before
parsing, which closes both external entities and entity expansion. Size
is capped like the list file, and the element count is capped before a
tree is built. The reader only turns the GPX into a list file: the
browser previews it and imports it through the existing route, so one
contract, one transaction and one skipped counter cover both formats.
Waypoints and named route points become places; tracks and unnamed
route points are counted in the preview and not imported.

The two list-file routes get a body ceiling of twice the file limit.
The global 100 kB cap refused most real favourites files, and it
already refused list files well under the megabyte the contract allows.
2026-09-19 21:01:45 +02:00

214 lines
12 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { TranslationStrings } from '../types';
const collection: TranslationStrings = {
'collections.saveNToList': 'Desa {count} a una llista',
'collections.addedNToList': 'Desat {count} a {name}',
'collections.noOwnLists': 'Encara no tens cap llista',
'collections.saveToListHint': "Els duplicats s'ometen automàticament",
'collections.role.label': 'Rol',
'collections.role.viewer': 'Lector',
'collections.role.editor': 'Editor',
'collections.role.admin': 'Administrador',
'collections.picker.allLists': 'Totes les llistes',
'collections.select': 'Triar',
'collections.selectAll': 'Seleccionar-ho tot',
'collections.deselectAll': 'Deseleccionar-ho tot',
'collections.moveToList': 'Moure a la llista',
'collections.duplicateToList': 'Duplicar a la llista',
'collections.moveToListTitle': 'Mou {count} a una altra llista',
'collections.duplicateToListTitle': 'Duplica {count} a una altra llista',
'collections.noOtherLists': 'Encara no hi ha cap altra llista',
'collections.movedCount': "S'han mogut {count} llocs",
'collections.duplicatedCount': "S'han duplicat {count} llocs",
'collections.placeCount': '{count} llocs',
'collections.category': 'Categoria',
'collections.noCategory': 'Sense categoria',
'collections.editListTitle': 'Editar llista',
'collections.coverImage': 'Imatge de portada',
'collections.addCover': 'Afegir portada',
'collections.changeCover': 'Canviar portada',
'collections.description': 'Descripció',
'collections.descriptionPlaceholder': 'Afegeix una descripció…',
'collections.links': 'Enllaços',
'collections.linkLabel': 'Etiqueta',
'collections.addLink': 'Afegir enllaç',
'collections.addDetails': 'Afegir detalls',
'collections.addPlace': 'Afegir un lloc',
'collections.addPlaceSearch': 'Cercar un lloc…',
'collections.addPlaceHint': 'Cerca per afegir un lloc a aquesta llista',
'collections.importFromTrip': 'Importa des d’un viatge',
'collections.importTitle': 'Importa des d’un viatge',
'collections.importDoneTitle': 'Importació acabada',
'collections.importPickTripHint': 'Tria un viatge i porta’n els llocs a {name}.',
'collections.importNoTrips': 'Encara no hi ha viatges',
'collections.importPlacesCount': '{count} llocs',
'collections.importSearchPlaces': 'Cerca llocs…',
'collections.importOnlyNew': 'Només nous',
'collections.importSelectAll': 'Selecciona-ho tot',
'collections.importClearSelection': 'Esborra la selecció',
'collections.importAlreadySaved': 'Ja desat',
'collections.importUnscheduled': 'Sense dia',
'collections.importOnDay': 'Dia {count}',
'collections.importSelectedCount': '{count} seleccionats',
'collections.importAction': 'Importa {count}',
'collections.importEmptyTrip': 'Aquest viatge encara no té llocs',
'collections.importNothingNew': 'Tot aquest viatge ja és en aquesta llista',
'collections.importDone': 'S’han afegit {count} llocs',
'collections.importDoneSkipped': '{count} ja hi eren i s’han deixat igual',
'collections.importDoneClean': 'Ara són tots a {name}',
'collections.sort.default': 'Predeterminat',
'collections.sort.nameAsc': 'Nom (A–Z)',
'collections.coordinates': 'Coordenades',
'collections.showList': 'Mostra la llista',
'collections.expandMap': 'Ampliar el mapa',
'collections.hero.mine': 'La meva col·lecció',
'collections.hero.shared': 'Compartit amb tu',
'collections.hero.all': 'La teva biblioteca',
'collections.title': 'Col·leccions',
'collections.subtitle': 'Els teus llocs desats, organitzats en llistes',
'collections.newList': 'Nova llista',
'collections.create': 'Crear',
'collections.editList': 'Canviar el nom',
'collections.listMenu': 'Opcions de la llista',
'collections.deleteList': 'Eliminar llista',
'collections.deleteListConfirm':
'Això eliminarà permanentment la llista i tots els llocs desats que conté. Aquesta acció no es pot desfer.',
'collections.listName': 'Nom de la llista',
'collections.listNamePlaceholder': 'p. ex. Tòquio 2025',
'collections.listColor': 'Color',
'collections.allSaved': 'Tot el desat',
'collections.shared': 'Compartit',
'collections.empty.title': 'Encara no hi ha llocs',
'collections.empty.text': 'Desa llocs des de qualsevol viatge per crear aquesta llista.',
'collections.empty.noMatchTitle': 'Cap coincidència',
'collections.empty.noMatchText': 'Cap lloc desat coincideix amb el filtre o la cerca.',
'collections.empty.firstTitle': 'Comença la teva primera col·lecció',
'collections.empty.firstText': 'Crea una llista per desar els llocs que vulguis recordar de diferents viatges.',
'collections.view.grid': 'Quadrícula',
'collections.view.list': 'Llista',
'collections.view.map': 'Mapa',
'collections.status.idea': 'Idea',
'collections.status.want': 'Hi vull anar',
'collections.status.visited': 'Visitat',
'collections.status.filterAll': 'Tot',
'collections.status.cycleHint': 'toca per canviar',
'collections.markVisited': 'Marca com a visitat',
'collections.markVisitedAll': 'Visitat pertot',
'collections.markVisitedSelection': 'Marca com a visitat a les teves llistes',
'collections.markVisitedNone': 'Cap d\'aquests llocs no és desat en cap llista',
'collections.markedVisited': 'Marcat com a visitat',
'collections.markedVisitedTrip': '{count} llocs marcats com a visitats',
'collections.copyToTrip': 'Copiar al viatge',
'collections.copyToTripTitle': 'Copiar al viatge',
'collections.copyN': 'Copia {count} al viatge',
'collections.copyToTripSearch': 'Cercar viatges',
'collections.searchLists': 'Cerca llistes',
'collections.copyToTripConfirm': 'Copiar',
'collections.noTrips': 'Encara no hi ha viatges',
'collections.alreadyInTrip': 'Ja es troba en aquest viatge',
'collections.copied': 'Copiat al viatge',
'collections.copiedCount': "S'han copiat {count} llocs",
'collections.skippedDuplicates': "S'han omès {count} duplicats",
'collections.copyNothing': 'Res a copiar',
'collections.removeFromList': 'Eliminar de la llista',
'collections.removeFromListConfirm': 'Vols eliminar aquest lloc de la llista?',
'collections.removeFromCollection': 'Eliminar de la col·lecció',
'collections.saved': 'Desat a {name}',
'collections.savedUndo': 'Desfer',
'collections.viewInCollection': 'Veure',
'collections.duplicateWarning': 'Aquest lloc ja és a la llista',
'collections.search': 'Cercar llocs',
'collections.selectMode': 'Seleccionar',
'collections.selectedCount': '{count} seleccionats',
'collections.pickList': 'Desar a la llista',
'collections.pickListPlaceholder': 'Tria una llista',
'collections.addedToList': 'Afegit a {name}',
'collections.removedFromList': 'Eliminat de {name}',
'collections.inLists': 'A les teves llistes',
'collections.otherLists': 'Afegir a una llista',
'collections.noListsYet': 'Crea una llista primer per poder desar llocs.',
'collections.removedFromAll': 'Eliminat de la col·lecció',
'collections.picker.title': 'Llocs desats',
'collections.picker.showMore': "Mostra'n {count} més",
'collections.picker.search': 'Cerca entre els teus llocs desats',
'collections.picker.empty': 'No hi ha llocs desats per afegir',
'collections.picker.hint': 'Tria un lloc de les teves col·leccions',
'collections.picker.use': 'Utilitza',
// Export / import a list as a file (#2198)
'collections.file.export': 'Exporta',
'collections.file.exportTitle': 'Baixa aquesta llista com a fitxer',
'collections.file.importButton': 'Importa una llista des d’un fitxer',
'collections.file.importTitle': 'Importa una llista',
'collections.file.choose': 'Tria un fitxer de llista',
'collections.file.confirm': 'Importa',
'collections.file.change': 'Canvia',
'collections.file.labelCount': '{count} etiquetes',
'collections.file.hint':
'Els llocs arriben com una llista nova teva. Les valoracions, els membres i les fotos pujades es queden enrere.',
'collections.file.done': '{count} llocs importats',
'collections.file.doneSkipped': '{count} llocs importats, {skipped} omesos',
'collections.file.errorTooLarge': 'Aquest fitxer és massa gran per ser una llista.',
'collections.file.errorUnreadable': 'No s’ha pogut llegir aquest fitxer.',
'collections.file.errorNotACollection': 'Això no és un fitxer de llista del TREK.',
'collections.file.formatTrek': 'Llista del TREK',
'collections.file.formatTrekHint': 'Per a un altre TREK, amb etiquetes i estat',
'collections.file.formatGpxHint': 'Punts de pas per a OsmAnd, Organic Maps, Garmin i altres aplicacions de mapes',
'collections.file.gpxOmitted': '{count} llocs no tenen coordenades i han quedat fora del fitxer GPX',
'collections.file.gpxNothing':
'Cap d’aquests llocs té coordenades, així que no hi ha res per posar en un fitxer GPX.',
'collections.file.reading': 'S’està llegint el fitxer…',
'collections.file.gpxSkipped': 'Es deixen fora {count} punts de pas sense coordenades vàlides.',
'collections.file.gpxTrack':
'Aquest fitxer també té {count} punts de traça. Les traces no s’importen, només els punts de pas.',
'collections.file.gpxEmpty': 'Aquest fitxer GPX no té punts de pas, així que no hi ha res per importar.',
'collections.file.errorNotGpx': 'Això no és un fitxer GPX.',
'collections.file.errorTooManyPlaces':
'Aquest fitxer té més de {count} llocs. Divideix-lo i importa’n les parts d’una en una.',
'collections.share.title': 'Compartir llista',
'collections.share.titleNamed': 'Compartir «{name}»',
'collections.share.button': 'Compartir',
'collections.share.members': 'Membres',
'collections.share.owner': 'Propietari',
'collections.share.you': 'tu',
'collections.share.pending': 'invitació pendent',
'collections.share.accepted': 'acceptada',
'collections.share.invite': 'Convida algú',
'collections.share.inviteUser': 'Selecciona un usuari',
'collections.share.sendInvite': 'Envia la invitació',
'collections.share.inviteHint': 'Les persones convidades poden veure i editar aquesta llista.',
'collections.share.noUsers': 'No hi ha usuaris disponibles per convidar.',
'collections.share.memberHint': 'Només el propietari de la llista pot convidar o eliminar persones.',
'collections.share.cancel': 'Cancellar',
'collections.share.leave': 'Sortir de la llista',
'collections.share.leaveConfirm':
"Vols sortir d'aquesta llista compartida? En perdre el accés, t'hauran de tornar a convidar.",
'collections.share.left': 'Has sortit de la llista',
'collections.share.remove': 'Eliminar',
'collections.invites.title': 'Invitacions',
'collections.invites.from': 'de',
'collections.invites.accept': 'Acceptar',
'collections.invites.decline': 'Rebutjar',
'collections.invites.received': 'Tens una nova invitació a una llista',
'collections.invite.sent': 'Invitació enviada',
'collections.invite.error': "No s'ha pogut enviar la invitació",
'collections.invite.accepted': 'Invitació acceptada',
'collections.invite.declined': 'Invitació rebutjada',
'collections.widget.title': 'Col·leccions',
'collections.widget.empty': 'Encara no hi ha llocs desats',
'collections.widget.savedCount': '{count} desats',
'collections.labels.title': 'Etiquetes',
'collections.labels.manage': 'Gestionar etiquetes',
'collections.labels.add': 'Afegir etiqueta',
'collections.labels.name': "Nom de l'etiqueta",
'collections.labels.namePlaceholder': 'p. ex. Berlín',
'collections.labels.assign': 'Assignar etiqueta',
'collections.labels.assignN': 'Afegir etiquetes a {count} llocs',
'collections.labels.assignedCount': "S'han etiquetat {count} llocs",
'collections.labels.empty': 'Encara no hi ha etiquetes',
'collections.labels.emptyHint': 'Crea primer una etiqueta per agrupar llocs en aquesta llista.',
};
export default collection;