diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-03-27 16:52:52 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-27 16:52:52 +0000 |
commit | 5660690787b6afcf3274af4135d474645d13b671 (patch) | |
tree | 740ad2a1d105c33f464c81bb70fc2e815d692d07 /app/controllers/concerns/uploads_actions.rb | |
parent | 98824f3e97e24a5d6cb0688167bc8411a74739fc (diff) | |
download | gitlab-ce-5660690787b6afcf3274af4135d474645d13b671.tar.gz |
Externalize strings in projects controllers
- concerns
- dashboard
- groups
- import
Diffstat (limited to 'app/controllers/concerns/uploads_actions.rb')
-rw-r--r-- | app/controllers/concerns/uploads_actions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/uploads_actions.rb b/app/controllers/concerns/uploads_actions.rb index 4ec0e94df9a..59f6d3452a3 100644 --- a/app/controllers/concerns/uploads_actions.rb +++ b/app/controllers/concerns/uploads_actions.rb @@ -16,7 +16,7 @@ module UploadsActions end else format.json do - render json: 'Invalid file.', status: :unprocessable_entity + render json: _('Invalid file.'), status: :unprocessable_entity end end end @@ -57,7 +57,7 @@ module UploadsActions render json: authorized rescue SocketError - render json: "Error uploading file", status: :internal_server_error + render json: _("Error uploading file"), status: :internal_server_error end private |