I am using a new localization system on our site that requires all the displayed strings to be run through the SDK so all can be modified and localized on the go remotely. My only issue is that I am so far unable to run validation messages through this system as they are defined in the model. Is there any option how to do this for all, preferably in one go, without having to re-do the entire model system?
I am using following:
public $validate = array(
'name' => array(
'notEmpty' => array(
'rule' => array('notEmpty'),
'message' => 'Name of the application can not be empty',
),
),
);
and would like to achieve something like this (which obviously wouldn't work):
public $validate = array(
'name' => array(
'notEmpty' => array(
'rule' => array('notEmpty'),
'message' => MyLocalizationMethod('Name of the application can not be empty'),
),
),
);