// Fix AdminController translations not being parsed

This commit is contained in:
tDidierjean
2012-02-08 17:58:35 +00:00
parent 44724d4d6d
commit 7400747edf
2 changed files with 6 additions and 6 deletions

View File

@@ -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)
{

View File

@@ -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))