Translate button

This commit is contained in:
Maximilian Grundke
2018-10-05 15:03:27 +02:00
parent 174db96081
commit a07d440e02
3 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,8 @@ CodeOceanEditorFlowr = {
var body = resultTile.find('.panel-body');
body.html(result.body);
body.append('<a href="' + questionUrl + '" class="btn btn-primary btn-block">Open this question</a>');
body.append('<a href="' + questionUrl + '" class="btn btn-primary btn-block">' +
'<%= I18n.t('exercises.implement.flowr.go_to_question') %></a>');
body.find('.btn').on('click', self.createEventHandler('editor_flowr_click_question', questionUrl));
flowrHintBody.append(resultTile);

View File

@ -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

View File

@ -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