]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
More translations for export dialog, and change "velja svæði" to "velja annað svæði...
[rails.git] / app / controllers / user_controller.rb
index 2050ffdb4506056bbb39811ba34fd745ad6b8402..2659232cd4bf75d49f16669a3ad4c70c4f79c714 100644 (file)
@@ -50,10 +50,13 @@ class UserController < ApplicationController
       end
 
       @user.description = params[:user][:description]
+      @user.languages = params[:user][:languages].split(",")
       @user.home_lat = params[:user][:home_lat]
       @user.home_lon = params[:user][:home_lon]
 
       if @user.save
+        set_locale
+
         if params[:user][:email] == @user.new_email
           flash[:notice] = I18n.t('user.account.flash update success confirm needed')
           Notifier.deliver_email_confirm(@user, @user.tokens.create)
@@ -90,7 +93,7 @@ class UserController < ApplicationController
       if user
         token = user.tokens.create
         Notifier.deliver_lost_password(user, token)
-        flash[:notice] = I18n.t('user.lost_password.notice.email on way')
+        flash[:notice] = I18n.t('user.lost_password.notice email on way')
       else
         flash[:notice] = I18n.t('user.lost_password.notice email cannot find')
       end