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

upgrade to new directory tree

some spelling changes
parent d7843e0e
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,11 @@ ...@@ -23,10 +23,11 @@
* \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");
$langs->load("admin"); $langs->load("admin");
$langs->load("@ftp");
// Security check // Security check
if (!$user->admin) accessforbidden(); if (!$user->admin) accessforbidden();
......
...@@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php"); ...@@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php");
// Load traductions files // Load traductions files
$langs->load("ftp"); $langs->load("@ftp");
$langs->load("companies"); $langs->load("companies");
$langs->load("other"); $langs->load("other");
......
# Dolibarr language file - fr_FR - ftp # Dolibarr language file - fr_FR - ftp
CHARSET=UTF-8 CHARSET=UTF-8
FTPClientSetup=Configuration du module FTP Client FTPClientSetup=Configuration du module FTP Client
NewFTPClient=Nouvelle connexion FTP cliente NewFTPClient=Nouvelle configuration de connexion FTP
FTPArea=Espace FTP FTPArea=Espace FTP
FTPAreaDesc=Cet écran vous présente une vue de serveur FTP FTPAreaDesc=Cet écran vous présente une vue de serveur FTP
SetupOfFTPClientModuleNotComplete=La configuration du module FTP Client semble incomplète SetupOfFTPClientModuleNotComplete=La configuration du module FTP Client semble incomplète
...@@ -9,4 +9,4 @@ FTPFeatureNotSupportedByYourPHP=Votre PHP ne supporte pas les fonctions FTP ...@@ -9,4 +9,4 @@ FTPFeatureNotSupportedByYourPHP=Votre PHP ne supporte pas les fonctions FTP
FailedToConnectToFTPServer=Echec de connexion au serveur FTP (serveur: %s, port %s) FailedToConnectToFTPServer=Echec de connexion au serveur FTP (serveur: %s, port %s)
FailedToConnectToFTPServerWithCredentials=Echec de login avec le login/mot de passe FTP configuré FailedToConnectToFTPServerWithCredentials=Echec de login avec le login/mot de passe FTP configuré
FTPFailedToRemoveFile=Echec suppression fichier <b>%s</b>. FTPFailedToRemoveFile=Echec suppression fichier <b>%s</b>.
FTPFailedToRemoveDir=Echec suppression répertoire <b>%s</b> (Vérifiez les permissions et que le répertoire est vide). FTPFailedToRemoveDir=Echec suppression répertoire <b>%s</b> (Vérifiez les permissions et que le répertoire soit vide).
\ No newline at end of file \ No newline at end of file
...@@ -30,7 +30,7 @@ $user->getrights('ecm'); ...@@ -30,7 +30,7 @@ $user->getrights('ecm');
function llxHeader($head = '', $title='', $help_url='', $morehtml='') function llxHeader($head = '', $title='', $help_url='', $morehtml='')
{ {
global $conf,$langs,$user; global $conf,$langs,$user;
$langs->load("ftp"); $langs->load("@ftp");
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
......
...@@ -68,8 +68,11 @@ class modFTP extends DolibarrModules ...@@ -68,8 +68,11 @@ class modFTP extends DolibarrModules
// Data directories to create when module is enabled // Data directories to create when module is enabled
$this->dirs = array("/ftp/temp"); $this->dirs = array("/ftp/temp");
// Langs file within the module
$this->langfiles = array("@ftp");
// 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('ftpclient.php'); $this->config_page_url = array('ftpclient.php@ftp');
// 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment