From 43313b1bb2b70fabbaed3a09c0c733fa08920d8a Mon Sep 17 00:00:00 2001 From: Brian Austin Date: Mon, 8 Apr 2024 21:15:25 -0400 Subject: [PATCH] Use full i18n keys due to flash weirdness --- app/controllers/challenge_assignments_controller.rb | 2 +- app/controllers/collection_participants_controller.rb | 2 +- config/locales/controllers/en.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/challenge_assignments_controller.rb b/app/controllers/challenge_assignments_controller.rb index 01b31678704..55555e4705e 100644 --- a/app/controllers/challenge_assignments_controller.rb +++ b/app/controllers/challenge_assignments_controller.rb @@ -33,7 +33,7 @@ def load_assignment_from_id def owner_only return if current_user == @challenge_assignment.offering_pseud.user - flash[:error] = t(".validations.not_owner") + flash[:error] = t("challenge_assignments.validation.not_owner") redirect_to root_path end diff --git a/app/controllers/collection_participants_controller.rb b/app/controllers/collection_participants_controller.rb index c2c359b029d..ed336ee4f31 100644 --- a/app/controllers/collection_participants_controller.rb +++ b/app/controllers/collection_participants_controller.rb @@ -10,7 +10,7 @@ class CollectionParticipantsController < ApplicationController cache_sweeper :collection_sweeper def owners_required - flash[:error] = t(".validation.owners_required") + flash[:error] = t("collection_participants.validation.owners_required") redirect_to collection_participants_path(@collection) false end diff --git a/config/locales/controllers/en.yml b/config/locales/controllers/en.yml index 8f9199138d7..3876113fb30 100644 --- a/config/locales/controllers/en.yml +++ b/config/locales/controllers/en.yml @@ -15,7 +15,7 @@ en: destroy: unblocked: You have unblocked the user %{name}. challenge_assignments: - validations: + validation: not_owner: You aren't the owner of that assignment. chapters: destroy: