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:56:29 +08:00
parent a0473f798d
commit 0e40fc6e85
+2 -2
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##';