1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

Support multi-language install language file

This commit is contained in:
e107steved 2008-12-30 09:44:23 +00:00
parent b59c59ce1a
commit d387caf6a1
2 changed files with 10 additions and 10 deletions

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
| $Revision: 1.62 $ | $Revision: 1.63 $
| $Date: 2008-12-29 22:30:16 $ | $Date: 2008-12-30 09:44:17 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@ -748,25 +748,25 @@ class e107plugin
if(!file_exists($path.'plugin.xml') || $function == '') if(!file_exists($path.'plugin.xml') || $function == '')
{ {
$error[] = EPL_ADLAN_77; $error[] = EPL_ADLAN_77;
$canContinue = FALSE; $canContinue = FALSE;
} }
if($canContinue && $this->parse_plugin_xml($plug['plugin_path'])) if($canContinue && $this->parse_plugin_xml($plug['plugin_path']))
{ {
$plug_vars = $this->plug_vars; $plug_vars = $this->plug_vars;
} }
else else
{ {
$error[] = EPL_ADLAN_76; $error[] = EPL_ADLAN_76;
$canContinue = FALSE; $canContinue = FALSE;
} }
// First of all, see if there's a language file specific to install // First of all, see if there's a language file specific to install
if (isset($plug_vars['installLanguageFile']) && isset($plug_vars['installLanguageFile']['@attributes']['filename'])) if (isset($plug_vars['installLanguageFile']) && isset($plug_vars['installLanguageFile']['@attributes']['filename']))
{ {
include_lan($path.$plug_vars['installLanguageFile']['@attributes']['filename']); include_lan($path.str_replace('--LAN--',e_LANGUAGE, $plug_vars['installLanguageFile']['@attributes']['filename']));
} }
// Next most important, if installing or upgrading, check that any dependencies are met // Next most important, if installing or upgrading, check that any dependencies are met

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Id: plugin.xml,v 1.4 2008-12-03 22:29:58 e107steved Exp $ --> <!-- $Id: plugin.xml,v 1.5 2008-12-30 09:44:23 e107steved Exp $ -->
<e107Plugin name="EC_ADLAN_1" version="3.70" compatibility="0.8" installRequired="true"> <e107Plugin name="EC_ADLAN_1" version="3.70" compatibility="0.8" installRequired="true">
<author name="jalist / cameron / McFly / Barry / Lisa_ / steved" url="http://e107.org" /> <author name="jalist / cameron / McFly / Barry / Lisa_ / steved" url="http://e107.org" />
<description>EC_ADLAN_A206</description> <description>EC_ADLAN_A206</description>
<readMe>readme.pdf</readMe> <readMe>readme.pdf</readMe>
<folder>calendar_menu</folder> <folder>calendar_menu</folder>
<installLanguageFile filename="languages/English_install.php" /> <installLanguageFile filename="languages/--LAN--_install.php" />
<logLanguageFile filename="languages/--LAN--_log.php" /> <logLanguageFile filename="languages/--LAN--_log.php" />
<administration> <administration>
<configFile>admin_config.php</configFile> <configFile>admin_config.php</configFile>