When a language is disabled, the form['language']['#options'] array will be nested which makes the code unset every option.

Comments

paulvb’s picture

This is my quick fix.

juniorgasparotto’s picture

Its necessary change this path in line 113 to 116, changing to:

// Consider admin translate
$enabled_key = t('Enabled');
//we only want to filter on the enabled and leave the disabled behind
if(isset($form['language']['#options'][$enabled_key]))
   $form['language']['#options']=$form['language']['#options'][$enabled_key];