| 34 |
|
|
| 35 |
class languagesToolbar extends ToolBar { |
class languagesToolbar extends ToolBar { |
| 36 |
|
|
| 37 |
var $map = array('index' => 'language', 'sort' => 'catalogs', 'new' => 'newlang', 'save' => 'edit', 'auto_translate' => 'edit', 'convert' => 'edit', 'apply' => 'edit'); |
var $map = array('index' => 'language','extract' => 'language', 'sort' => 'catalogs', 'new' => 'newlang', 'save' => 'edit', 'auto_translate' => 'edit', 'convert' => 'edit', 'apply' => 'edit'); |
| 38 |
|
|
| 39 |
function edit() { |
function edit() { |
| 40 |
mosMenuBar::startTable(); |
mosMenuBar::startTable(); |
| 41 |
if ($this->request['act'] != 'catalogs') { |
if ($this->request['act'] != 'catalogs') { |
| 42 |
mosMenuBar::custom( 'translate', 'copy.png', 'copy_f2.png', T_('Translate Strings'), false ); |
mosMenuBar::custom( 'translate', 'edit.png', 'edit_f2.png', T_('Manage Translations'), false ); |
| 43 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
| 44 |
} else { |
} else { |
| 45 |
mosMenuBar::custom( 'auto_translate', 'copy.png', 'copy_f2.png', T_('Auto Translate'), false ); |
mosMenuBar::custom( 'auto_translate', 'copy.png', 'copy_f2.png', T_('Auto Translate'), false ); |
| 64 |
|
|
| 65 |
function language() { |
function language() { |
| 66 |
mosMenuBar::startTable(); |
mosMenuBar::startTable(); |
| 67 |
mosMenuBar::custom( 'translate', 'copy.png', 'copy_f2.png', T_('Translate Strings'), false ); |
if (!is_dir(mamboCore::get('rootPath').'/language/untranslated')) { |
| 68 |
|
mosMenuBar::customX( 'extract', 'query.png', 'query.png', T_('Scan Sources'), false ); |
| 69 |
|
mosMenuBar::spacer(50); |
| 70 |
|
} |
| 71 |
|
mosMenuBar::custom( 'translate', 'edit.png', 'edit_f2.png', T_('Manage Translations'), true ); |
| 72 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
| 73 |
mosMenuBar::custom( 'export', 'upload.png', 'upload_f2.png', T_('Export')); |
mosMenuBar::custom( 'export', 'upload.png', 'upload_f2.png', T_('Export')); |
| 74 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
| 95 |
function catalogs() |
function catalogs() |
| 96 |
{ |
{ |
| 97 |
mosMenuBar::startTable(); |
mosMenuBar::startTable(); |
| 98 |
/*mosMenuBar::customX( 'extract', 'upload.png', 'upload_f2.png', T_('Extract Strings'), false ); |
mosMenuBar::customX( 'update', 'publish.png', 'publish_f2.png', T_('Update'), true ); |
|
mosMenuBar::spacer();*/ |
|
|
mosMenuBar::customX( 'update', 'publish.png', 'publish_f2.png', T_('Update'), false ); |
|
| 99 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
|
/* mosMenuBar::customX( 'extract', 'publish.png', 'publish_f2.png', T_('Extract'), false ); |
|
|
mosMenuBar::spacer();*/ |
|
| 100 |
mosMenuBar::editListX( 'edit' ); |
mosMenuBar::editListX( 'edit' ); |
| 101 |
mosMenuBar::spacer(); |
mosMenuBar::spacer(); |
| 102 |
mosMenuBar::cancel(); |
mosMenuBar::cancel(); |