Skip to content
Snippets Groups Projects
Commit 952ddd74 authored by Philippe Grand's avatar Philippe Grand
Browse files

create lang's file and use new tree

parent 921df5f9
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
* \version $Id$
*/
require("../main.inc.php");
require("../../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
......@@ -35,8 +35,9 @@ if (!$user->admin)
accessforbidden();
$langs->load("admin");
//$langs->load("admin");
$langs->load("other");
$langs->load("@externalsite");
$def = array();
......
......@@ -27,6 +27,8 @@
require("../main.inc.php");
$langs->load("@externalsite");
if (empty($conf->global->EXTERNALSITE_URL))
{
llxHeader();
......
......@@ -25,6 +25,8 @@
require ("../main.inc.php");
$langs->load("@externalsite");
top_htmlhead("","");
top_menu("","","_top");
......
# Dolibarr language file - fr_FR - externalsite
CHARSET=UTF-8
ExternalSiteSetup=Configuration du lien vers le site externe
ExternalSiteURL=URL du site externe
\ No newline at end of file
......@@ -66,12 +66,14 @@ class modExternalSite extends DolibarrModules
$this->special = 1;
// Name of png file (without png) used for this module
$this->picto='bookmark';
// Call to inside lang's file
$this->langfiles = array("@externalsite");
// Data directories to create when module is enabled
$this->dirs = array();
// 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
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment