summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpereira2 <rpereira@gitlab.com>2019-04-04 17:10:06 +0530
committerrpereira2 <rpereira@gitlab.com>2019-04-05 02:12:34 +0530
commit3888b4d35c8e6e24d1871bbc4ec2e1f63a19ed4d (patch)
tree1d8b4ba92bd079c8954ef715863863a2bb19a752
parente89b07327166b2af8557d0f177264da25e4df0d3 (diff)
downloadgitlab-ce-3888b4d35c8e6e24d1871bbc4ec2e1f63a19ed4d.tar.gz
Allow message strings to be translated
-rw-r--r--app/controllers/projects/environments/prometheus_api_controller.rb4
-rw-r--r--locale/gitlab.pot6
2 files changed, 8 insertions, 2 deletions
diff --git a/app/controllers/projects/environments/prometheus_api_controller.rb b/app/controllers/projects/environments/prometheus_api_controller.rb
index 13b5a300af6..fd3320637b0 100644
--- a/app/controllers/projects/environments/prometheus_api_controller.rb
+++ b/app/controllers/projects/environments/prometheus_api_controller.rb
@@ -14,8 +14,8 @@ class Projects::Environments::PrometheusApiController < Projects::ApplicationCon
if result.nil?
return render status: :accepted, json: {
- status: 'processing',
- message: 'Not ready yet. Try again later.'
+ status: _('processing'),
+ message: _('Not ready yet. Try again later.')
}
end
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 3a140aef0e7..8f4e118b69f 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -5483,6 +5483,9 @@ msgstr ""
msgid "Not now"
msgstr ""
+msgid "Not ready yet. Try again later."
+msgstr ""
+
msgid "Not started"
msgstr ""
@@ -10040,6 +10043,9 @@ msgstr ""
msgid "private"
msgstr ""
+msgid "processing"
+msgstr ""
+
msgid "project"
msgstr ""