From: Tom Hughes Date: Sat, 16 Jun 2018 11:14:58 +0000 (+0100) Subject: Set the locale for issue and report views X-Git-Tag: live~2980 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5ea1ba8d8427d75aef4bd91ef79891ee0b86de28 Set the locale for issue and report views --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 729528946..96e68573e 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -2,6 +2,7 @@ class IssuesController < ApplicationController layout "site" before_action :authorize_web + before_action :set_locale before_action :require_user before_action :check_permission before_action :find_issue, :only => [:show, :resolve, :reopen, :ignore] diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 95c9343e6..08092c073 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -2,6 +2,7 @@ class ReportsController < ApplicationController layout "site" before_action :authorize_web + before_action :set_locale before_action :require_user def new