From 5660690787b6afcf3274af4135d474645d13b671 Mon Sep 17 00:00:00 2001 From: Martin Wortschack Date: Wed, 27 Mar 2019 16:52:52 +0000 Subject: Externalize strings in projects controllers - concerns - dashboard - groups - import --- app/controllers/concerns/uploads_actions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/concerns/uploads_actions.rb') 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 -- cgit v1.2.1