Project

General

Profile

« Previous | Next » 

Revision 1913

Added by Dietmar over 11 years ago

! /admin/addons/ change to new Translate class

View differences:

index.php
50 50
	$template->set_var('DISPLAY_LIST', 'hide');
51 51
}
52 52

  
53
$mLang = ModLanguage::getInstance();
54
$mLang->setLanguage(ADMIN_PATH.'/addons/languages/', LANGUAGE, DEFAULT_LANGUAGE);
53
//$mLang = ModLanguage::getInstance();
54
//$mLang->setLanguage(ADMIN_PATH.'/addons/languages/', LANGUAGE, DEFAULT_LANGUAGE);
55
$mLang = Translate::getinstance();
56
$mLang->enableAddon('admin\addons');
55 57

  
56 58
/*-- insert all needed vars from language files ----------------------------------------*/
57 59
$template->set_var($mLang->getLangArray());
......
65 67
		);
66 68
// Insert language text and messages
67 69
$template->set_var(array(
68
	'URL_ADVANCED' => '<b>'.$TEXT['ADVANCED'].'</b>' ,
70
	'URL_ADVANCED' => '<b>'.$mLang->TEXT_ADVANCED.'</b>' ,
69 71
	'URL_MODULES' => $admin->get_permission('modules') ?
70 72
		'<a href="' . ADMIN_URL . '/modules/index.php">' . $mLang->MENU_MODULES . '</a>' : '<b>'.$mLang->MENU_MODULES.'</b>',
71 73
	'URL_TEMPLATES' => $admin->get_permission('templates') ?

Also available in: Unified diff