Fix translations

This commit is contained in:
2025-10-07 16:43:55 +02:00
parent 37291b2756
commit c66f0122bf
4 changed files with 22 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface
'order' => 7500,
]);
$menu->addChild('ticket.motive.label', [
$menu->addChild('admin.ticket.motive.menu', [
'route' => 'chill_crud_motive_index',
])->setExtras(['order' => 7510]);
}

View File

@@ -1,10 +1,10 @@
{% extends '@ChillMain/Admin/layoutWithVerticalMenu.html.twig' %}
{% block title %}{{ 'ticket.admin.title.Motive list'|trans }}{% endblock title %}
{% block title %}{{ 'admin.motive.list.title'|trans }}{% endblock title %}
{% block admin_content %}
<h1>{{ 'ticket.admin.title.Motive list'|trans }}</h1>
<h1>{{ 'admin.motive.list.title'|trans }}</h1>
<table class="records_list table table-bordered border-dark">
<thead>
@@ -57,7 +57,7 @@
<ul class="record_actions sticky-form-buttons">
<li>
<a href="{{ path('chill_crud_motive_new') }}" class="btn btn-create">
{{ 'ticket.admin.new.Create a new motive'|trans }}
{{ 'admin.motive.new.title'|trans }}
</a>
</li>
</ul>

View File

@@ -1,10 +1,10 @@
{% extends '@ChillMain/Admin/layoutWithVerticalMenu.html.twig' %}
{% block title %}{{ 'ticket.admin.title.Motive view'|trans }}{% endblock title %}
{% block title %}{{ 'admin.motive.view.title'|trans }}{% endblock title %}
{% block admin_content %}
<h1>{{ 'ticket.admin.title.Motive view'|trans }}</h1>
<h1>{{ 'admin.motive.view.title'|trans }}</h1>
<table class="record_properties table table-bordered">
<tbody>

View File

@@ -149,15 +149,22 @@ chill_ticket:
iframe_not_supported: "Votre navigateur ne supporte pas les iframes."
click_to_open_pdf: "Cliquez ici pour ouvrir le PDF"
ticket:
admin:
title:
"Motive list": "Liste des motifs"
"Motive view": "Détails du motif"
new:
"Create a new motive": "Créer un nouveau motif"
motive:
label: "Motifs"
admin:
ticket:
motive:
menu: Motifs
motive:
list:
title: Liste des motifs
view:
title: Le motif
new:
title: Créer un motif
crud:
motive:
title_edit: Modifier le motif
new:
"Create a new motive": "Créer un nouveau motif"
"Label": "Libellé"
"Active": "Actif"