ldc-boutique-cnc-sable/lang/en/crud.php
Jérémy Munsch 7a5c91e55e
refactor(crud): simplify no results messages in views
Updated no results messages to remove model references for consistency across various views.
2026-10-28 13:04:46 +01:00

128 lines
5.9 KiB
PHP

<?php
declare(strict_types=1);
return [
'actions' => [
'list' => 'list',
'view' => 'view',
'create' => 'create',
'duplicate' => 'duplicate',
'update' => 'edit',
'delete' => 'delete',
'save' => 'save',
'edit' => 'update',
],
'helpers' => [
'list' => 'List',
'view_associated' => 'View related :model',
'list_all' => 'List all :model',
'create_model' => 'Create :model',
'view_model' => 'View :model',
'associate_model' => 'Associate :model',
'update_model' => 'Edit :model',
'duplicate_model' => 'Duplicate :model',
'delete_model' => 'Delete :model',
'save_model' => 'Save :model',
'edit_model' => 'Update :model',
'no_results' => 'No results',
'no_results_for_model' => 'No results for :model',
'publish' => 'Publish',
'unpublish' => 'Unpublish',
'starred' => 'Highlighted',
'discounted' => 'On sale',
'star' => 'Highlight',
'unstar' => 'Do not highlight',
'seo_title' => 'Must accurately describe the page, recommendation for optimal search engine positioning (<title> tag).',
'seo_description' => 'Must accurately describe the content of the page (<meta> description tag).',
'required_fields' => 'Required fields',
'required_fields_with_aster' => 'Fields followed by an asterisk are required',
'visibility_with_dates' => 'This field only takes effect if no dates are set.',
'publish_at' => ':model will be published starting from this date.',
'unpublish_at' => ':model will be unpublished starting from this date.',
'nutritionnal_values' => 'Values must be entered in grams, except for energy in kJ and kcal.',
'new_tab_boolean' => 'Check to open in a new tab.',
'game_text' => 'Must contain at least 15 characters and at most 32 words.',
'url' => 'Must be a valid URL.',
'year' => 'Year of the :model',
],
'labels' => [
'new_tab_boolean' => 'Open in a new tab?',
],
'libs' => [
'toolbox' => [
'assertFieldIsUnique' => 'The :valeur of the field :attribut is already used',
'assertNoInternalBoUrls' => ':attribute: It is forbidden to paste back-office uri in this field',
'assertNoInternalUrls' => ':attribute: It is forbidden to paste a :appname url in this field.',
],
],
'messages' => [
'action_done' => 'The action was performed',
'has_been_created' => ':model has been created',
'cannot_be_created' => ':model cannot be created',
'has_been_updated' => ':model has been updated',
'cannot_be_updated' => ':model cannot be updated',
'has_been_deleted' => ':model has been deleted',
'cannot_be_deleted' => ':model cannot be deleted',
'order_changed' => 'The order has been changed!',
'order_not_changed' => 'The order was not changed!',
'publish_status_saved' => 'Publication status changed successfully!',
'star_saved' => 'Highlight status changed successfully!',
'right' => 'You do not have permission to access this section!',
'theme_updated' => 'The theme has been updated!',
],
'minicrud' => [
'visibility_label' => 'Visibility',
'visibility_helper' => 'Check to make visible.',
'select' => 'Select :entity from the list.',
'associated_enum' => 'Associated :entity',
'dimensions_must_be' => 'Must be :widthpx (width) by :heightpx (height).',
'picture_title_helper' => 'Useful for users, appears when hovering over the image',
'picture_title_label' => 'Image title attribute',
'picture_alt_helper' => 'Must describe your image for search engines and visually impaired users (5 to 6 words)',
'picture_alt_label' => 'Image alt attribute',
'text_warning' => 'Review your content before publishing.',
],
'pagination' => [
'previous' => 'Previous page',
'next' => 'Next page',
'specific_page' => 'Go to page #:id',
'paginate_list' => 'Number of items per page',
],
'other' => [
'up' => 'Move display order up',
'down' => 'Move display order down',
'no_model_found' => 'No :model found',
'publish' => 'Published',
'unpublish' => 'Unpublished',
'search_start' => 'Start search',
'search_delete' => 'Clear search',
'search_placeholder' => 'Your keywords here...',
'sort_ascending' => 'Sort :name in ascending order',
'sort_descending' => 'Sort :name in descending order',
'sort_delete' => 'Clear sort',
'sort_arrow' => 'Here, arrows are used for sorting, not filtering',
'right' => 'You do not have permissions',
],
'meta' => [
'title' => [
'create' => 'Create a :model',
'edit' => 'Edit a :model',
'show' => 'View a :model',
],
'description' => [
'index' => 'List of all :model',
'create' => 'Create a brand new :model',
'edit' => 'Edit an existing :model',
'show' => 'View an existing :model',
],
],
];