Changeset 11903
- Timestamp:
- 03/22/11 21:04:28 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/core/page.advancedsettings.php
r11892 r11903 86 86 if ($display_friendly_name) { 87 87 $name_label_raw = $c['name']; 88 $description_raw = $c['description']; 88 89 if ($c['module'] && extension_loaded('gettext') && is_dir("modules/".$c['module']."/i18n")) { 89 90 bindtextdomain($c['module'],"modules/".$c['module']."/i18n"); 90 91 bind_textdomain_codeset($c['module'], 'utf8'); 91 92 $name_label = dgettext($c['module'],$name_label_raw); 93 $tt_description = dgettext($c['module'],$description_raw); 92 94 if ($name_label == $name_label_raw) { 93 95 $name_label = _($name_label_raw); 94 96 } 97 if ($tt_description == $description_raw) { 98 $tt_description = _($description_raw); 99 } 95 100 } else { 96 101 $name_label = _($name_label_raw); 102 $tt_description = _($description_raw); 97 103 } 98 104 } else { 99 105 $name_label = $c['keyword']; 106 $tt_description = $c['description']; 100 107 } 101 108 … … 115 122 $default_val .= '<br />'.sprintf(_("Friendly Name: %s"),$c['name']); 116 123 } 117 echo '<tr><td><a href="javascript:void(null)" class="info">'.$name_label.'<span>'.$ c['description'].'<br /><br >'.$default_val.'</span></a></td>';124 echo '<tr><td><a href="javascript:void(null)" class="info">'.$name_label.'<span>'.$tt_description.'<br /><br >'.$default_val.'</span></a></td>'; 118 125 echo '<td>'; 119 126 switch ($c['type']) {
