A token acts as the person who made it, within the permissions it was given and those they still hold, checked on every request. Permission checks now go through one gate rule, since spatie's answered first and never asked the token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74 lines
2.8 KiB
PHP
74 lines
2.8 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ó.',
|
|
],
|
|
|
|
'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.',
|
|
],
|
|
],
|
|
];
|