[-] BO : fix #PSCFV-2504 : Now class PaymentModule can be translated

This commit is contained in:
lLefevre
2012-05-22 12:30:42 +00:00
parent 28886d9a90
commit 0a09286f20
2 changed files with 9 additions and 2 deletions
@@ -751,7 +751,8 @@ class AdminTranslationsControllerCore extends AdminController
_PS_ADMIN_CONTROLLER_DIR_.'/' => scandir(_PS_ADMIN_CONTROLLER_DIR_),
_PS_OVERRIDE_DIR_.'controllers/admin/' => scandir(_PS_OVERRIDE_DIR_.'controllers/admin/'),
_PS_CLASS_DIR_.'helper/' => scandir(_PS_CLASS_DIR_.'helper/'),
_PS_CLASS_DIR_.'controller/' => array('AdminController.php')
_PS_CLASS_DIR_.'controller/' => array('AdminController.php'),
_PS_CLASS_DIR_ => array('PaymentModule.php')
),
'tpl' => $this->listFiles(_PS_ADMIN_DIR_.'/themes/'),
'specific' => array(
@@ -1458,6 +1459,9 @@ class AdminTranslationsControllerCore extends AdminController
if ($prefix_key == 'Admin')
$prefix_key = 'AdminController';
if ($prefix_key == 'PaymentModule.php')
$prefix_key = 'PaymentModule';
// Get content for this file
$content = file_get_contents($file_path);