mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
Merge branch 'MDL-78335-master' of https://github.com/elza3ym/moodle
This commit is contained in:
commit
9c0e8ed95d
1 changed files with 6 additions and 3 deletions
|
@ -118,7 +118,7 @@ class completion_criteria_date extends completion_criteria {
|
|||
* @return string
|
||||
*/
|
||||
public function get_title_detailed() {
|
||||
return userdate($this->timeend, '%d-%h-%y');
|
||||
return userdate($this->timeend, get_string('strftimedatemonthabbr', 'core_langconfig'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -138,7 +138,10 @@ class completion_criteria_date extends completion_criteria {
|
|||
* @return string
|
||||
*/
|
||||
public function get_status($completion) {
|
||||
return $completion->is_complete() ? get_string('yes') : userdate($this->timeend, '%d-%h-%y');
|
||||
return $completion->is_complete() ? get_string('yes') : userdate(
|
||||
$this->timeend,
|
||||
get_string('strftimedatemonthabbr', 'core_langconfig')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -197,7 +200,7 @@ class completion_criteria_date extends completion_criteria {
|
|||
$details = array();
|
||||
$details['type'] = get_string('datepassed', 'completion');
|
||||
$details['criteria'] = get_string('remainingenroleduntildate', 'completion');
|
||||
$details['requirement'] = userdate($this->timeend, '%d %B %Y');
|
||||
$details['requirement'] = userdate($this->timeend, get_string('strftimedatemonthabbr', 'core_langconfig'));
|
||||
$details['status'] = '';
|
||||
|
||||
return $details;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue