Commit 8bb58ac2 authored by Etienne Baqué's avatar Etienne Baqué Committed by Gary Holtz

Adding sentence to locales

parent 1fa306fb
......@@ -151,7 +151,7 @@ class UsersController < ApplicationController
if Gitlab::CurrentSettings.signup_enabled? || current_user
render json: { exists: !!Namespace.find_by_path_or_name(params[:username]) }
else
render json: { error: "You must be authenticated to access this path" }, status: :unauthorized
render json: { error: _('You must be authenticated to access this path.') }, status: :unauthorized
end
end
......
......@@ -40917,6 +40917,9 @@ msgstr ""
msgid "You may close the milestone now."
msgstr ""
msgid "You must be authenticated to access this path."
msgstr ""
msgid "You must be logged in to search across all of GitLab"
msgstr ""
......
......@@ -665,7 +665,7 @@ RSpec.describe UsersController do
stub_application_setting(signup_enabled: false)
get user_exists_url 'foo'
expected_json = { error: "You must be authenticated to access this path" }.to_json
expected_json = { error: "You must be authenticated to access this path." }.to_json
expect(response).to have_gitlab_http_status(:unauthorized)
expect(response.body).to eq(expected_json)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment