diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index ce5d4ec55eb..25352372d8d 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -34,8 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/admin/dolistore/class/dolistore.class.php';
-$langs->load("errors");
-$langs->load("admin");
+$langs->loadLangs(array("errors","admin","modulebuilder"));
$mode=GETPOST('mode', 'alpha');
if (empty($mode)) $mode='common';
@@ -1009,9 +1008,21 @@ if ($mode == 'develop')
print '
';
- print '
'.$langs->trans("ClassFile").' :
'.($realpathtoclass?'':'').$pathtoclass.($realpathtoclass?'':'').'';
+ print '
'.$langs->trans("ClassFile").' :
'.($realpathtoclass?'':'').$pathtoclass.($realpathtoclass?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("ApiClassFile").' :
'.($realpathtoapi?'':'').$pathtoapi.($realpathtoapi?'':'').'';
+ print '
'.$langs->trans("ApiClassFile").' :
'.($realpathtoapi?'':'').$pathtoapi.($realpathtoapi?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
'.$langs->trans("GoToApiExplorer").'';
print '
';
- print '
'.$langs->trans("TestClassFile").' :
'.($realpathtophpunit?'':'').$pathtophpunit.($realpathtophpunit?'':'').'';
+ print '
'.$langs->trans("TestClassFile").' :
'.($realpathtophpunit?'':'').$pathtophpunit.($realpathtophpunit?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
print '
';
- print '
'.$langs->trans("PageForLib").' :
'.($realpathtolib?'':'').$pathtolib.($realpathtodocument?'':'').'';
+ print '
'.$langs->trans("PageForLib").' :
'.($realpathtolib?'':'').$pathtolib.($realpathtodocument?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("PageForPicto").' :
'.($realpathtopicto?'':'').$pathtopicto.($realpathtopicto?'':'').'';
+ print '
'.$langs->trans("Image").' :
'.($realpathtopicto?'':'').$pathtopicto.($realpathtopicto?'':'').'';
//print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
print '
';
- print '
'.$langs->trans("SqlFile").' :
'.($realpathtosql?'':'').$pathtosql.($realpathtosql?'':'').'';
+ print '
'.$langs->trans("SqlFile").' :
'.($realpathtosql?'':'').$pathtosql.($realpathtosql?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
- print '
'.$langs->trans("DropTableIfEmpty").'';
+ print '
'.$langs->trans("DropTableIfEmpty").'';
//print '
'.$langs->trans("RunSql").'';
print '
';
- print '
'.$langs->trans("SqlFileExtraFields").' :
'.($realpathtosqlextra?'':'').$pathtosqlextra.($realpathtosqlextra?'':'').'';
+ print '
'.$langs->trans("SqlFileExtraFields").' :
'.($realpathtosqlextra?'':'').$pathtosqlextra.($realpathtosqlextra?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
//print '
'.$langs->trans("RunSql").'';
print '
';
- print '
'.$langs->trans("SqlFileKey").' :
'.($realpathtosqlkey?'':'').$pathtosqlkey.($realpathtosqlkey?'':'').'';
+ print '
'.$langs->trans("SqlFileKey").' :
'.($realpathtosqlkey?'':'').$pathtosqlkey.($realpathtosqlkey?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
//print '
'.$langs->trans("RunSql").'';
print '
';
@@ -1485,19 +1528,19 @@ elseif (! empty($module))
$urlofcard = dol_buildpath($pathtocard, 1);
print '
';
- print '
'.$langs->trans("PageForList").' :
'.($realpathtosql?'':'').$pathtolist.($realpathtosql?'':'').'';
+ print '
'.$langs->trans("PageForList").' :
'.($realpathtosql?'':'').$pathtolist.($realpathtosql?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("PageForCreateEditView").' :
'.($realpathtocard?'':'').$pathtocard.($realpathtocard?'':'').'?action=create';
+ print '
'.$langs->trans("PageForCreateEditView").' :
'.($realpathtocard?'':'').$pathtocard.($realpathtocard?'':'').'?action=create';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("PageForAgendaTab").' :
'.($realpathtoagenda?'':'').$pathtoagenda.($realpathtoagenda?'':'').'';
+ print '
'.$langs->trans("PageForAgendaTab").' :
'.($realpathtoagenda?'':'').$pathtoagenda.($realpathtoagenda?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("PageForDocumentTab").' :
'.($realpathtodocument?'':'').$pathtodocument.($realpathtodocument?'':'').'';
+ print '
'.$langs->trans("PageForDocumentTab").' :
'.($realpathtodocument?'':'').$pathtodocument.($realpathtodocument?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
- print '
'.$langs->trans("PageForNoteTab").' :
'.($realpathtonote?'':'').$pathtonote.($realpathtonote?'':'').'';
+ print '
'.$langs->trans("PageForNoteTab").' :
'.($realpathtonote?'':'').$pathtonote.($realpathtonote?'':'').'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
@@ -1742,13 +1785,14 @@ elseif (! empty($module))
print $langs->trans("MenusDefDesc", '
'.$langs->trans('Menus').'').'
';
print '
';
- print '
'.$langs->trans("DescriptorFile").' :
'.$pathtofile.'';
+ print '
'.$langs->trans("DescriptorFile").' :
'.$pathtofile.'';
print '
'.img_picto($langs->trans("Edit"), 'edit').'';
print '
';
print '
';
- //print load_fiche_titre($langs->trans("MenusList"), '', '');
+ print load_fiche_titre($langs->trans("ListOfMenusEntries"), '', '');
+ print 'TODO...';
print '