Skip to content

Commit

Permalink
Fixed translations of latest console actions on dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Oct 17, 2023
1 parent 68d4bad commit 32123ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/ActionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function action(Request $request): Response

// On définit le nom de la commande si elle a été trouvée, sinon
// on indique qu'il s'agit d'une commande issue de la console interactive.
$action = $command ?? $this->translator->trans("header.subtitle.console");
$action = $command ?? "console";

$this->serverManager->query->Rcon($command ? ($command->getContent() . " \"$value\"") : $value);

Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@

{# Titre de l'action #}
{% set console = t("header.subtitle.console")|trans %}
<em>{{ logs.action == console ? console : t("global." ~ logs.action)|trans|default(logs.action|capitalize) }}</em>
<em>{{ logs.action == "console" ? console : t("global." ~ logs.action)|trans|default(logs.action|capitalize) }}</em>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 32123ca

Please sign in to comment.