Changeset 6590
- Timestamp:
- 09/07/08 08:27:08 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.5/amp_conf/htdocs/admin/page.modules.php
r6587 r6590 533 533 bindtextdomain($name,"modules/".$name."/i18n"); 534 534 bind_textdomain_codeset($name, 'utf8'); 535 536 $label_text = dgettext($name,$modules[$name]['name']); 537 if ($label_text == $modules[$name]['name']) { 538 $label_text = _($label_text); 535 $loc_domain = $name; 536 537 $name_text = dgettext($loc_domain,$modules[$name]['name']); 538 if ($name_text == $modules[$name]['name']) { 539 $name_text = _($name_text); 539 540 } 540 541 } else { 541 $label_text = _($modules[$name]['name']); 542 $name_text = _($modules[$name]['name']); 543 $loc_domain = false; 542 544 } 543 545 … … 546 548 // ---- module header 547 549 echo "\t\t<div class=\"moduleheader\" onclick=\"toggleInfoPane('infopane_".prep_id($name)."');\" >\n"; 548 //echo "\t\t\t<span class=\"modulename\"><a href=\"javascript:void(null);\">".(!empty($modules[$name]['name']) ? _($modules[$name]['name']) : $name)."</a></span>\n"; 549 echo "\t\t\t<span class=\"modulename\"><a href=\"javascript:void(null);\">".(!empty($label_text) ? $label_text : $name)."</a></span>\n"; 550 echo "\t\t\t<span class=\"modulename\"><a href=\"javascript:void(null);\">".(!empty($name_text) ? $name_text : $name)."</a></span>\n"; 550 551 echo "\t\t\t<span class=\"moduletype\">".$modules[$name]['type']."</span>\n"; 551 552 echo "\t\t\t<span class=\"moduleversion\">".(isset($modules[$name]['dbversion'])?$modules[$name]['dbversion']:' ')."</span>\n"; … … 614 615 if (isset($modules_online[$name]['attention']) && !empty($modules_online[$name]['attention'])) { 615 616 echo "\t\t\t\t<div class=\"tabbertab\" title=\""._("Attention")."\">\n"; 616 echo nl2br( $modules_online[$name]['attention']);617 echo nl2br( $loc_domain ? dgettext($loc_domain,$modules[$name]['attention']) : _($modules[$name]['attention']) ); 617 618 echo "\t\t\t\t</div>\n"; 618 619 } … … 692 693 if (isset($modules[$name]['description']) && !empty($modules[$name]['description'])) { 693 694 echo "<h5>".sprintf(_("Description for version %s"),$modules[$name]['version'])."</h5>"; 694 echo nl2br( $modules[$name]['description']);695 echo nl2br( $loc_domain ? dgettext($loc_domain,$modules[$name]['description']) : _($modules[$name]['description']) ); 695 696 } else { 696 697 echo _("No description is available."); … … 699 700 echo '<p>'._('More info').': <a href="'.$modules[$name]['info'].'" target="_new">'.$modules[$name]['info'].'</a></p>'; 700 701 } else { 701 echo '<p>'._('More info').': <a href="'."$freepbx_help_url&freepbx_module=".urlencode($name).'" target="help"> Get help for '.$modules[$name]['name'].'</a></p>';702 echo '<p>'._('More info').': <a href="'."$freepbx_help_url&freepbx_module=".urlencode($name).'" target="help">'.sprintf(_("Get help for %s"),$name_text).'</a></p>'; 702 703 } 703 704 echo "\t\t\t\t</div>\n"; … … 724 725 } 725 726 726 if ( isset($amp_conf['DEVEL']) && $amp_conf['DEVEL'] == 'true') {727 if ($amp_conf['DEVEL']) { 727 728 echo "\t\t\t\t<div class=\"tabbertab\" title=\""._("Debug")."\">\n"; 728 729 echo "\t\t\t\t<h5>".$name."</h5><pre>\n";
