mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-54962 mod_data: Approval status is now translated.
It was using hardcoded English. Now it uses get_string.
This commit is contained in:
parent
5a1728df39
commit
d58f3a4d2a
@ -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##';
|
||||
|
Loading…
x
Reference in New Issue
Block a user