Skip to content

Commit

Permalink
Merge branch 'MDL-29005' of git://github.com/mouneyrac/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Aug 30, 2011
2 parents 239ed13 + 4962df4 commit d9d76da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions blocks/community/forms.php
Expand Up @@ -155,10 +155,12 @@ public function definition() {
array('class' => 'hubscreenshot')); array('class' => 'hubscreenshot'));
$hubdescriptiontext = html_writer::tag('span', format_text($hub['description'], FORMAT_PLAIN), $hubdescriptiontext = html_writer::tag('span', format_text($hub['description'], FORMAT_PLAIN),
array('class' => 'hubdescription')); array('class' => 'hubdescription'));
$additionaldesc = get_string('sites', 'block_community') . ': ' . $hub['sites'] . ' - ' . if (isset($hub['enrollablecourses'])) { //needed for Moodle version < 2011081700
get_string('courses', 'block_community') . ': ' . $hub['courses']; $additionaldesc = get_string('enrollablecourses', 'block_community') . ': ' . $hub['enrollablecourses'] . ' - ' .
$hubdescriptiontext .= html_writer::tag('span', $additionaldesc, get_string('downloadablecourses', 'block_community') . ': ' . $hub['downloadablecourses'];
array('class' => 'hubadditionaldesc')); $hubdescriptiontext .= html_writer::tag('span', $additionaldesc,
array('class' => 'hubadditionaldesc'));
}
if ($hub['trusted']) { if ($hub['trusted']) {
$hubtrusted = get_string('hubtrusted', 'block_community'); $hubtrusted = get_string('hubtrusted', 'block_community');
$hubdescriptiontext .= html_writer::tag('span', $hubdescriptiontext .= html_writer::tag('span',
Expand Down
2 changes: 2 additions & 0 deletions blocks/community/lang/en/block_community.php
Expand Up @@ -49,6 +49,7 @@
$string['dorestore'] = 'Yes'; $string['dorestore'] = 'Yes';
$string['download'] = 'Download'; $string['download'] = 'Download';
$string['downloadable'] = 'courses I can download'; $string['downloadable'] = 'courses I can download';
$string['downloadablecourses'] = 'Downloadable courses';
$string['downloadconfirmed'] = 'The backup has been saved in your private files {$a}'; $string['downloadconfirmed'] = 'The backup has been saved in your private files {$a}';
$string['downloaded'] = '...finished.'; $string['downloaded'] = '...finished.';
$string['downloadingcourse'] = 'Downloading course'; $string['downloadingcourse'] = 'Downloading course';
Expand All @@ -61,6 +62,7 @@
Others are course templates provided for you to download and use on your own Moodle site.'; Others are course templates provided for you to download and use on your own Moodle site.';
$string['enrollable'] = 'courses I can enrol in'; $string['enrollable'] = 'courses I can enrol in';
$string['enrollablecourses'] = 'Enrollable courses';
$string['errorcourselisting'] = 'An error occured when retrieving the course listing from the selected hub, please try again later. ({$a})'; $string['errorcourselisting'] = 'An error occured when retrieving the course listing from the selected hub, please try again later. ({$a})';
$string['errorhublisting'] = 'An error occured when retrieving the hub listing from Moodle.org, please try again later. ({$a})'; $string['errorhublisting'] = 'An error occured when retrieving the hub listing from Moodle.org, please try again later. ({$a})';
$string['fileinfo'] = 'Language: {$a->lang} - License: {$a->license} - Time updated: {$a->timeupdated}'; $string['fileinfo'] = 'Language: {$a->lang} - License: {$a->license} - Time updated: {$a->timeupdated}';
Expand Down

0 comments on commit d9d76da

Please sign in to comment.