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).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
| $Revision: 1.62 $
| $Date: 2008-12-29 22:30:16 $
| $Revision: 1.63 $
| $Date: 2008-12-30 09:44:17 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -766,7 +766,7 @@ class e107plugin
// First of all, see if there's a language file specific to install
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

View File

@ -1,13 +1,13 @@
<?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">
<author name="jalist / cameron / McFly / Barry / Lisa_ / steved" url="http://e107.org" />
<description>EC_ADLAN_A206</description>
<readMe>readme.pdf</readMe>
<folder>calendar_menu</folder>
<installLanguageFile filename="languages/English_install.php" />
<installLanguageFile filename="languages/--LAN--_install.php" />
<logLanguageFile filename="languages/--LAN--_log.php" />
<administration>
<configFile>admin_config.php</configFile>