Translate fields in mismatch suggestion to user's language

This commit is contained in:
Nathan Gray 2015-11-30 23:09:11 +00:00
parent 2dba0e5f53
commit a2833ecbe1

View File

@ -476,7 +476,7 @@
$edit_link, $definition->name );
}
$actions[] = lang('Edit your file to match the definition:') . ' '
. implode(array_intersect_key($options['csv_fields'],$options['field_mapping']),', ');
. implode(array_map('lang',array_intersect_key($options['csv_fields'],$options['field_mapping'])),', ');
$message[] = "\n<li>".implode($actions,"\n<li>");
}
}