mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +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.
190 lines
12 KiB
TypeScript
190 lines
12 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const dawarich: TranslationStrings = {
|
||
// ── Connection ─────────────────────────────────────────────────────────────
|
||
'dawarich.title': 'Dawarich',
|
||
'dawarich.intro':
|
||
'Connecta la teva pròpia instància de Dawarich per veure on has estat realment. TREK la llegeix i et proposa entrades de diari, llocs i països — no s’hi afegeix res fins que ho confirmes, i no s’escriu res de tornada a Dawarich.',
|
||
'dawarich.url': 'Adreça de la instància',
|
||
'dawarich.apiKey': 'Clau API',
|
||
'dawarich.apiKeyPlaceholder': 'Enganxa la teva clau API de Dawarich',
|
||
'dawarich.apiKeyHint': 'La trobaràs a Dawarich sota Compte → Clau API. Es desa xifrada i no es torna a mostrar mai.',
|
||
'dawarich.allowInsecureTls': 'Permet un certificat autosignat',
|
||
'dawarich.allowInsecureTlsHint':
|
||
'Només cal si la teva instància fa servir un certificat en què el teu servidor no confia.',
|
||
'dawarich.syncEnabled': 'Comprova automàticament si hi ha estades noves',
|
||
'dawarich.syncEnabledHint': 'Desactivat vol dir que TREK només llegeix Dawarich quan tu l’hi demanes.',
|
||
'dawarich.test.button': 'Prova la connexió',
|
||
'dawarich.test.success': 'Connectat. S’han trobat {count} estades en els darrers 30 dies.',
|
||
'dawarich.test.success.one': 'Connectat. S’ha trobat {count} estada en els darrers 30 dies.',
|
||
'dawarich.test.failed': 'No s’ha pogut contactar amb Dawarich.',
|
||
'dawarich.syncNow': 'Comprova-ho ara',
|
||
'dawarich.connected': 'Connectat',
|
||
'dawarich.notConnected': 'No connectat',
|
||
'dawarich.disconnect': 'Desconnecta',
|
||
'dawarich.lastSync': 'Darrera comprovació {when}',
|
||
'dawarich.neverSynced': 'Encara no s’ha comprovat',
|
||
'dawarich.syncPartial': 'alguns viatges no s’han pogut llegir',
|
||
'dawarich.serverVersion': 'Dawarich {version}',
|
||
|
||
'dawarich.toast.saved': 'S’ha desat la connexió amb Dawarich',
|
||
'dawarich.toast.saveError': 'No s’ha pogut desar la connexió',
|
||
'dawarich.toast.disconnected': 'Dawarich desconnectat',
|
||
'dawarich.toast.synced': 'S’han trobat {count} estades noves',
|
||
'dawarich.toast.synced.one': 'S’ha trobat {count} estada nova',
|
||
'dawarich.toast.syncError': 'No s’ha pogut llegir Dawarich',
|
||
'dawarich.toast.syncRunning': 'Ja hi ha una comprovació en curs',
|
||
'dawarich.toast.acceptError': 'No s’ha pogut afegir això',
|
||
'dawarich.toast.updateError': 'No s’ha pogut actualitzar aquest suggeriment',
|
||
'dawarich.toast.accepted.place': 'Afegit al viatge',
|
||
'dawarich.toast.accepted.journal': 'Afegit al diari',
|
||
'dawarich.toast.accepted.bucket_list': 'Marcat a la teva llista de desitjos',
|
||
|
||
// ── What the connected instance can do ─────────────────────────────────────
|
||
'dawarich.capability.visits': 'estades',
|
||
'dawarich.capability.track': 'recorregut enregistrat',
|
||
'dawarich.capability.locations': 'coincidències amb la llista de desitjos',
|
||
'dawarich.capability.visitedCities': 'països i ciutats',
|
||
'dawarich.capability.missing': 'Aquesta versió de Dawarich no ofereix: {features}.',
|
||
|
||
// ── Failure reasons, as sentences the reader can act on ────────────────────
|
||
'dawarich.error.unreachable': 'TREK no ha pogut contactar amb aquesta adreça.',
|
||
'dawarich.error.unauthorized': 'Dawarich ha rebutjat la clau API.',
|
||
'dawarich.error.forbidden': 'Aquesta clau API no té permís per llegir això.',
|
||
'dawarich.error.not_found': 'Aquesta versió de Dawarich no té aquest punt final.',
|
||
'dawarich.error.rate_limited': 'Dawarich ha demanat a TREK que vagi més a poc a poc. Torna-ho a provar d’aquí a poc.',
|
||
'dawarich.error.server_error': 'Dawarich ha respost amb un error.',
|
||
'dawarich.error.invalid_response': 'Aquesta adreça ha respost amb una cosa que no és Dawarich.',
|
||
'dawarich.error.too_large': 'Dawarich ha enviat més dades de les que TREK llegeix de cop.',
|
||
'dawarich.error.not_connected': 'Encara no hi ha cap instància de Dawarich connectada.',
|
||
'dawarich.error.addon_disabled': 'El complement Dawarich està desactivat en aquesta instància.',
|
||
'dawarich.error.offline': 'Això necessita connexió: TREK ara és fora de línia.',
|
||
'dawarich.error.invalid_url': 'TREK no pot fer servir aquesta adreça.',
|
||
'dawarich.warning.private_ip': 'Aquesta adreça apunta a una IP privada ({ip}). Comprova que és el que volies: el servidor pot necessitar ALLOW_INTERNAL_NETWORK=true per arribar-hi.',
|
||
'dawarich.error.unknown': 'Alguna cosa ha anat malament en parlar amb Dawarich.',
|
||
|
||
// ── The recorded route on the map ──────────────────────────────────────────
|
||
'dawarich.trail.show': 'Mostra el recorregut enregistrat',
|
||
'dawarich.trail.hide': 'Amaga el recorregut enregistrat',
|
||
'dawarich.trail.loading': 'S’està carregant el recorregut enregistrat…',
|
||
'dawarich.trail.empty': 'No s’ha enregistrat res en aquestes dates',
|
||
'dawarich.trail.offline': 'El recorregut enregistrat necessita connexió',
|
||
'dawarich.trail.unavailable': 'No s’ha pogut carregar el recorregut enregistrat',
|
||
|
||
// ── Suggestions ────────────────────────────────────────────────────────────
|
||
'dawarich.duration.minutes': '{minutes} min',
|
||
'dawarich.duration.hours': '{hours} h',
|
||
'dawarich.duration.hoursMinutes': '{hours} h {minutes} min',
|
||
'dawarich.checkedAgo': 'comprovat {ago}',
|
||
|
||
'dawarich.badge.lowConfidence': 'Incert',
|
||
'dawarich.badge.sourceChanged': 'Canviat a Dawarich',
|
||
'dawarich.badge.sourceMissing': 'Ja no hi és a Dawarich',
|
||
|
||
'dawarich.suggestions.title': 'Des de Dawarich',
|
||
'dawarich.suggestions.pending': '{count} pendents',
|
||
'dawarich.suggestions.pending.one': '{count} pendent',
|
||
'dawarich.suggestions.loading': 'S’està llegint Dawarich…',
|
||
'dawarich.suggestions.notConnected': 'Connecta Dawarich a la configuració per veure aquí les teves estades.',
|
||
'dawarich.suggestions.unavailable': 'No s’ha pogut llegir Dawarich.',
|
||
'dawarich.suggestions.allHandled': 'Ja has resolt tot el que s’ha enregistrat aquí.',
|
||
'dawarich.suggestions.asJournal': 'Escriu una entrada de diari',
|
||
'dawarich.suggestions.asPlace': 'Afegeix-ho com a lloc',
|
||
'dawarich.suggestions.dismiss': 'No és un lloc que hagi visitat',
|
||
'dawarich.suggestions.dismissed': 'Descartat',
|
||
'dawarich.suggestions.restore': 'Torna-ho a posar',
|
||
'dawarich.suggestions.showHandled': 'Mostra’n {count} de ja resolts',
|
||
'dawarich.suggestions.hideHandled': 'Amaga els que ja estan resolts',
|
||
'dawarich.suggestions.matchesWish': 'A la teva llista de desitjos: {name}',
|
||
'dawarich.suggestions.acceptedAs.place': 'Afegit com a lloc',
|
||
'dawarich.suggestions.acceptedAs.journal': 'Al diari',
|
||
'dawarich.suggestions.acceptedAs.bucket_list': 'Desig marcat',
|
||
'dawarich.suggestions.sourceChanged':
|
||
'Aquesta estada ha canviat a Dawarich des que la vas fer servir. El que has escrit a TREK no s’ha tocat.',
|
||
'dawarich.suggestions.sourceMissing':
|
||
'Aquesta estada ja no existeix a Dawarich. El que has escrit a TREK no s’ha tocat.',
|
||
'dawarich.sourceStatus.suggested': 'Detectat, sense confirmar',
|
||
'dawarich.confidence.high': 'Detecció segura',
|
||
'dawarich.confidence.medium': 'Detecció força segura',
|
||
'dawarich.confidence.low': 'Detecció incerta',
|
||
|
||
// ── The review step ────────────────────────────────────────────────────────
|
||
'dawarich.accept.title.place': 'Afegeix aquesta estada com a lloc',
|
||
'dawarich.accept.title.journal': 'Escriu una entrada de diari',
|
||
'dawarich.accept.title.bucket_list': 'Marca un desig',
|
||
'dawarich.accept.confirm.place': 'Afegeix el lloc',
|
||
'dawarich.accept.confirm.journal': 'Afegeix l’entrada',
|
||
'dawarich.accept.confirm.bucket_list': 'Marca’l',
|
||
'dawarich.accept.recorded': 'Enregistrat des de {from} fins a {to}',
|
||
'dawarich.accept.duration': '{minutes} min',
|
||
'dawarich.accept.name': 'Nom',
|
||
'dawarich.accept.date': 'Data',
|
||
'dawarich.accept.from': 'Arribada',
|
||
'dawarich.accept.to': 'Sortida',
|
||
'dawarich.accept.trip': 'Viatge',
|
||
'dawarich.accept.thisTrip': 'Aquest viatge',
|
||
'dawarich.accept.pickTrip': 'Tria un viatge',
|
||
'dawarich.accept.day': 'Dia',
|
||
'dawarich.accept.noDay': 'Encara no és en cap dia',
|
||
'dawarich.accept.journal': 'Diari',
|
||
'dawarich.accept.pickJournal': 'Tria un diari',
|
||
'dawarich.accept.notes': 'Notes',
|
||
'dawarich.accept.story': 'La teva història',
|
||
'dawarich.accept.storyPlaceholder': 'Què va passar aquí?',
|
||
'dawarich.accept.photosHint': 'Afegeix fotos a l’entrada un cop creada.',
|
||
|
||
// ── A place that came out of a recording ──────────────────────────────────
|
||
'dawarich.place.fromDawarich': 'Afegit des dels teus registres de Dawarich',
|
||
|
||
// ── Wishlist ───────────────────────────────────────────────────────────────
|
||
'dawarich.bucket.title': 'Comprova la teva llista de desitjos amb Dawarich',
|
||
'dawarich.bucket.description':
|
||
'Busca als teus enregistraments els llocs on volies arribar. Una visita necessita tant proximitat com temps d’estada — passar-hi de llarg no compta.',
|
||
'dawarich.bucket.scan': 'Comprova la llista de desitjos',
|
||
'dawarich.bucket.scanning': 'S’està comprovant…',
|
||
'dawarich.bucket.noMatches': 'No ha aparegut res de la teva llista de desitjos als teus enregistraments.',
|
||
'dawarich.bucket.alreadyVisited': 'Ja marcat',
|
||
'dawarich.bucket.confirm': 'Marca’n {count}',
|
||
'dawarich.bucket.confirmed': '{count} desitjos marcats',
|
||
'dawarich.bucket.confirmed.one': '{count} desig marcat',
|
||
'dawarich.bucket.skipped': '{count} entrades no tenen coordenades i no s’han pogut comprovar.',
|
||
'dawarich.bucket.skipped.one': '{count} entrada no té coordenades i no s’ha pogut comprovar.',
|
||
'dawarich.bucket.truncated': 'Només s’han comprovat les primeres entrades. Torna-ho a executar per a la resta.',
|
||
'dawarich.bucket.visitedFrom': 'Marcat a partir dels teus enregistraments de Dawarich',
|
||
'dawarich.bucket.clearVisit': 'Desfés',
|
||
|
||
// ── Atlas ──────────────────────────────────────────────────────────────────
|
||
'dawarich.atlas.title': 'Països des de Dawarich',
|
||
'dawarich.atlas.description':
|
||
'Països on els teus enregistraments diuen que has estat. Confirma els que vulguis al teu Atles — no s’hi afegeix res tot sol, i el que has marcat a mà continua sent teu.',
|
||
'dawarich.atlas.load': 'Busca països',
|
||
'dawarich.atlas.loading': 'S’estan llegint els teus enregistraments…',
|
||
'dawarich.atlas.empty': 'Els teus enregistraments no mostren cap país que TREK no tingui ja.',
|
||
'dawarich.atlas.cities': '{count} ciutats',
|
||
'dawarich.atlas.cities.one': '{count} ciutat',
|
||
'dawarich.atlas.accept': 'Afegeix {count} països',
|
||
'dawarich.atlas.accept.one': 'Afegeix {count} país',
|
||
'dawarich.atlas.accepted': '{count} països afegits',
|
||
'dawarich.atlas.accepted.one': '{count} país afegit',
|
||
'dawarich.atlas.unresolved': 'TREK no ha pogut associar això a cap país: {names}.',
|
||
'dawarich.atlas.source': 'Des de Dawarich',
|
||
'dawarich.atlas.range': 'S’ha mirat de {from} a {to}',
|
||
|
||
'dawarich.atlas.trigger': 'Desitjos i països dels teus registres',
|
||
'dawarich.atlas.dialogSubtitle': 'Què diuen els teus registres sobre el teu Atles',
|
||
'dawarich.atlas.tab.wishes': 'Llista de desitjos',
|
||
'dawarich.atlas.tab.countries': 'Països',
|
||
'dawarich.atlas.window': 'S’han revisat els darrers 12 mesos.',
|
||
'dawarich.selected': '{count} seleccionats',
|
||
'dawarich.selected.one': '{count} seleccionat',
|
||
'dawarich.again': 'Tornar a comprovar',
|
||
'dawarich.bucket.metersAway': 'a {meters} m',
|
||
'dawarich.bucket.kilometersAway': 'a {km} km',
|
||
'dawarich.bucket.rule': 'Un desig es considera assolit a menys de {meters} m i després de {minutes} minuts al lloc.',
|
||
'dawarich.journey.dayStays.other': '{count} estades de Dawarich',
|
||
'dawarich.journey.dayStays.one': '{count} estada de Dawarich',
|
||
|
||
};
|
||
|
||
export default dawarich;
|