// Fix AdminController translations not being parsed
This commit is contained in:
@@ -159,7 +159,6 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
/**
|
||||
* Type = image
|
||||
* @TODO
|
||||
*/
|
||||
public function displayOptionTypeImage($key, $field, $value)
|
||||
{
|
||||
@@ -187,7 +186,6 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
/**
|
||||
* Type = price
|
||||
* @TODO
|
||||
*/
|
||||
public function displayOptionTypePrice($key, $field, $value)
|
||||
{
|
||||
@@ -198,8 +196,6 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
/**
|
||||
* Type = disabled
|
||||
*
|
||||
* @TODO
|
||||
*/
|
||||
public function displayOptionTypeDisabled($key, $field, $value)
|
||||
{
|
||||
|
||||
@@ -904,10 +904,14 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
// count will contain the number of expressions of the page
|
||||
$count = 0;
|
||||
$missing_translations = array();
|
||||
// parsing .php files
|
||||
|
||||
// Parse BO php files for translations
|
||||
// Add Controllers
|
||||
$tabs = scandir(_PS_ADMIN_CONTROLLER_DIR_);
|
||||
// Add Helpers
|
||||
$tabs = array_merge($tabs, Tools::scandir(_PS_ADMIN_CONTROLLER_DIR_, 'php', '../../classes/helper'));
|
||||
$tabs[] = '../../classes/AdminController.php';
|
||||
// Add parent AdminController
|
||||
$tabs[] = '../../classes/controller/AdminController.php';
|
||||
|
||||
foreach ($tabs as $tab)
|
||||
if (preg_match('/^(.*)\.php$/', $tab) && file_exists($tpl = _PS_ADMIN_CONTROLLER_DIR_.$tab))
|
||||
|
||||
Reference in New Issue
Block a user