Files
landing-api/lang/ca/rules.php
Josep Piguillem d30dd971d7
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / test-postgres (push) Has been cancelled
Tests / mcp (push) Has been cancelled
Open a TaskStream board when a project is created through the API
`taskstream: true` on POST /v1/projects also creates the project in
TaskStream, public, as the caller (their Pireon token is passed on), and
the answer carries `taskstream_key` and `taskstream_url`. The key is
`taskstream_key` or one made from the default-language slug.

The board is opened before the project is saved: if TaskStream refuses
it, nothing is created here and the reason comes back as a validation
error (502 when TaskStream does not answer). Machine tokens need the
server's own TASKSTREAM_TOKEN. Updates ignore the flag, and duplicates do
not inherit the link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:12:36 +02:00

86 lines
3.5 KiB
PHP

<?php
declare(strict_types=1);
return [
'translatable' => [
'type' => 'El camp :attribute ha de ser un text o un objecte de traduccions (idioma => text).',
'unsupported_locale' => 'L\'idioma «:locale» no està suportat a :attribute. Idiomes disponibles: :supported.',
'max' => 'La traducció de :attribute en «:locale» no pot superar els :max caràcters.',
'default_required' => 'Falta la traducció de :attribute en l\'idioma principal («:locale»).',
],
'slug' => [
'unique' => 'El slug «:slug» ja està en ús en l\'idioma «:locale».',
],
'applications' => [
'attributes' => [
'name' => 'nom',
'email' => 'correu',
'message' => 'missatge',
'organisation' => 'entitat',
'hours_per_week' => 'hores per setmana',
'consent' => 'consentiment',
],
],
'pages' => [
'cannot_publish' => 'No tens permís per publicar pàgines.',
],
'revisions' => [
'nothing_to_restore' => 'Aquesta revisió no té canvis per desfer.',
],
'reviews' => [
'not_requestable' => 'Ja està esperant revisió o ja està publicat.',
'not_a_reviewer' => 'Aquesta persona no pot publicar això, així que no ho pot revisar.',
'not_awaiting' => 'No està esperant revisió.',
],
'batch' => [
'path' => 'Només operacions de l\'API d\'administració (/v1/…), sense lots niats ni importacions.',
'too_many' => 'Com a molt :max files per importació.',
],
'webhooks' => [
'event' => '«:event» no és un esdeveniment al qual subscriure\'s.',
],
'taskstream' => [
'machine' => 'TaskStream només entén tokens de Pireon: entra amb un, o configura TASKSTREAM_TOKEN per als tokens de màquina.',
'key_needed' => 'No es pot treure una clau de l\'slug: indica\'n una a «taskstream_key» (de 2 a 10 lletres o xifres, començant per lletra).',
'refused' => 'TaskStream no ha creat el projecte: :reason',
'unauthorised' => 'TaskStream ha rebutjat el token: potser ha caducat o no hi té accés.',
'unavailable' => 'TaskStream no respon ara mateix; no s\'ha creat res, torna-ho a provar d\'aquí a una estona.',
],
'tokens' => [
'ability' => '«:ability» no és un permís que tinguis, així que un token teu no el pot tenir.',
'machine' => 'Els tokens els gestiona una persona, no un altre token.',
],
'settings' => [
'read_only' => 'Aquest ajust l\'escriu l\'aplicació i no es pot editar a mà.',
],
'publication' => [
'forbidden' => 'No tens permís per publicar ni despublicar això.',
],
'media' => [
'in_use' => 'La imatge s\'està fent servir: treu-la primer d\'on apareix.',
'not_an_image' => 'El fitxer no és una imatge JPEG, PNG, WebP, GIF, AVIF o SVG.',
'remote' => [
'https_only' => 'La URL de la imatge ha de començar per https://.',
'unresolvable' => 'No s\'ha pogut resoldre el domini de la URL.',
'private' => 'La URL apunta a una adreça privada o reservada: només es descarreguen imatges d\'adreces públiques.',
'unreachable' => 'No s\'ha pogut connectar amb la URL.',
'redirect' => 'La URL redirigeix a una altra adreça. Fes servir l\'adreça final de la imatge.',
'status' => 'La URL ha respost :status en lloc de la imatge.',
'too_large' => 'La imatge supera el màxim de :max KB.',
],
],
];