Revision 1712
Added by Dietmar about 12 years ago
index.php | ||
---|---|---|
4 | 4 |
* @category admin |
5 | 5 |
* @package languages |
6 | 6 |
* @author Ryan Djurovich, WebsiteBaker Project |
7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
8 | 8 |
* @link http://www.websitebaker2.org/ |
9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
10 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
23 | 23 |
|
24 | 24 |
// Setup template object, parse vars to it, then parse it |
25 | 25 |
// Create new template object |
26 |
$template = new Template(dirname($admin->correct_theme_source('languages.htt'))); |
|
26 |
$template = new Template(dirname($admin->correct_theme_source('languages.htt')),'keep');
|
|
27 | 27 |
// $template->debug = true; |
28 | 28 |
$template->set_file('page', 'languages.htt'); |
29 | 29 |
$template->set_block('page', 'main_block', 'main'); |
... | ... | |
50 | 50 |
$template->set_var('DISPLAY_LIST', 'hide'); |
51 | 51 |
} |
52 | 52 |
|
53 |
// Insert language headings |
|
54 |
$template->set_var(array( |
|
55 |
'HEADING_INSTALL_LANGUAGE' => $HEADING['INSTALL_LANGUAGE'], |
|
56 |
'HEADING_UNINSTALL_LANGUAGE' => $HEADING['UNINSTALL_LANGUAGE'], |
|
57 |
'HEADING_LANGUAGE_DETAILS' => $HEADING['LANGUAGE_DETAILS'] |
|
58 |
) |
|
59 |
); |
|
53 |
$mLang = ModLanguage::getInstance(); |
|
54 |
$mLang->setLanguage(ADMIN_PATH.'/addons/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
|
55 |
|
|
56 |
/*-- insert all needed vars from language files ----------------------------------------*/ |
|
57 |
$template->set_var($mLang->getLangArray()); |
|
60 | 58 |
// insert urls |
61 | 59 |
$template->set_var(array( |
62 | 60 |
'ADMIN_URL' => ADMIN_URL, |
... | ... | |
67 | 65 |
); |
68 | 66 |
// Insert language text and messages |
69 | 67 |
$template->set_var(array( |
68 |
'URL_ADVANCED' => '<b>'.$TEXT['ADVANCED'].'</b>' , |
|
70 | 69 |
'URL_MODULES' => $admin->get_permission('modules') ? |
71 |
'<a href="' . ADMIN_URL . '/modules/index.php">' . $MENU['MODULES'] . '</a>' : '', |
|
72 |
'URL_ADVANCED' => '          ', |
|
70 |
'<a href="' . ADMIN_URL . '/modules/index.php">' . $mLang->MENU_MODULES . '</a>' : '<b>'.$mLang->MENU_MODULES.'</b>', |
|
73 | 71 |
'URL_TEMPLATES' => $admin->get_permission('templates') ? |
74 |
'<a href="' . ADMIN_URL . '/templates/index.php">' . $MENU['TEMPLATES'] . '</a>' : '', |
|
75 |
'TEXT_INSTALL' => $TEXT['INSTALL'], |
|
76 |
'TEXT_UNINSTALL' => $TEXT['UNINSTALL'], |
|
77 |
'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'], |
|
78 |
'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'] |
|
72 |
'<a href="' . ADMIN_URL . '/templates/index.php">' . $mLang->MENU_TEMPLATES . '</a>' : '<b>'.$mLang->MENU_TEMPLATES.'</b>', |
|
73 |
'HEADING_CHANGE_TEMPLATE_NOTICE' => '' |
|
79 | 74 |
) |
80 | 75 |
); |
81 | 76 |
|
Also available in: Unified diff
! update folder admin/addons admin/skel/htt