Commit 9b7b2dae authored by Petr Skoda's avatar Petr Skoda
Browse files

MDL-22054 converting block name strings to pluginname

AMOS START
 MOV [blockname,block_tag_youtube],[pluginname,block_tag_youtube]
AMOS END
parent b2fe457c
......@@ -8,7 +8,7 @@ define('DEFAULT_NUMBER_OF_VIDEOS', 5);
class block_tag_youtube extends block_base {
function init() {
$this->title = get_string('blockname','block_tag_youtube');
$this->title = get_string('pluginname','block_tag_youtube');
$this->version = 2007101509;
}
......@@ -17,7 +17,7 @@ class block_tag_youtube extends block_base {
}
function specialization() {
$this->title = !empty($this->config->title) ? $this->config->title : get_string('blockname', 'block_tag_youtube');
$this->title = !empty($this->config->title) ? $this->config->title : get_string('pluginname', 'block_tag_youtube');
// Convert numeric categories (old YouTube API) to
// textual ones (new Google Data API)
$this->config->category = !empty($this->config->category) ? $this->category_map_old2new($this->config->category) : '0';
......
......@@ -25,7 +25,6 @@
$string['anycategory'] = 'Any Category';
$string['autosvehicles'] = 'Autos & Vehicles';
$string['blockname'] = 'Youtube';
$string['category'] = 'Category';
$string['comedy'] = 'Comedy';
$string['configtitle'] = 'Title';
......@@ -40,6 +39,7 @@ $string['newspolitics'] = 'News & Politics';
$string['numberofvideos'] = 'Number of videos';
$string['peopleblogs'] = 'People & Blogs';
$string['petsanimals'] = 'Pets & Animals';
$string['pluginname'] = 'Youtube';
$string['scienceandtech'] = 'Science & Tech';
$string['sports'] = 'Sports';
$string['travel'] = 'Travel & Places';
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