From 608bf9b5db903ecbbb7f71a2458084195c8f4268 Mon Sep 17 00:00:00 2001 From: Friederike Schwager <schwager@cil.rwth-aachen.de> Date: Wed, 17 Jul 2019 11:32:56 +0200 Subject: [PATCH] github#14 bugfix trailing spaces in language strings were not displayed --- lang/de/pdfannotator.php | 6 +++--- lang/en/pdfannotator.php | 4 ++-- shared/index.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lang/de/pdfannotator.php b/lang/de/pdfannotator.php index d7e149e..54cd7ff 100644 --- a/lang/de/pdfannotator.php +++ b/lang/de/pdfannotator.php @@ -305,10 +305,10 @@ $string['reportaddedtext'] = '{$a->reportinguser} hat einen Kommentar gemeldet m Die Meldung ist verfügbar unter: {$a->urltoreport}'; -$string['questionstitle'] = 'Fragen auf Seite '; +$string['questionstitle'] = 'Fragen auf Seite'; $string['noquestions'] = 'Keine Fragen auf dieser Seite!'; -$string['allquestionstitle'] = 'Alle Fragen in '; -$string['searchresults'] = 'Suchergebnisse '; +$string['allquestionstitle'] = 'Alle Fragen in'; +$string['searchresults'] = 'Suchergebnisse'; $string['nosearchresults'] = 'Keine Suchergebnisse gefunden.'; $string['newanswerhtml'] = 'Die von Ihnen abonnierte Frage "{$a->question}" wurde von {$a->answeruser} beantwortet mit dem Kommentar: <br /> <br /> "{$a->content}"<br /><br /> diff --git a/lang/en/pdfannotator.php b/lang/en/pdfannotator.php index 3b0fc60..b1b8d8a 100644 --- a/lang/en/pdfannotator.php +++ b/lang/en/pdfannotator.php @@ -373,8 +373,8 @@ $string['reportaddedtext'] = '{$a->reportinguser} has reportet a comment with th It is available under: {$a->urltoreport}'; -$string['allquestionstitle'] = 'All questions in '; -$string['questionstitle'] = 'Questions on page '; +$string['allquestionstitle'] = 'All questions in'; +$string['questionstitle'] = 'Questions on page'; $string['noquestions'] = 'No questions on this page!'; $string['searchresults'] = 'Search results'; $string['nosearchresults'] = 'No search results found.'; diff --git a/shared/index.js b/shared/index.js index f57f89f..cacd319 100644 --- a/shared/index.js +++ b/shared/index.js @@ -6509,7 +6509,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting let container = document.querySelector('.comment-list-container'); let title = $('#comment-wrapper > h4')[0]; if(pattern === '') { - title.innerHTML = M.util.get_string('questionstitle','pdfannotator') + pageNumber; + title.innerHTML = M.util.get_string('questionstitle','pdfannotator') + ' ' + pageNumber; } else { title.innerHTML = M.util.get_string('searchresults','pdfannotator'); } @@ -6614,7 +6614,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting _PDFJSAnnotate2.default.getStoreAdapter().getQuestions(documentId).then(function(questions){ let container = document.querySelector('.comment-list-container'); let title = $('#comment-wrapper > h4')[0]; - title.innerHTML = M.util.get_string('allquestionstitle','pdfannotator') + questions.pdfannotatorname; + title.innerHTML = M.util.get_string('allquestionstitle','pdfannotator') + ' ' + questions.pdfannotatorname; container.innerHTML = ''; -- GitLab