From baace1fa5df46694ddd515dc3bbca59b22df8692 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 03:51:44 +0200 Subject: Extract flashes to i18n and stop dispatching on submit labels --- app/controllers/occurrences_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/occurrences_controller.rb') diff --git a/app/controllers/occurrences_controller.rb b/app/controllers/occurrences_controller.rb index 0f30ce38..2e3c2ec1 100644 --- a/app/controllers/occurrences_controller.rb +++ b/app/controllers/occurrences_controller.rb @@ -49,7 +49,7 @@ class OccurrencesController < ApplicationController respond_to do |format| if @occurrence.save - flash[:notice] = 'Occurrence was successfully created.' + flash[:notice] = t("flash.occurrences.created") format.html { redirect_to(@occurrence) } format.xml { render :xml => @occurrence, :status => :created, :location => @occurrence } else @@ -66,7 +66,7 @@ class OccurrencesController < ApplicationController respond_to do |format| if @occurrence.update(occurrence_params) - flash[:notice] = 'Occurrence was successfully updated.' + flash[:notice] = t("flash.occurrences.updated") format.html { redirect_to(@occurrence) } format.xml { head :ok } else -- cgit v1.3