MDL-54962 mod_data: Approval status is now translated.

It was using hardcoded English. Now it uses get_string.
This commit is contained in:
Adrian Greeve 2016-07-08 10:53:39 +08:00
parent 5a1728df39
commit d58f3a4d2a

View File

@ -1332,9 +1332,9 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
if (!$data->approval) {
$replacement[] = '';
} else if ($record->approved) {
$replacement[] = 'approved';
$replacement[] = get_string('approved', 'data');
} else {
$replacement[] = 'notapproved';
$replacement[] = get_string('notapproved', 'data');
}
$patterns[]='##comments##';