From ea5a9e34d82078d1eb9255e758f9183fb6df1024 Mon Sep 17 00:00:00 2001 From: Florian Heiderich Date: Mon, 11 Sep 2017 16:00:13 +0200 Subject: [PATCH] add maketext calls --- lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm | 4 ++-- lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm b/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm index c1b52066ec..559350b472 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm @@ -1805,8 +1805,8 @@ sub save_as_handler { $self->addbadmessage(CGI::p("File '".$self->shortPath($outputFilePath)."' exists. File not saved. No changes have been made. You can change the file path for this problem manually from the 'Hmwk Sets Editor' page")); - $self->addgoodmessage(CGI::p("The text box now contains the source of the original problem.". - " You can recover lost edits by using the Back button on your browser.")); + $self->addgoodmessage(CGI::p($r->maketext("The text box now contains the source of the original problem.". + " You can recover lost edits by using the Back button on your browser."))); } else { $self->{editFilePath} = $outputFilePath; $self->{tempFilePath} = ''; # nothing needs to be unlinked. diff --git a/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm b/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm index 224b49ff24..81dd1284a0 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm @@ -1731,7 +1731,7 @@ sub body { print CGI::p(CGI::span({-id=>'what_shown'}, CGI::span({-id=>'firstshown'}, $first_shown+1)."-".CGI::span({-id=>'lastshown'}, $last_shown+1))." ".$r->maketext("of")." ".CGI::span({-id=>'totalshown'}, $total_probs). " ".$r->maketext("shown").".", $prev_button, " ", $next_button, ); - print CGI::p('Some problems shown above represent multiple similar problems from the database. If the (top) information line for a problem has a letter M for "More", hover your mouse over the M to see how many similar problems are hidden, or click on the M to see the problems. If you click to view these problems, the M becomes an L, which can be clicked on to hide the problems again.'); + print CGI::p($r->maketext('Some problems shown above represent multiple similar problems from the database. If the (top) information line for a problem has a letter M for "More", hover your mouse over the M to see how many similar problems are hidden, or click on the M to see the problems. If you click to view these problems, the M becomes an L, which can be clicked on to hide the problems again.')); } # } print CGI::end_form(), "\n";