Files
landing-api/lang/en/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.8 KiB
PHP

<?php
declare(strict_types=1);
return [
'translatable' => [
'type' => 'The :attribute field must be a string or a translations object (locale => text).',
'unsupported_locale' => 'The locale ":locale" is not supported for :attribute. Available locales: :supported.',
'max' => 'The ":locale" translation of :attribute may not be longer than :max characters.',
'default_required' => 'The :attribute is missing a translation for the primary locale (":locale").',
],
'slug' => [
'unique' => 'The slug ":slug" is already in use for the ":locale" locale.',
],
'applications' => [
'attributes' => [
'name' => 'name',
'email' => 'e-mail',
'message' => 'message',
'organisation' => 'organisation',
'hours_per_week' => 'hours per week',
'consent' => 'consent',
],
],
'pages' => [
'cannot_publish' => 'You do not have permission to publish pages.',
],
'publication' => [
'forbidden' => 'You do not have permission to publish or unpublish this.',
],
'media' => [
'not_an_image' => 'The file is not a JPEG, PNG, WebP, GIF, AVIF or SVG image.',
'remote' => [
'https_only' => 'The image URL must start with https://.',
'unresolvable' => 'The URL\'s domain could not be resolved.',
'private' => 'The URL points at a private or reserved address: images are only downloaded from public ones.',
'unreachable' => 'Could not connect to the URL.',
'redirect' => 'The URL redirects elsewhere. Use the image\'s final address.',
'status' => 'The URL answered :status instead of the image.',
'too_large' => 'The image is larger than the :max KB limit.',
],
],
];