]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15402: display title attribut for show/hide image in the repository administration
authorjerome <jerome>
Wed, 10 Sep 2008 04:12:42 +0000 (04:12 +0000)
committerjerome <jerome>
Wed, 10 Sep 2008 04:12:42 +0000 (04:12 +0000)
lang/en_utf8/repository.php
lib/adminlib.php

index 2620b48d0bfd7b51e4a55be857ade98f5d4fa3a2..96965ea31dc144face318647131f7cfda7aa4480 100644 (file)
@@ -14,6 +14,8 @@ $string['attachment'] = 'Attachment';
 $string['back'] = '&lt; Back';
 $string['cacheexpire'] = 'Cache expire';
 $string['cachecleared'] = 'Cached files are removed';
+$string['clicktohide'] = 'Click here to hide';
+$string['clicktoshow'] = 'Click here to show';
 $string['close'] = 'Close';
 $string['cleancache'] = 'Clean my cache files';
 $string['copying'] = 'Copying';
index c64d664ee88ecafcfaec183acb57ff87339d554a..7c800b4b8a561f34dfe1647e03c1d45f829c3626 100644 (file)
@@ -5655,10 +5655,12 @@ class admin_setting_managerepository extends admin_setting {
             }
             $delete = '<a href="' . $this->baseurl . '&amp;delete=' .  $i->get_typename() . '">'
                         . $deletestr . '</a>' . "\n";
-            
+
+            $hidetitle = $i->get_visible() ? get_string('clicktohide', 'repository') : get_string('clicktoshow', 'repository');
             $hiddenshow = ' <a href="' . $this->baseurl . '&amp;hide=' . $i->get_typename() . '">'
                           .'<img src="' . $CFG->pixpath . '/i/' . ($i->get_visible() ? 'hide' : 'show') . '.gif"'
-                              .' alt="' . get_string($i->get_visible() ? 'hide' : 'show') . '" />'
+                              .' alt="' . $hidetitle . '" '
+                              .' title="' . $hidetitle . '" />'
                           .'</a>' . "\n";
 
              // display up/down link