Also accept the translated version of the column name when checking an imported file

This commit is contained in:
Nathan Gray 2013-04-01 23:27:16 +00:00
parent 47c07a45d5
commit 885a5fdfc7

View File

@ -356,7 +356,7 @@
// Skipped column in definition
continue;
}
elseif($index < count($options['csv_fields']) && strtoupper($options['csv_fields'][$index]) != strtoupper($header))
elseif($index < count($options['csv_fields']) && strtoupper($options['csv_fields'][$index]) != strtoupper($header) && strtoupper(lang($options['csv_fields'][$index])) != strtoupper($header))
{
// Problem
$message[] = lang("Column mismatch: %1 should be %2, not %3",