summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-04-08 13:13:19 +0200
committerMartin Wortschack <mwortschack@gitlab.com>2019-04-08 13:13:29 +0200
commit6a0035d273deffd67506230d3776812e045d59cc (patch)
treef9b9787d3761fc0456b28a4656453c366a610c20 /app/controllers/application_controller.rb
parent942ce36a72b460f8cac2091008869d845fd365e3 (diff)
downloadgitlab-ce-6a0035d273deffd67506230d3776812e045d59cc.tar.gz
Externalize strings in flash messagesmw-i18n-flashes
- Externalize strings in controllers - Update PO file
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index b7eb6af6d67..d5f1e35a79b 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -293,7 +293,7 @@ class ApplicationController < ActionController::Base
unless Gitlab::Auth::LDAP::Access.allowed?(current_user)
sign_out current_user
- flash[:alert] = "Access denied for your LDAP account."
+ flash[:alert] = _("Access denied for your LDAP account.")
redirect_to new_user_session_path
end
end
@@ -340,7 +340,7 @@ class ApplicationController < ActionController::Base
def require_email
if current_user && current_user.temp_oauth_email? && session[:impersonator_id].nil?
- return redirect_to profile_path, notice: 'Please complete your profile with email address'
+ return redirect_to profile_path, notice: _('Please complete your profile with email address')
end
end