diff --git a/htdocs/langs/en_US/modulebuilder.lang b/htdocs/langs/en_US/modulebuilder.lang
index cc55c7ba10a..a1c35515f9d 100644
--- a/htdocs/langs/en_US/modulebuilder.lang
+++ b/htdocs/langs/en_US/modulebuilder.lang
@@ -105,6 +105,7 @@ InitStructureFromExistingTable=Build the structure array string of an existing t
UseAboutPage=Disable the about page
UseDocFolder=Disable the documentation folder
UseSpecificReadme=Use a specific ReadMe
+ContentOfREADMECustomized=Note: The content of the README.md file has been replaced with the specific value defined into setup of ModuleBuilder.
RealPathOfModule=Real path of module
ContentCantBeEmpty=Content of file can't be empty
WidgetDesc=You can generate and edit here the widgets that will be embedded with your module.
diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php
index 53fe88cd0d2..1c3c899b19c 100644
--- a/htdocs/modulebuilder/index.php
+++ b/htdocs/modulebuilder/index.php
@@ -203,6 +203,7 @@ if ($dirins && $action == 'initmodule' && $modulename)
}
$result=dolReplaceInFile($phpfileval['fullname'], $arrayreplacement);
+
//var_dump($result);
if ($result < 0)
{
@@ -212,6 +213,7 @@ if ($dirins && $action == 'initmodule' && $modulename)
if (!empty($conf->global->MODULEBUILDER_SPECIFIC_README))
{
+ setEventMessages($langs->trans("ContentOfREADMECustomized"), null, 'warnings');
dol_delete_file($destdir.'/README.md');
file_put_contents($destdir.'/README.md', $conf->global->MODULEBUILDER_SPECIFIC_README);
}
@@ -1412,7 +1414,7 @@ if ($module == 'initmodule')
print '';
print '';
- print $langs->trans("ModuleBuilderDesc2", 'conf/conf.php', $newdircustom).' ';
+ //print ''.$langs->trans("ModuleBuilderDesc2", 'conf/conf.php', $newdircustom).' ';
print $langs->trans("EnterNameOfModuleDesc").' ';
print ' ';