MDL-22056 More tidying up of pluginnames for course reports, and more component names tidying

This commit is contained in:
Martin Dougiamas 2010-04-22 15:54:20 +00:00
parent 3c9076c2e1
commit 4c14885683
8 changed files with 10 additions and 3 deletions

View File

@ -27,3 +27,4 @@ $string['loglive'] = 'Live logs';
$string['log:view'] = 'View course logs';
$string['log:viewlive'] = 'View live logs';
$string['log:viewtoday'] = 'View today\'s logs';
$string['pluginname'] = 'Live logs';

View File

@ -24,3 +24,4 @@
*/
$string['outline:view'] = 'View course activity report';
$string['pluginname'] = 'Course activity';

View File

@ -24,3 +24,4 @@
*/
$string['participation:view'] = 'View course participation report';
$string['pluginname'] = 'Course participation';

View File

@ -23,4 +23,5 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Course progress';
$string['progress:view'] = 'View course progress report';

View File

@ -23,4 +23,5 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Course statistics';
$string['stats:view'] = 'View course statistics report';

View File

@ -329,6 +329,7 @@ $string['courserejectemail'] = 'Sorry, but the course you requested has been rej
{$a}';
$string['courserejectreason'] = 'Outline your reasons for rejecting this course<br />(this will be emailed to the requester)';
$string['courserejectsubject'] = 'Your course has been rejected';
$string['coursereport'] = 'Course report';
$string['coursereports'] = 'Course reports';
$string['courserequest'] = 'Course request';
$string['courserequestdetails'] = 'Details of the course you are requesting';

View File

@ -156,6 +156,7 @@ $string['tokencreator'] = 'Creator';
$string['userasclients'] = 'Users as clients with token';
$string['userasclientsdescription'] = 'The following steps help you to set up the Moodle web service for users as clients. These steps also help to set up the recommended token (security keys) authentication method. In this use case, the user will generate his token from his <strong>Security keys</strong> profile page.';
$string['validuntil'] = 'Valid until';
$string['webservice'] = 'Web service';
$string['webservices'] = 'Web services';
$string['webservicesoverview'] = 'Overview';
$string['webservicetokens'] = 'Web service tokens';

View File

@ -4355,9 +4355,9 @@ function get_component_string($component, $contextlevel) {
} else if (preg_match('|^gradereport|', $component)) {
$string = get_string('gradereport', 'grades').': '.get_string('modulename', $component);
} else if (preg_match('|^coursereport|', $component)) {
$string = get_string('coursereports');
$string = get_string('coursereport').': '.get_string('pluginname', $component);
} else if (preg_match('|^webservice|', $component)) {
$string = get_string('webservices', 'webservice');
$string = get_string('webservice', 'webservice').': '.get_string('pluginname', $component);
} else {
$string = get_string('course');
}
@ -4370,7 +4370,7 @@ function get_component_string($component, $contextlevel) {
} else if (preg_match('|^moodle|', $component)) {
$string = get_string('coresystem');
} else {
$string = get_string('modulename', preg_replace('#(\w+_)#', '', basename($component)));
$string = get_string('activity').': '.get_string('modulename', preg_replace('#(\w+_)#', '', basename($component)));
}
break;