- // Transfer data to constants for the template
- define('__GENDER', TRANSLATE_GENDER($data['gender']));
- define('__SNAME' , $data['surname']);
- define('__FNAME' , $data['family']);
- define('__GIFT' , TRANSLATE_COMMA($data['points']));
+ // "Translate" some data
+ $data['gender'] = translateGender($data['gender']);
+ $data['points'] = translateComma($data['points']);