Files
landing-api/lang/es/rules.php
Josep Piguillem 82ef2b38dd
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
Manage projects, members and services through the API
/api/v1/projects, /members and /services: create, list, show, update,
delete and restore, with the panel's own rules — so the MCP server can
load the collective's work, people and offer without anyone retyping
them into forms. The MCP server picks the tools up from openapi.yaml.

- Relations travel as ids and are replaced whole when sent, left alone
  when not: a project's technology_ids, service_ids and members with
  each one's role; a member's technology_ids; a service's
  technology_ids and project_ids. Record and relations are saved in
  one transaction.
- Publishing stays a permission of its own. Without projects.publish
  or services.publish, published_at, unpublish_at and is_published are
  refused — the fields the panel disables for the same people.
- MemberPolicy still lets someone edit their own profile.
- Uploads accept `for: projects` and `for: members`, landing where the
  panel's own upload fields put them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:07:20 +02:00

49 lines
1.9 KiB
PHP

<?php
declare(strict_types=1);
return [
'translatable' => [
'type' => 'El campo :attribute debe ser un texto o un objeto de traducciones (idioma => texto).',
'unsupported_locale' => 'El idioma «:locale» no está soportado en :attribute. Idiomas disponibles: :supported.',
'max' => 'La traducción de :attribute en «:locale» no puede superar los :max caracteres.',
'default_required' => 'Falta la traducción de :attribute en el idioma principal («:locale»).',
],
'slug' => [
'unique' => 'El slug «:slug» ya está en uso en el idioma «:locale».',
],
'applications' => [
'attributes' => [
'name' => 'nombre',
'email' => 'email',
'message' => 'mensaje',
'organisation' => 'entidad',
'hours_per_week' => 'horas por semana',
'consent' => 'consentimiento',
],
],
'pages' => [
'cannot_publish' => 'No tienes permiso para publicar páginas.',
],
'publication' => [
'forbidden' => 'No tienes permiso para publicar ni despublicar esto.',
],
'media' => [
'not_an_image' => 'El fichero no es una imagen JPEG, PNG, WebP, GIF, AVIF o SVG.',
'remote' => [
'https_only' => 'La URL de la imagen tiene que empezar por https://.',
'unresolvable' => 'No se ha podido resolver el dominio de la URL.',
'private' => 'La URL apunta a una dirección privada o reservada: solo se descargan imágenes de direcciones públicas.',
'unreachable' => 'No se ha podido conectar con la URL.',
'redirect' => 'La URL redirige a otra dirección. Usa la dirección final de la imagen.',
'status' => 'La URL ha respondido :status en lugar de la imagen.',
'too_large' => 'La imagen supera el máximo de :max KB.',
],
],
];