mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
New language file types: English_global.php (for plugin.xml terms) and English_log.php (for admin-log terms). Auto-detected when present and loaded automatically when needed.
This commit is contained in:
@@ -49,12 +49,16 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
// Main language file should automatically be loaded
|
||||
// Load language files for log messages
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_log_messages.php'); //... for core functions
|
||||
if(is_array($pref['logLanguageFile'])) //... and for any plugins which support it
|
||||
|
||||
if(is_array($pref['lan_log_list'])) //... and for any plugins which support it
|
||||
{
|
||||
foreach($pref['logLanguageFile'] as $path => $file)
|
||||
foreach($pref['lan_log_list'] as $path => $file)
|
||||
{
|
||||
$file = str_replace('--LAN--', e_LANGUAGE, $file);
|
||||
include_lan(e_PLUGIN.$path.'/'.$file);
|
||||
|
||||
echo "orig = ".$file." ";
|
||||
e107::lan($path,'log',true);
|
||||
//include_lan(e_PLUGIN.$path.'/'.$file);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user