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

This commit is contained in:
Nathan Gray 2013-04-03 16:08:02 +00:00
parent 3e94677b75
commit 8531bdd771

View File

@ -341,7 +341,7 @@
// Skipped column in definition // Skipped column in definition
continue; 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 // Problem
$message[] = lang("Column mismatch: %1 should be %2, not %3", $message[] = lang("Column mismatch: %1 should be %2, not %3",