From: Tom Hughes Date: Sun, 17 Apr 2011 19:33:49 +0000 (+0100) Subject: Make sure "please read the terms" error is issued in the right language X-Git-Tag: live~6278^2~43 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8024a38be4618919310982cd0648c510dcb73d28?hp=2fd52ddf6024ebdbebf451524836e67f7b4f07a2 Make sure "please read the terms" error is issued in the right language --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 926be87ba..657cb27e3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -111,6 +111,7 @@ class ApplicationController < ActionController::Base # allow editing - they have to go to the web site and see # (but can decline) the CTs to continue. if REQUIRE_TERMS_SEEN and not @user.terms_seen + set_locale render :text => t('application.setup_user_auth.need_to_see_terms'), :status => :forbidden end end