diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index 02eb3f1..91e8fd1 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -453,7 +453,7 @@ function locale_translate_batch_import($filepath, $options, &$context) { $file = entity_create('file', array('filename' => $basename, 'uri' => 'translations://'. $basename)); // We need only the last match, but only if the langcode is not explicitly // specified in the $options array. - if (!$options['langcode'] && is_array($matches)) { + if ((!isset($options['langcode']) || !$options['langcode']) && is_array($matches)) { $options['langcode'] = array_pop($matches); } try {