]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/preferences_controller.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / controllers / preferences_controller.rb
index 6839bf37a8058302907fb700a832ad293f406854..e098a8acc49a989a58b390e1cfb3a27570e23d95 100644 (file)
@@ -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"