From a07d440e026d33b9e179c4b933ffaec00e66cc08 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Fri, 5 Oct 2018 15:03:27 +0200 Subject: [PATCH] Translate button --- app/assets/javascripts/editor/participantsupport.js.erb | 3 ++- config/locales/de.yml | 1 + config/locales/en.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/editor/participantsupport.js.erb b/app/assets/javascripts/editor/participantsupport.js.erb index e3f81aad..040ee387 100644 --- a/app/assets/javascripts/editor/participantsupport.js.erb +++ b/app/assets/javascripts/editor/participantsupport.js.erb @@ -99,7 +99,8 @@ CodeOceanEditorFlowr = { var body = resultTile.find('.panel-body'); body.html(result.body); - body.append('Open this question'); + body.append('' + + '<%= I18n.t('exercises.implement.flowr.go_to_question') %>'); body.find('.btn').on('click', self.createEventHandler('editor_flowr_click_question', questionUrl)); flowrHintBody.append(resultTile); diff --git a/config/locales/de.yml b/config/locales/de.yml index a8a1c53b..fdaa2a18 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -340,6 +340,7 @@ de: heading: "Hinweise" flowr: heading: "Weitere Hinweise | Unterstützt von StackOverflow" + go_to_question: "Lösung ansehen" index: clone: Duplizieren implement: Implementieren diff --git a/config/locales/en.yml b/config/locales/en.yml index 9ac9b0ce..5073d525 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -340,6 +340,7 @@ en: heading: "Hints" flowr: heading: "Gain more insights here | Powered by StackOverflow" + go_to_question: "Go to answer" index: clone: Duplicate implement: Implement