From: Andy Allan Date: Wed, 6 Jun 2018 03:53:05 +0000 (+0800) Subject: Fix missing message translation strings X-Git-Tag: live~3061^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3e5a953e8f549db9e455a233a0934ba067faf6e3?ds=sidebyside Fix missing message translation strings --- diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 651a67036..d14605692 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -56,7 +56,7 @@ class MessagesController < ApplicationController redirect_to :controller => "user", :action => "login", :referer => request.fullpath end rescue ActiveRecord::RecordNotFound - @title = t "message.no_such_message.title" + @title = t "messages.no_such_message.title" render :action => "no_such_message", :status => :not_found end @@ -73,7 +73,7 @@ class MessagesController < ApplicationController redirect_to :controller => "user", :action => "login", :referer => request.fullpath end rescue ActiveRecord::RecordNotFound - @title = t "message.no_such_message.title" + @title = t "messages.no_such_message.title" render :action => "no_such_message", :status => :not_found end @@ -103,7 +103,7 @@ class MessagesController < ApplicationController redirect_to :action => :inbox end rescue ActiveRecord::RecordNotFound - @title = t "message.no_such_message.title" + @title = t "messages.no_such_message.title" render :action => "no_such_message", :status => :not_found end @@ -122,7 +122,7 @@ class MessagesController < ApplicationController end end rescue ActiveRecord::RecordNotFound - @title = t "message.no_such_message.title" + @title = t "messages.no_such_message.title" render :action => "no_such_message", :status => :not_found end