Skip to content

Commit a208b74

Browse files
committed
Fix incorrect translation flash message keys
1 parent d70752b commit a208b74

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Controller/Collections/AddPuzzleToCollectionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function __invoke(
183183
}
184184

185185
// Non-Turbo request: redirect with flash message
186-
$this->addFlash('success', $this->translator->trans('collections.puzzle_added'));
186+
$this->addFlash('success', $this->translator->trans('collections.flash.puzzle_added'));
187187

188188
return $this->redirectToRoute('puzzle_detail', ['puzzleId' => $puzzleId]);
189189
}

src/Controller/Collections/RemovePuzzleFromCollectionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function __invoke(
155155
}
156156

157157
// Non-Turbo request: redirect with flash message
158-
$this->addFlash('success', $this->translator->trans('collections.puzzle_removed'));
158+
$this->addFlash('success', $this->translator->trans('collections.flash.puzzle_removed'));
159159

160160
return $this->redirectToRoute('puzzle_detail', ['puzzleId' => $puzzleId]);
161161
}

src/Controller/CreateCollectionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __invoke(Request $request, #[CurrentUser] User $user): Response
5555

5656
// Check if user has active membership to create collections
5757
if ($player->activeMembership === false) {
58-
$this->addFlash('info', $this->translator->trans('collections.membership_required'));
58+
$this->addFlash('info', $this->translator->trans('collections.flash.membership_required'));
5959

6060
return $this->redirectToRoute('puzzle_library', ['playerId' => $player->playerId]);
6161
}

src/Controller/EditCollectionItemCommentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __invoke(Request $request, #[CurrentUser] User $user, string $co
7373
),
7474
);
7575

76-
$this->addFlash('success', $this->translator->trans('collections.comment_updated'));
76+
$this->addFlash('success', $this->translator->trans('collections.flash.comment_updated'));
7777

7878
// Redirect back to collection detail or system collection
7979
if ($collectionItem->collection !== null) {

0 commit comments

Comments
 (0)