Permalink
Browse files

MDL-36109 accesibility: use proper words for logo alt text

  • Loading branch information...
danpoltawski committed Oct 30, 2015
1 parent d412f85 commit 3a723033e8f9bea7703f4f54657b837126604a12
Showing with 5 additions and 3 deletions.
  1. +1 −0 install/stringnames.txt
  2. +1 −0 lang/en/moodle.php
  3. +1 −1 lib/installlib.php
  4. +2 −2 lib/outputrenderers.php
View
@@ -43,6 +43,7 @@ langdownloaderror,install
language,moodle
memorylimithelp,install
missingrequiredfield,error
moodlelogo,moodle
next,moodle
parentlanguage,langconfig
pathserrcreatedataroot,install
View
@@ -1171,6 +1171,7 @@
$string['missingurl'] = 'Missing URL';
$string['missingusername'] = 'Missing username';
$string['moddoesnotsupporttype'] = 'Module {$a->modname} does not support uploads of type {$a->type}';
$string['moodlelogo'] = 'Moodle logo';
$string['month'] = 'Month';
$string['months'] = 'Months';
$string['modified'] = 'Modified';
View
@@ -406,7 +406,7 @@ function install_print_footer($config, $reload=false) {
$homelink = '<div class="sitelink">'.
'<a title="Moodle '. $CFG->target_release .'" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">'.
'<img src="pix/moodlelogo.png" alt="moodlelogo" /></a></div>';
'<img src="pix/moodlelogo.png" alt="'.get_string('moodlelogo').'" /></a></div>';
echo '</form></div>';
echo '<div id="page-footer">'.$homelink.'</div>';
View
@@ -830,13 +830,13 @@ public function home_link() {
// Special case for site home page - please do not remove
return '<div class="sitelink">' .
'<a title="Moodle" href="http://moodle.org/">' .
'<img src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
'<img src="' . $this->pix_url('moodlelogo') . '" alt="'.get_string('moodlelogo').'" /></a></div>';
} else if (!empty($CFG->target_release) && $CFG->target_release != $CFG->release) {
// Special case for during install/upgrade.
return '<div class="sitelink">'.
'<a title="Moodle" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">' .
'<img src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
'<img src="' . $this->pix_url('moodlelogo') . '" alt="'.get_string('moodlelogo').'" /></a></div>';
} else if ($this->page->course->id == $SITE->id || strpos($this->page->pagetype, 'course-view') === 0) {
return '<div class="homelink"><a href="' . $CFG->wwwroot . '/">' .

0 comments on commit 3a72303

Please sign in to comment.