Commit 30c0ca2a authored by Nigel McNie's avatar Nigel McNie
Browse files

Make the 'male/female' string in the personal information composite translatable. Fixes #1742.

parent d262d728
......@@ -302,7 +302,11 @@ class ArtefactTypePersonalinformation extends ArtefactTypeResume {
$smarty = smarty();
$fields = array();
foreach (array_keys(ArtefactTypePersonalInformation::get_composite_fields()) as $field) {
$fields[get_string($field, 'artefact.resume')] = $this->get_composite($field);
$value = $this->get_composite($field);
if ($field == 'gender' && !empty($field)) {
$value = get_string($value, 'artefact.resume');
}
$fields[get_string($field, 'artefact.resume')] = $value;
}
$smarty->assign('fields', $fields);
return array('html' => $smarty->fetch('artefact:resume:fragments/personalinformation.tpl'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment