]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14589 - XHTML Strrrict, and more consistent tool tips.
authortjhunt <tjhunt>
Fri, 15 Aug 2008 04:41:55 +0000 (04:41 +0000)
committertjhunt <tjhunt>
Fri, 15 Aug 2008 04:41:55 +0000 (04:41 +0000)
files/index.php
lang/en_utf8/moodle.php

index 4f0af93ccfb9913964bde3429dcd7db251e12fc7..a7c65290fc39456e80ed9673263c7efc9988600c 100644 (file)
 
         echo '<br />';
 
-        echo '<form enctype="multipart/form-data" method="post" action="index.php">';
+        echo '<form enctype="multipart/form-data" method="post" action="index.php"><div>';
         echo '<input type="hidden" name="contextid" value="'.$contextid.'" />';
         echo '<input type="hidden" name="filearea" value="'.$filearea.'" />';
         echo '<input type="hidden" name="itemid" value="'.$itemid.'" />';
@@ -273,7 +273,7 @@ function displaydir($file_info) {
 
                 $icon = mimeinfo_from_type("icon", $mimetype);
                 if ($downloadurl = $child_info->get_url(true)) {
-                    $downloadurl = "&nbsp;<a href=\"$downloadurl\"><img src=\"$CFG->pixpath/t/down.gif\" class=\"iconsmall\" alt=\"$strdownload\" />";
+                    $downloadurl = "&nbsp;<a href=\"$downloadurl\" title=\"" . get_string('downloadfile') . "\"><img src=\"$CFG->pixpath/t/down.gif\" class=\"iconsmall\" alt=\"$strdownload\" /></a>";
                 } else {
                     $downloadurl = '';
                 }
@@ -281,7 +281,7 @@ function displaydir($file_info) {
                 if ($viewurl = $child_info->get_url()) {
                     $viewurl = "&nbsp;".link_to_popup_window ($viewurl, "display",
                                                      "<img src=\"$CFG->pixpath/t/preview.gif\" class=\"iconsmall\" alt=\"$strfile\" />&nbsp;",
-                                                     480, 640, null, null, true);
+                                                     480, 640, get_string('viewfileinpopup'), null, true);
                 } else {
                     $viewurl = '';
                 }
index ae2c774a9095ceb65d06fec8ff33a4341842e424..213ba9b3dc84728b97ab6f0213e4c0552c11e371 100644 (file)
@@ -408,6 +408,7 @@ $string['documentation'] = 'Moodle Documentation';
 $string['donotask'] = 'Do Not Ask';
 $string['down'] = 'Down';
 $string['downloadexcel'] = 'Download in Excel format';
+$string['downloadfile'] = 'Download file';
 $string['downloadods'] = 'Download in ODS format';
 $string['downloadtext'] = 'Download in text format';
 $string['doyouagree'] = 'Have you read these conditions and understood them?';
@@ -1587,6 +1588,7 @@ $string['usethiscourse'] = 'Use this course';
 $string['usingexistingcourse'] = 'Using existing course';
 $string['version'] = 'Version';
 $string['view'] = 'View';
+$string['viewfileinpopup'] = 'View file in a popup window';
 $string['views'] = 'Views';
 $string['viewsolution'] = 'view solution';
 $string['virusfound'] = 'Attention administrator! Clam AV has found a virus in a file uploaded by $a->user for the course $a->course. Here is the output of clamscan:';