// Translation all modules in mode DEV

This commit is contained in:
lLefevre committed 2012-02-24 13:08:51 +00:00
1 parent b5f5501226
commit dab0c04d3b
1 file changed
+3
@@ -1709,12 +1709,15 @@ class AdminTranslationsControllerCore extends AdminController
if (!$modules = scandir(_PS_MODULE_DIR_)) if (!$modules = scandir(_PS_MODULE_DIR_))
$this->displayWarning(Tools::displayError('There are no modules in your copy of PrestaShop. Use the Modules tab to activate them or go to our Website to download additional Modules.')); $this->displayWarning(Tools::displayError('There are no modules in your copy of PrestaShop. Use the Modules tab to activate them or go to our Website to download additional Modules.'));
else else
{
if (!_PS_MODE_DEV_)
{ {
// Get all module which are installed for to have a minimum of POST // Get all module which are installed for to have a minimum of POST
$modules = Module::getModulesInstalled(); $modules = Module::getModulesInstalled();
foreach ($modules as &$module) foreach ($modules as &$module)
$module = $module['name']; $module = $module['name'];
}
$arr_find_and_fill = array(); $arr_find_and_fill = array();