Skip to content

Commit

Permalink
Merge branch 'wip_m_MDL-29178_fix_block_naming_inconsistencies' of gi…
Browse files Browse the repository at this point in the history
…t://github.com/gerrywastaken/moodle
  • Loading branch information
stronk7 committed Feb 28, 2012
2 parents 64f0293 + bc9cc60 commit 309d7a0
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion blocks/completionstatus/block_completionstatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class block_completionstatus extends block_base {

public function init() {
$this->title = get_string('completionstatus', 'block_completionstatus');
$this->title = get_string('pluginname', 'block_completionstatus');
}

public function get_content() {
Expand Down
1 change: 0 additions & 1 deletion blocks/completionstatus/lang/en/block_completionstatus.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

$string['completionprogressdetails'] = 'Completion progress details';
$string['completionstatus'] = 'Course completion status';
$string['criteriagroup'] = 'Criteria group';
$string['firstofsecond'] = '{$a->first} of {$a->second}';
$string['pluginname'] = 'Course completion status';
Expand Down
2 changes: 1 addition & 1 deletion blocks/course_list/block_course_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class block_course_list extends block_list {
function init() {
$this->title = get_string('courses');
$this->title = get_string('pluginname', 'block_course_list');
}

function has_config() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/course_list/lang/en/block_course_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
$string['confighideallcourseslink'] = 'Hide "All courses" link at the bottom of the block. Link hiding does not affects Admin\'s view';
$string['hideallcourseslink'] = 'Hide All courses link';
$string['owncourses'] = 'Admin user sees own courses';
$string['pluginname'] = 'Course list';
$string['pluginname'] = 'Courses';
2 changes: 1 addition & 1 deletion blocks/private_files/block_private_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class block_private_files extends block_base {

function init() {
$this->title = get_string('myfiles');
$this->title = get_string('pluginname', 'block_private_files');
}

function specialization() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/private_files/lang/en/block_private_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
*/

$string['managemyfiles'] = 'Manage my files';
$string['pluginname'] = 'User private files';
$string['pluginname'] = 'My private files';
$string['privatefiles'] = 'Private files';
2 changes: 1 addition & 1 deletion blocks/rss_client/block_rss_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class block_rss_client extends block_base {

function init() {
$this->title = get_string('feedstitle', 'block_rss_client');
$this->title = get_string('pluginname', 'block_rss_client');
}

function preferred_width() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/rss_client/editfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static function autodiscover_feed_url($url){

$settingsurl = new moodle_url('/admin/settings.php?section=blocksettingrss_client');
$PAGE->navbar->add(get_string('blocks'));
$PAGE->navbar->add(get_string('feedstitle', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('pluginname', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('managefeeds', 'block_rss_client'));
$PAGE->navbar->add($strtitle);

Expand Down
3 changes: 1 addition & 2 deletions blocks/rss_client/lang/en/block_rss_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
$string['feedsaddedit'] = 'Add/edit feeds';
$string['feedsconfigurenewinstance'] = 'Click here to configure this block to display RSS feeds.';
$string['feedsconfigurenewinstance2'] = 'Click the edit icon above to configure this block to display RSS feeds.';
$string['feedstitle'] = 'Remote RSS Feeds';
$string['feedupdated'] = 'News feed updated';
$string['feedurl'] = 'Feed URL';
$string['findmorefeeds'] = 'Find more RSS feeds';
Expand All @@ -61,7 +60,7 @@
$string['nofeeds'] = 'There are no RSS feeds defined for this site.';
$string['numentries'] = 'Entries per feed';
$string['pickfeed'] = 'Pick a news feed';
$string['pluginname'] = 'RSS client';
$string['pluginname'] = 'Remote RSS feeds';
$string['remotenewsfeed'] = 'Remote news feed';
$string['rss_client:createprivatefeeds'] = 'Create private RSS feeds';
$string['rss_client:createsharedfeeds'] = 'Create shared RSS feeds';
Expand Down
2 changes: 1 addition & 1 deletion blocks/rss_client/managefeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
$settingsurl = new moodle_url('/admin/settings.php?section=blocksettingrss_client');
$managefeeds = new moodle_url('/blocks/rss_client/managefeeds.php', $urlparams);
$PAGE->navbar->add(get_string('blocks'));
$PAGE->navbar->add(get_string('feedstitle', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('pluginname', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('managefeeds', 'block_rss_client'), $managefeeds);
echo $OUTPUT->header();

Expand Down
2 changes: 1 addition & 1 deletion blocks/rss_client/viewfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
$settingsurl = new moodle_url('/admin/settings.php?section=blocksettingrss_client');
$managefeeds = new moodle_url('/blocks/rss_client/managefeeds.php', $urlparams);
$PAGE->navbar->add(get_string('blocks'));
$PAGE->navbar->add(get_string('feedstitle', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('pluginname', 'block_rss_client'), $settingsurl);
$PAGE->navbar->add(get_string('managefeeds', 'block_rss_client'));
$PAGE->navbar->add($strviewfeed);
echo $OUTPUT->header();
Expand Down
2 changes: 1 addition & 1 deletion blocks/selfcompletion/block_selfcompletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class block_selfcompletion extends block_base {

public function init() {
$this->title = get_string('selfcompletion', 'block_selfcompletion');
$this->title = get_string('pluginname', 'block_selfcompletion');
}

public function get_content() {
Expand Down
1 change: 0 additions & 1 deletion blocks/selfcompletion/lang/en/block_selfcompletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@
$string['alreadyselfcompleted'] = 'You have already marked yourself as complete in this course';
$string['completecourse'] = 'Complete course';
$string['pluginname'] = 'Self completion';
$string['selfcompletion'] = 'Self completion';
$string['selfcompletionnotenabled'] = 'The self completion criteria has not been enabled for this course';

0 comments on commit 309d7a0

Please sign in to comment.