[*] MO : change calls method Tools::displayError() by $name_module->l() && Translations
This commit is contained in:
1 parent
47fcfb11b2
commit
f97093af7a
60 files changed
+336
-278
No files matched your search
@@ -214,6 +214,9 @@ class ProductCommentCriterion extends ObjectModel
|
||||
|
||||
public static function getTypes()
|
||||
{
|
||||
return array(1 => Tools::displayError('Valid for the entire catalog'), 2 => Tools::displayError('Restricted to some categories'), 3 => Tools::displayError('Restricted to some products'));
|
||||
// Instance of module class for translations
|
||||
$module = new MailAlerts();
|
||||
|
||||
return array(1 => $module->l('Valid for the entire catalog', 'ProductCommentCriterion'), 2 => $module->l('Restricted to some categories', 'ProductCommentCriterion'), 3 => $module->l('Restricted to some products', 'ProductCommentCriterion'));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user