diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index a41c7921..77ad293d 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -314,6 +314,7 @@ also, all settings from the rails model needed for the editor configuration in t var row = e.getDocumentPosition().row; e.stop(); + $('.modal-title').text('<%= t('request_for_comments.modal_title') %>'.replace('${line}', row + 1)); var commentModal = $('#comment-modal'); diff --git a/config/locales/de.yml b/config/locales/de.yml index 82bd67b0..3d362183 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -473,6 +473,7 @@ de: send_thank_you_note: "Senden" cancel_thank_you_note: "Nichts senden" comment_edited: "bearbeitet" + modal_title: "Einen Kommentar in Zeile ${line} hinzufügen" sessions: create: failure: Fehlerhafte E-Mail oder Passwort. diff --git a/config/locales/en.yml b/config/locales/en.yml index 27fee7c7..675e4358 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -494,6 +494,7 @@ en: send_thank_you_note: "Send" cancel_thank_you_note: "Don't send" comment_edited: "edited" + modal_title: "Add a comment to line ${line}" sessions: create: failure: Invalid email or password.