Project

General

Profile

« Previous | Next » 

Revision 2098

Added by darkviper over 10 years ago

! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate

View differences:

index.php
35 35
// $template->debug = true;
36 36
$template->set_file('page', 'admintools.htt');
37 37
$template->set_block('page', 'main_block', 'main');
38

  
38
$oTrans = Translate::getInstance();
39
$oTrans->enableAddon('admin\\admintools');
40
$template->set_var($oTrans->getLangArray());
39 41
// Insert required template variables
40 42
$template->set_var('ADMIN_URL', ADMIN_URL);
41 43
$template->set_var('THEME_URL', THEME_URL);
42
$template->set_var('HEADING_ADMINISTRATION_TOOLS', $HEADING['ADMINISTRATION_TOOLS']);
43 44

  
44 45
// Insert tools into tool list
45 46
$template->set_block('main_block', 'tool_list_block', 'tool_list');
......
78 79

  
79 80
}
80 81

  
81
$template->set_var('TOOL_LIST', ($bHasToolRights==false) ? $TEXT['NONE'].' '.$TEXT['MODULE_PERMISSIONS'] : ' ');
82
$template->set_var('TOOL_LIST', ($bHasToolRights==false) ? $oTrans->TEXT_NONE.' '.$oTrans->TEXT_MODULE_PERMISSIONS : ' ');
82 83

  
83 84
//template->set_var('TOOL_LIST', '<li>&nbsp;</li>');
84 85
// Parse template objects output

Also available in: Unified diff