From: skodak Date: Sun, 26 Nov 2006 16:20:19 +0000 (+0000) Subject: MDL-7434 all images that convey information should have alt text to convey that infor... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7150b8ae206defa59f17c7dcca826fbc8cb71a87;p=moodle.git MDL-7434 all images that convey information should have alt text to convey that information - part 3 --- diff --git a/lang/en_utf8/survey.php b/lang/en_utf8/survey.php index 68fe784258..e0ba38f3c0 100644 --- a/lang/en_utf8/survey.php +++ b/lang/en_utf8/survey.php @@ -203,6 +203,7 @@ $string['survey:download'] = 'Download responses'; $string['survey:participate'] = 'Respond to survey'; $string['survey:readresponses'] = 'View responses'; $string['surveycompleted'] = 'You\'ve completed this survey. The graph below shows a summary of your results compared to the class averages.'; +$string['surveygraph'] = 'Survey graph'; $string['surveyname'] = 'Survey name'; $string['surveysaved'] = 'Survey saved'; $string['surveytype'] = 'Survey type'; diff --git a/mod/data/field/picture/field.class.php b/mod/data/field/picture/field.class.php index f79efff528..9f3a568a7f 100755 --- a/mod/data/field/picture/field.class.php +++ b/mod/data/field/picture/field.class.php @@ -64,7 +64,7 @@ class data_field_picture extends data_field_file { .$this->field->id.'_filename" id="field_'.$this->field->id.'_filename" value="'.$description.'" />
'; $str .= ''; if ($filepath){ - $str .= ''; + $str .= ''; } $str .= ''; return $str; diff --git a/mod/data/preset.php b/mod/data/preset.php index 223fd13278..1ebc1651ff 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -316,7 +316,7 @@ foreach ($presets as $id => $preset) { echo ''; echo ''; if (!empty($preset->screenshot)) { - echo ''; + echo ''.get_string('screenshot').''; } echo ''.$preset->name; if (!empty($preset->userid)) { diff --git a/mod/exercise/lib.php b/mod/exercise/lib.php index 1714081c72..cf3285e173 100644 --- a/mod/exercise/lib.php +++ b/mod/exercise/lib.php @@ -773,7 +773,7 @@ function exercise_print_submission_title($exercise, $submission) { } else { $ffurl = "file.php?file=/$filearea/$file"; } - return "pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />". + return "pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"".get_string('file')."\" />". " wwwroot/$ffurl\">$submission->title"; } } diff --git a/mod/glossary/comments.php b/mod/glossary/comments.php index 4deba4a19f..f274486998 100644 --- a/mod/glossary/comments.php +++ b/mod/glossary/comments.php @@ -58,7 +58,7 @@ print_heading(format_string(get_string('commentson','glossary')." \"$entry->concept\"")); if ($glossary->allowcomments || has_capability('mod/glossary:managecomments', $context)) { - print_heading("id\">$straddcomment \"\""); + print_heading("id\">$straddcomment \"$straddcomment\""); } if ($comments = get_records("glossary_comments","entryid",$entry->id,"timemodified ASC")) { diff --git a/mod/glossary/config.html b/mod/glossary/config.html index 0f371a31ec..9c539429d0 100644 --- a/mod/glossary/config.html +++ b/mod/glossary/config.html @@ -220,7 +220,7 @@ $recformat = get_record('glossary_formats','id',$formatid); echo ''; echo '' . $formatname . ''; - $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">\"\""; + $eicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\">\"".get_string("edit")."\""; if ( $recformat->visible ) { $vtitle = get_string("hide"); $vicon = "hide.gif"; @@ -228,7 +228,7 @@ $vtitle = get_string("show"); $vicon = "show.gif"; } - $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">\"\""; + $vicon = "wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\">\"$vtitle\""; echo '' . $eicon . '  ' . $vicon . ''; echo ''; diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 3fe3caa96b..a06097a5df 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -814,9 +814,9 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h $output = true; $return .= " id&mode=delete&entry=$entry->id&prevmode=$mode&hook=$hook\">\"\" "; + $return .= "\" height=\"11\" width=\"11\" border=\"0\" alt=\"" . get_string("delete") . "\" /> "; - $return .= " id&e=$entry->id&mode=$mode&hook=$hook\">pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" />"; + $return .= " id&e=$entry->id&mode=$mode&hook=$hook\">pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"" . get_string("edit") . "\" />"; } elseif ( $importedentry ) { $return .= " " . get_string("exportedentry","glossary") . ""; } @@ -910,7 +910,7 @@ function glossary_print_entry_approval($cm, $entry, $mode,$align="right",$insid if ($insidetable) { echo '
'; } - echo ''; + echo ''.get_string('approve','glossary').''; if ($insidetable) { echo '
'; } diff --git a/mod/glossary/view.php b/mod/glossary/view.php index f75815875b..6116a65169 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -252,7 +252,7 @@ $printicon = ''; if ( $isuserframe and $mode != 'search') { if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) { - $printicon = " id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\">\"\""; + $printicon = " id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\">\""."; } } print_heading(format_string($glossary->name).$printicon); diff --git a/mod/hotpot/index.php b/mod/hotpot/index.php index 3ff0c2d019..3be9cd0af4 100644 --- a/mod/hotpot/index.php +++ b/mod/hotpot/index.php @@ -307,10 +307,10 @@ // Show the zoom boxes if ($displaysection==$hotpot->section) { $strshowall = get_string('showall'.$course->format); - $printsection .= '

'; + $printsection .= '
'.$strshowall.'
'; } else { $strshowone = get_string('showonly'.preg_replace('|s$|', '', $course->format, 1), '', $hotpot->section); - $printsection .= '

'; + $printsection .= '
'.$strshowone.'
'; } } } diff --git a/mod/resource/type/directory/resource.class.php b/mod/resource/type/directory/resource.class.php index 8b9e6e23d4..a880f783b1 100644 --- a/mod/resource/type/directory/resource.class.php +++ b/mod/resource/type/directory/resource.class.php @@ -95,9 +95,11 @@ function display() { $strname = get_string("name"); $strsize = get_string("size"); $strmodified = get_string("modified"); + $strfolder = get_string("folder"); + $strfile = get_string("file"); echo ''; - echo "". + echo "". "". "". ""; @@ -119,17 +121,14 @@ function display() { } if ($icon == 'folder.gif') { - echo ''; + echo ''; echo ''; + echo ''; echo ''; echo ''; diff --git a/mod/resource/type/repository/repository.html b/mod/resource/type/repository/repository.html index d32cd7ac5b..bb4ba8619a 100644 --- a/mod/resource/type/repository/repository.html +++ b/mod/resource/type/repository/repository.html @@ -41,7 +41,7 @@ "; $n++; } diff --git a/mod/workshop/submissions.php b/mod/workshop/submissions.php index 4fec04cad8..9e6ccc1aa4 100644 --- a/mod/workshop/submissions.php +++ b/mod/workshop/submissions.php @@ -271,7 +271,7 @@ $ffurl = "file.php?file=/$filearea/$file"; } echo "\n"; } } else {
$strname
$strname$strsize$strmodified
'; - echo "pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"\"/>"; - echo '
'; - echo "id}&subdir=$subdir/$file\">$file"; + echo "id}&subdir=$subdir/$file\">"; + echo "pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"$strfolder\" /> $file"; } else { - echo '
'; - echo "pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"\"/>"; - echo '
'; - link_to_popup_window($relativeurl, "resourcedirectory{$resource->id}", "$file", 450, 600, ''); + link_to_popup_window($relativeurl, "resourcedirectory{$resource->id}", "pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"$strfile\" /> $file", 450, 600, ''); } echo ' 
- + parent != $nextsco->parent) && (($level==0) || (($level>0) && ($nextsco->parent == $sco->identifier)))) { $sublist++; } else { - $report .= ''; + $report .= ''; } if ($sco->launch) { diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 11dd4d99cc..ca97800079 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -487,7 +487,7 @@ function survey_print_graph($url) { } else { echo "wwwroot/mod/survey/graph.php?$url\" alt=\"\" />"; + " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\" alt=\"".get_string("surveygraph", "survey")."\" />"; } } diff --git a/mod/workshop/locallib.php b/mod/workshop/locallib.php index 5a5a9bf683..4a9a134b9d 100644 --- a/mod/workshop/locallib.php +++ b/mod/workshop/locallib.php @@ -2864,7 +2864,7 @@ function workshop_print_submission($workshop, $submission) { } echo "
".get_string("attachment", "workshop")." $n: \n"; echo "pixpath/f/$icon\" height=\"16\" width=\"16\" - border=\"0\" alt=\"File\" />". + border=\"0\" alt=\"".get_string('file')."\" />". " wwwroot/$ffurl\">$file
".get_string("attachment", "workshop")." $n: pixpath/f/$icon\" - height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />". + height=\"16\" width=\"16\" border=\"0\" alt=\"".get_string('file')."\" />". " wwwroot/$ffurl\">$file