Skip to content

Commit

Permalink
MDL-22054 converting block name strings to pluginname
Browse files Browse the repository at this point in the history
AMOS START
 MOV [blocktagstitle,core_tag],[pluginname,block_tags]
AMOS END
  • Loading branch information
skodak committed Apr 11, 2010
1 parent 9b7b2da commit 8d4904b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions blocks/tags/block_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class block_tags extends block_base {
function init() {
$this->version = 2008063001;
$this->title = get_string('blocktagstitle', 'tag');
$this->title = get_string('pluginname', 'block_tags');
// the cron function goes through all users, so only do daily
// (this creates rss feeds for personal course tags)
// removed until rsslib supports dc/cc
Expand All @@ -30,7 +30,7 @@ function specialization() {

// load userdefined title and make sure it's never empty
if (empty($this->config->title)) {
$this->title = get_string('blocktagstitle','tag');
$this->title = get_string('pluginname','block_tags');
} else {
$this->title = $this->config->title;
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/tags/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ protected function specific_definition($mform) {
// Fields for editing HTML block title and contents.
$mform->addElement('header', 'configheader', get_string('blocksettings', 'block'));

$mform->addElement('text', 'config_title', get_string('blocktagstitle', 'tag'));
$mform->addElement('text', 'config_title', get_string('pluginname', 'block_tags'));
$mform->setType('config_title', PARAM_MULTILANG);
$mform->setDefault('config_title', get_string('blocktagstitle', 'tag'));
$mform->setDefault('config_title', get_string('pluignname', 'block_tags'));

$numberoftags = array();
for ($i = 1; $i <= 200; $i++) {
Expand Down
1 change: 1 addition & 0 deletions blocks/tags/lang/en/block_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
$string['officialtags1'] = 'official tags';
$string['officialtags2'] = 'Show official course tags';
$string['please'] = 'Please';
$string['pluginname'] = 'Tags';
$string['select'] = 'Select...';
$string['showcoursetags'] = 'Show course tags';
$string['showcoursetagsdef'] = 'Display the course tagging features in the tags block, allowing students to tag courses.';
Expand Down
1 change: 0 additions & 1 deletion lang/en/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
$string['addedotag'] = '"{$a}" was added as an official tag.';
$string['addotags'] = 'Add official tags';
$string['addtagtomyinterests'] = 'Add "{$a}" to my interests';
$string['blocktagstitle'] = 'Tags';
$string['count'] = 'Count';
$string['delete'] = 'Delete';
$string['deleted'] = 'Deleted';
Expand Down

0 comments on commit 8d4904b

Please sign in to comment.