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, 'order' => 7500,
]); ]);
$menu->addChild('ticket.motive.label', [ $menu->addChild('admin.ticket.motive.menu', [
'route' => 'chill_crud_motive_index', 'route' => 'chill_crud_motive_index',
])->setExtras(['order' => 7510]); ])->setExtras(['order' => 7510]);
} }

View File

@@ -1,10 +1,10 @@
{% extends '@ChillMain/Admin/layoutWithVerticalMenu.html.twig' %} {% 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 %} {% 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"> <table class="records_list table table-bordered border-dark">
<thead> <thead>
@@ -57,7 +57,7 @@
<ul class="record_actions sticky-form-buttons"> <ul class="record_actions sticky-form-buttons">
<li> <li>
<a href="{{ path('chill_crud_motive_new') }}" class="btn btn-create"> <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> </a>
</li> </li>
</ul> </ul>

View File

@@ -1,10 +1,10 @@
{% extends '@ChillMain/Admin/layoutWithVerticalMenu.html.twig' %} {% 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 %} {% 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"> <table class="record_properties table table-bordered">
<tbody> <tbody>

View File

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