Commit 3785358d authored by Frederic Massart's avatar Frederic Massart
Browse files

MDL-39954 event: Delocalise get_description

parent b3fbd918
...@@ -43,12 +43,12 @@ class assessable_submitted extends \core\event\assessable_submitted { ...@@ -43,12 +43,12 @@ class assessable_submitted extends \core\event\assessable_submitted {
protected $legacylogdata; protected $legacylogdata;
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_submitted_desc', 'mod_assign', $this->get_data()); return "User {$this->userid} has submitted the submission {$this->objectid}.";
} }
/** /**
......
...@@ -141,7 +141,6 @@ $string['editsubmission_help'] = 'Make changes to your submission'; ...@@ -141,7 +141,6 @@ $string['editsubmission_help'] = 'Make changes to your submission';
$string['editingstatus'] = 'Editing status'; $string['editingstatus'] = 'Editing status';
$string['editaction'] = 'Actions...'; $string['editaction'] = 'Actions...';
$string['event_assessable_submitted'] = 'A submission has been submitted.'; $string['event_assessable_submitted'] = 'A submission has been submitted.';
$string['event_assessable_submitted_desc'] = 'User {$a->userid} has submitted the submission {$a->objectid}.';
$string['extensionduedate'] = 'Extension due date'; $string['extensionduedate'] = 'Extension due date';
$string['extensionnotafterduedate'] = 'Extension date must be after the due date'; $string['extensionnotafterduedate'] = 'Extension date must be after the due date';
$string['extensionnotafterfromdate'] = 'Extension date must be after the allow submissions from date'; $string['extensionnotafterfromdate'] = 'Extension date must be after the allow submissions from date';
......
...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded { ...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
protected $legacyfiles = array(); protected $legacyfiles = array();
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'assignsubmission_file', $this->get_data()); return "User {$this->userid} has uploaded a file in submission {$this->objectid}.";
} }
/** /**
......
...@@ -30,7 +30,6 @@ $string['default_help'] = 'If set, this submission method will be enabled by def ...@@ -30,7 +30,6 @@ $string['default_help'] = 'If set, this submission method will be enabled by def
$string['enabled'] = 'File submissions'; $string['enabled'] = 'File submissions';
$string['enabled_help'] = 'If enabled, students are able to upload one or more files as their submission.'; $string['enabled_help'] = 'If enabled, students are able to upload one or more files as their submission.';
$string['event_assessable_uploaded'] = 'A file has been uploaded.'; $string['event_assessable_uploaded'] = 'A file has been uploaded.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has uploaded a file in submission {$a->objectid}.';
$string['file'] = 'File submissions'; $string['file'] = 'File submissions';
$string['maxbytes'] = 'Maximum file size'; $string['maxbytes'] = 'Maximum file size';
$string['maxfilessubmission'] = 'Maximum number of uploaded files'; $string['maxfilessubmission'] = 'Maximum number of uploaded files';
......
...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die(); ...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die();
class assessable_uploaded extends \core\event\assessable_uploaded { class assessable_uploaded extends \core\event\assessable_uploaded {
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'assignsubmission_onlinetext', $this->get_data()); return "User {$this->userid} has saved an online text in submission {$this->objectid}.";
} }
/** /**
......
...@@ -28,7 +28,6 @@ $string['default_help'] = 'If set, this submission method will be enabled by def ...@@ -28,7 +28,6 @@ $string['default_help'] = 'If set, this submission method will be enabled by def
$string['enabled'] = 'Online text'; $string['enabled'] = 'Online text';
$string['enabled_help'] = 'If enabled, students are able to type rich text directly into an editor field for their submission.'; $string['enabled_help'] = 'If enabled, students are able to type rich text directly into an editor field for their submission.';
$string['event_assessable_uploaded'] = 'An online text has been uploaded.'; $string['event_assessable_uploaded'] = 'An online text has been uploaded.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has saved an online text in submission {$a->objectid}.';
$string['nosubmission'] = 'Nothing has been submitted for this assignment'; $string['nosubmission'] = 'Nothing has been submitted for this assignment';
$string['onlinetext'] = 'Online text'; $string['onlinetext'] = 'Online text';
$string['onlinetextfilename'] = 'onlinetext.html'; $string['onlinetextfilename'] = 'onlinetext.html';
......
...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die(); ...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die();
class assessable_uploaded extends \core\event\assessable_uploaded { class assessable_uploaded extends \core\event\assessable_uploaded {
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'assignment_online', $this->get_data()); return "User {$this->userid} has saved an online text in submission {$this->objectid}.";
} }
/** /**
......
...@@ -24,5 +24,4 @@ ...@@ -24,5 +24,4 @@
*/ */
$string['event_assessable_uploaded'] = 'An online text has been uploaded.'; $string['event_assessable_uploaded'] = 'An online text has been uploaded.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has saved an online text in submission {$a->objectid}.';
$string['pluginname'] = 'Online'; $string['pluginname'] = 'Online';
...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die(); ...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die();
class assessable_submitted extends \core\event\assessable_submitted { class assessable_submitted extends \core\event\assessable_submitted {
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_submitted_desc', 'assignment_submitted', $this->get_data()); return "User {$this->userid} has submitted the upload submission {$this->objectid}.";
} }
/** /**
......
...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded { ...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
protected $legacyfiles; protected $legacyfiles;
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'assignment_upload', $this->get_data()); return "User {$this->userid} has uploaded a file in submission {$this->objectid}.";
} }
/** /**
......
...@@ -24,7 +24,5 @@ ...@@ -24,7 +24,5 @@
*/ */
$string['event_assessable_submitted'] = 'An upload submission has been submitted.'; $string['event_assessable_submitted'] = 'An upload submission has been submitted.';
$string['event_assessable_submitted_desc'] = 'User {$a->userid} has submitted the upload submission {$a->objectid}.';
$string['event_assessable_uploaded'] = 'A file has been uploaded.'; $string['event_assessable_uploaded'] = 'A file has been uploaded.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has uploaded a file in submission {$a->objectid}.';
$string['pluginname'] = 'Upload'; $string['pluginname'] = 'Upload';
...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die(); ...@@ -36,12 +36,12 @@ defined('MOODLE_INTERNAL') || die();
class assessable_uploaded extends \core\event\assessable_uploaded { class assessable_uploaded extends \core\event\assessable_uploaded {
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'mod_forum', $this->get_data()); return "User {$this->userid} has posted some content in the forum post {$this->objectid}.";
} }
/** /**
......
...@@ -148,7 +148,6 @@ $string['erroremptysubject'] = 'Post subject cannot be empty.'; ...@@ -148,7 +148,6 @@ $string['erroremptysubject'] = 'Post subject cannot be empty.';
$string['errorenrolmentrequired'] = 'You must be enrolled in this course to access this content'; $string['errorenrolmentrequired'] = 'You must be enrolled in this course to access this content';
$string['errorwhiledelete'] = 'An error occurred while deleting record.'; $string['errorwhiledelete'] = 'An error occurred while deleting record.';
$string['event_assessable_uploaded'] = 'Some content has been posted.'; $string['event_assessable_uploaded'] = 'Some content has been posted.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has posted some content in the forum post {$a->objectid}.';
$string['everyonecanchoose'] = 'Everyone can choose to be subscribed'; $string['everyonecanchoose'] = 'Everyone can choose to be subscribed';
$string['everyonecannowchoose'] = 'Everyone can now choose to be subscribed'; $string['everyonecannowchoose'] = 'Everyone can now choose to be subscribed';
$string['everyoneisnowsubscribed'] = 'Everyone is now subscribed to this forum'; $string['everyoneisnowsubscribed'] = 'Everyone is now subscribed to this forum';
......
...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded { ...@@ -43,12 +43,12 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
protected $legacylogdata = null; protected $legacylogdata = null;
/** /**
* Returns localised description of what happened. * Returns description of what happened.
* *
* @return \lang_string * @return string
*/ */
public function get_description() { public function get_description() {
return new \lang_string('event_assessable_uploaded_desc', 'mod_workshop', $this->get_data()); return "User {$this->userid} has uploaded the submission {$this->objectid}.";
} }
/** /**
......
...@@ -107,7 +107,6 @@ $string['evaluationmethod'] = 'Grading evaluation method'; ...@@ -107,7 +107,6 @@ $string['evaluationmethod'] = 'Grading evaluation method';
$string['evaluationmethod_help'] = 'The grading evaluation method determines how the grade for assessment is calculated. You can let it re-calculate grades repeatedly with different settings unless you are happy with the result.'; $string['evaluationmethod_help'] = 'The grading evaluation method determines how the grade for assessment is calculated. You can let it re-calculate grades repeatedly with different settings unless you are happy with the result.';
$string['evaluationsettings'] = 'Grading evaluation settings'; $string['evaluationsettings'] = 'Grading evaluation settings';
$string['event_assessable_uploaded'] = 'A submission has been uploaded.'; $string['event_assessable_uploaded'] = 'A submission has been uploaded.';
$string['event_assessable_uploaded_desc'] = 'User {$a->userid} has uploaded the submission {$a->objectid}.';
$string['example'] = 'Example submission'; $string['example'] = 'Example submission';
$string['exampleadd'] = 'Add example submission'; $string['exampleadd'] = 'Add example submission';
$string['exampleassess'] = 'Assess example submission'; $string['exampleassess'] = 'Assess example submission';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment