fix: 🐛 change typo for labels and product type in sidemenu bo

This commit is contained in:
Nicolas Demangeat 2024-09-19 12:05:45 +02:00
parent c8a1af5833
commit 442e87ae79
5 changed files with 12 additions and 12 deletions

View file

@ -17,13 +17,13 @@ return [
'approach' => 'approach|approaches',
'meat' => 'meat',
'submeat' => 'submeat',
'label' => 'label',
'label' => 'Certification badge',
'demarche' => 'demarche',
'consumption_moment' => 'consumption moment',
'video' => 'video',
'product' => 'product',
'recipe' => 'recipe',
'product_type' => 'product type|product types',
'product_type' => 'Promotional message|Promotional messages',
'claim' => 'claim',
'historical_milestone' => 'historical milestone|historical milestones',
'offer' => 'offer',

View file

@ -17,13 +17,13 @@ return [
'approach' => 'approche|approches',
'meat' => 'viande',
'submeat' => 'sous-viande',
'label' => 'label',
'label' => 'Badge de certification',
'demarche' => 'démarche',
'consumption_moment' => 'moment de consommation|moments de consommation',
'video' => 'vidéo',
'product' => 'produit',
'recipe' => 'recette',
'product_type' => 'type de produit|types de produit',
'product_type' => 'Message promotionnel|Messages promotionnel',
'claim' => 'allégations',
'historical_milestone' => 'jalon historique|jalons historique',
'offer' => 'offre',

View file

@ -779,7 +779,7 @@
$approachType ===
\App\Enums\Approaches\ApproachTypeEnum::label->value(),
])></i>
{{ str(__('labels'))->ucFirst() }}
{{ str(__('Badge de certification'))->ucFirst() }}
</a>
</li>
</ul>

View file

@ -1,6 +1,6 @@
@php
$inter = $condition ? __('validation.custom.of_the.female') : __('validation.custom.of_the.male');
$model = $condition ? __('validation.custom.demarche') : __('validation.custom.label');
$model = $condition ? __('models.classes.demarche') : __('models.classes.label');
@endphp
<div class="row">
{{-- NAME --}}
@ -82,7 +82,7 @@
'id' => 'approachPictureAlt',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => str(__('validation.custom.attribute_alt'))->ucfirst(),
'inter1' => __('validation.custom.of_the.male'),
'inter1' => __('validation.custom.of_the.vowel'),
'field2' => __('validation.attributes.image'),
'inter2' => $inter,
'model' => $model,
@ -94,7 +94,7 @@
'helper' => __('crud.minicrud.picture_alt_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => str(__('validation.custom.attribute_alt'))->ucfirst(),
'inter1' => __('validation.custom.of_the.male'),
'inter1' => __('validation.custom.of_the.vowel'),
'field2' => __('validation.attributes.image'),
'inter2' => $inter,
'model' => $model,
@ -107,7 +107,7 @@
'id' => 'approachPictureTitle',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => str(__('validation.custom.attribute_title'))->ucfirst(),
'inter1' => __('validation.custom.of_the.male'),
'inter1' => __('validation.custom.of_the.vowel'),
'field2' => __('validation.attributes.image'),
'inter2' => $inter,
'model' => $model,
@ -119,7 +119,7 @@
'helper' => __('crud.minicrud.picture_title_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => str(__('validation.custom.attribute_title'))->ucfirst(),
'inter1' => __('validation.custom.of_the.male'),
'inter1' => __('validation.custom.of_the.vowel'),
'field2' => __('validation.attributes.image'),
'inter2' => $inter,
'model' => $model,

View file

@ -406,8 +406,8 @@ Breadcrumbs::for('bo.claims.duplicate', function (Generator $trail) {
Breadcrumbs::for('bo.approaches.index', function (Generator $trail, int $approach_type) {
$trail->push(
Str::of($approach_type === ApproachTypeEnum::label->value()
? trans('validation.custom.label')
: trans('validation.custom.demarche'))->plural()->ucFirst(),
? trans('models.classes.label')
: trans('models.classes.demarche'))->plural()->ucFirst(),
route('bo.approaches.index', ['approach_type' => $approach_type])
);
});