From: jerome Date: Wed, 10 Sep 2008 04:12:42 +0000 (+0000) Subject: MDL-15402: display title attribut for show/hide image in the repository administration X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9dc2150ae3d767a53aae456769f062d4dd565d7;p=moodle.git MDL-15402: display title attribut for show/hide image in the repository administration --- diff --git a/lang/en_utf8/repository.php b/lang/en_utf8/repository.php index 2620b48d0b..96965ea31d 100644 --- a/lang/en_utf8/repository.php +++ b/lang/en_utf8/repository.php @@ -14,6 +14,8 @@ $string['attachment'] = 'Attachment'; $string['back'] = '< 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'; diff --git a/lib/adminlib.php b/lib/adminlib.php index c64d664ee8..7c800b4b8a 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -5655,10 +5655,12 @@ class admin_setting_managerepository extends admin_setting { } $delete = '' . $deletestr . '' . "\n"; - + + $hidetitle = $i->get_visible() ? get_string('clicktohide', 'repository') : get_string('clicktoshow', 'repository'); $hiddenshow = ' ' .'' . get_string($i->get_visible() ? 'hide' : 'show') . '' + .' alt="' . $hidetitle . '" ' + .' title="' . $hidetitle . '" />' .'' . "\n"; // display up/down link