| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo |
| 4 |
* @subpackage Languages |
* @subpackage Languages |
| 5 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @copyright Refer to copyright.php |
| 6 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 7 |
* |
* @author Mambo Foundation Inc see README.php |
|
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
|
|
* that Mambo remained free Open Source software owned and managed by the community. |
|
|
* Mambo is Free Software |
|
| 8 |
*/ |
*/ |
| 9 |
|
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); |
| 10 |
class ToolBar |
class ToolBar |
| 11 |
{ |
{ |
| 12 |
var $request = array(); |
var $request = array(); |
| 13 |
var $map = array(); |
var $map = array(); |
| 14 |
|
var $has_gettext; |
| 15 |
|
|
| 16 |
function ToolBar() |
function ToolBar() |
| 17 |
{ |
{ |
| 18 |
$this->request = $_REQUEST; |
$this->request = $_REQUEST; |
| 19 |
|
$gettext_admin = new PHPGettextAdmin(); |
| 20 |
|
$this->has_gettext = $gettext_admin->has_gettext; |
| 21 |
} |
} |
| 22 |
function display($method = null) |
function display($method = null) |
| 23 |
{ |
{ |
| 64 |
|
|
| 65 |
function language() { |
function language() { |
| 66 |
mosMenuBar::startTable(); |
mosMenuBar::startTable(); |
| 67 |
if (!is_dir(mamboCore::get('rootPath').'/language/untranslated')) { |
if (!is_dir(mamboCore::get('rootPath').'/language/untranslated') && $this->has_gettext) { |
| 68 |
mosMenuBar::customX( 'extract', 'query.png', 'query.png', T_('Scan Sources'), false ); |
mosMenuBar::customX( 'extract', 'query.png', 'query.png', T_('Scan Sources'), false ); |
| 69 |
mosMenuBar::spacer(50); |
mosMenuBar::spacer(50); |
| 70 |
} |
} |
| 71 |
|
mosMenuBar::custom( 'install', 'move.png', 'move_f2.png', T_('Install'), false ); |
| 72 |
|
mosMenuBar::spacer(); |
| 73 |
mosMenuBar::custom( 'translate', 'edit.png', 'edit_f2.png', T_('Manage Translations'), true ); |
mosMenuBar::custom( 'translate', 'edit.png', 'edit_f2.png', T_('Manage Translations'), true ); |
| 74 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
| 75 |
mosMenuBar::custom( 'export', 'upload.png', 'upload_f2.png', T_('Export')); |
mosMenuBar::custom( 'export', 'upload.png', 'upload_f2.png', T_('Export')); |