create lang's file and use new tree

This commit is contained in:
Philippe Grand 2010-04-19 16:55:32 +00:00
parent 921df5f94f
commit 952ddd7488
5 changed files with 14 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* \version $Id$ * \version $Id$
*/ */
require("../main.inc.php"); require("../../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
@ -35,8 +35,9 @@ if (!$user->admin)
accessforbidden(); accessforbidden();
$langs->load("admin"); //$langs->load("admin");
$langs->load("other"); $langs->load("other");
$langs->load("@externalsite");
$def = array(); $def = array();

View File

@ -27,6 +27,8 @@
require("../main.inc.php"); require("../main.inc.php");
$langs->load("@externalsite");
if (empty($conf->global->EXTERNALSITE_URL)) if (empty($conf->global->EXTERNALSITE_URL))
{ {
llxHeader(); llxHeader();

View File

@ -25,6 +25,8 @@
require ("../main.inc.php"); require ("../main.inc.php");
$langs->load("@externalsite");
top_htmlhead("",""); top_htmlhead("","");
top_menu("","","_top"); top_menu("","","_top");

View File

@ -0,0 +1,4 @@
# Dolibarr language file - fr_FR - externalsite
CHARSET=UTF-8
ExternalSiteSetup=Configuration du lien vers le site externe
ExternalSiteURL=URL du site externe

View File

@ -66,12 +66,14 @@ class modExternalSite extends DolibarrModules
$this->special = 1; $this->special = 1;
// Name of png file (without png) used for this module // Name of png file (without png) used for this module
$this->picto='bookmark'; $this->picto='bookmark';
// Call to inside lang's file
$this->langfiles = array("@externalsite");
// Data directories to create when module is enabled // Data directories to create when module is enabled
$this->dirs = array(); $this->dirs = array();
// Config pages. Put here list of php page names stored in admmin directory used to setup module // Config pages. Put here list of php page names stored in admmin directory used to setup module
$this->config_page_url = array("externalsite.php"); $this->config_page_url = array("externalsite.php@externalsite");
// Dependencies // Dependencies
$this->depends = array(); // List of modules id that must be enabled if this module is enabled $this->depends = array(); // List of modules id that must be enabled if this module is enabled