Fix I18n for request success message

This commit is contained in:
Maximilian Grundke
2016-04-30 14:17:37 +02:00
parent 268b723f3a
commit ee164b9e68
4 changed files with 4 additions and 2 deletions

View File

@ -1160,7 +1160,7 @@ $(function() {
} }
}).done(function() { }).done(function() {
hideSpinner(); hideSpinner();
$.flash.success({ text: 'Request for comments sent!' }) $.flash.success({ text: $('#askForCommentsButton').data('message-success') })
}).error(ajaxError); }).error(ajaxError);
$('#comment-modal').modal('hide'); $('#comment-modal').modal('hide');

View File

@ -1,4 +1,4 @@
h5 = t('exercises.implement.comment.question') h5 = t('exercises.implement.comment.question')
textarea.form-control#question(style='resize:none;') textarea.form-control#question(style='resize:none;')
p = '' p = ''
button#askForCommentsButton.btn.btn-block.btn-primary(type='button') =t('exercises.implement.comment.request') button#askForCommentsButton.btn.btn-block.btn-primary(type='button' data-message-success=t('exercises.editor.request_for_comments_sent')) =t('exercises.implement.comment.request')

View File

@ -210,6 +210,7 @@ de:
timeout: 'Ausführung gestoppt. Ihr Code hat die erlaubte Ausführungszeit von %{permitted_execution_time} Sekunden überschritten.' timeout: 'Ausführung gestoppt. Ihr Code hat die erlaubte Ausführungszeit von %{permitted_execution_time} Sekunden überschritten.'
tooltips: tooltips:
save: Ihr Code wird automatisch gespeichert, wann immer Sie eine Datei herunterladen, ausführen oder testen. Explizites Speichern ist also selten notwendig. save: Ihr Code wird automatisch gespeichert, wann immer Sie eine Datei herunterladen, ausführen oder testen. Explizites Speichern ist also selten notwendig.
request_for_comments_sent: "Kommentaranfrage gesendet."
editor_file_tree: editor_file_tree:
file_root: Dateien file_root: Dateien
file_form: file_form:

View File

@ -210,6 +210,7 @@ en:
timeout: 'Execution stopped. Your code exceeded the permitted execution time of %{permitted_execution_time} seconds.' timeout: 'Execution stopped. Your code exceeded the permitted execution time of %{permitted_execution_time} seconds.'
tooltips: tooltips:
save: Your code is automatically saved whenever you download, run, or test it. Therefore, explicitly saving is rarely necessary. save: Your code is automatically saved whenever you download, run, or test it. Therefore, explicitly saving is rarely necessary.
request_for_comments_sent: "Request for comments sent."
editor_file_tree: editor_file_tree:
file_root: Files file_root: Files
file_form: file_form: