Skip to content

Commit

Permalink
Merge pull request #806 from heiderich/maketext_calls_in_PGProblemEdi…
Browse files Browse the repository at this point in the history
…tor_and_SetMaker

add maketext calls
  • Loading branch information
Alex-Jordan authored Dec 22, 2017
2 parents ec7b177 + ea5a9e3 commit 7c85e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7c85e2b

Please sign in to comment.