Skip to content

Commit

Permalink
Merge pull request #928 from kordan/two_embedded_strings
Browse files Browse the repository at this point in the history
replaced two static texts
  • Loading branch information
stronk7 authored Feb 25, 2024
2 parents c9a3e8c + aae52b7 commit 4706e88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/submissions_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1811,8 +1811,8 @@ private function add_pdf_details($pdf, $user, $timecreated, $timemodified) {
// Set document information.
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('moodle-mod_surveypro');
$pdf->SetTitle('User response');
$pdf->SetSubject('Single response in PDF');
$pdf->SetTitle(get_string('userresponse', 'mod_survyepro'));
$pdf->SetSubject(get_string('pdfsubject', 'mod_survyepro'));

$textheader = $this->get_header_text($user, $timecreated, $timemodified);
$pdf->SetHeaderData('', 0, $this->surveypro->name, $textheader, [0, 64, 255], [0, 64, 128]);
Expand Down
2 changes: 2 additions & 0 deletions lang/en/surveypro.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@
$string['pauseresume'] = 'Allow Pause/Resume';
$string['pauseresumeemail'] = 'Allow pause/resume with reminder email';
$string['pauseresumenoemail'] = 'Allow pause/resume without reminder email';
$string['pdfsubject'] = 'Single response in PDF';
$string['plugin'] = 'Element';
$string['pluginadministration'] = 'Surveypro administration';
$string['pluginname_help'] = 'Write here the name of the survey plugin you are going to save.';
Expand Down Expand Up @@ -524,6 +525,7 @@
$string['user'] = 'User';
$string['usercanceled'] = 'Action canceled by the user';
$string['userenrolled'] = 'User enrolled: 1';
$string['userresponse'] = 'User response';
$string['usersenrolled'] = 'Users enrolled: {$a}';
$string['userstyle_help'] = 'Add here one or more cascade style sheet (css) you want to apply to this survey.';
$string['userstyle'] = 'Custom style sheet';
Expand Down

0 comments on commit 4706e88

Please sign in to comment.