X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2403630da87df8a3b57913e8949ae0ff8f611d22..97bb13595750d2ba5d03a5abe2ede7cd11a8a481:/app/controllers/preferences_controller.rb?ds=sidebyside diff --git a/app/controllers/preferences_controller.rb b/app/controllers/preferences_controller.rb index 6839bf37a..e098a8acc 100644 --- a/app/controllers/preferences_controller.rb +++ b/app/controllers/preferences_controller.rb @@ -22,7 +22,8 @@ class PreferencesController < ApplicationController params[:user][:preferred_editor] end if current_user.save - flash[:notice] = t ".success" + # Use a partial so that it is rendered during the next page load in the correct language. + flash[:notice] = { :partial => "preferences/update_success_flash" } redirect_to preferences_path else flash[:error] = t ".failure"