protected function _setLanguage($langs)
{
$cmd = $this->_command('LANGUAGE');
foreach ($langs as $lang) {
$cmd->add(new Horde_Imap_Client_Data_Format_Astring($lang));
}
if (!empty($this->_temp['lang_queue'])) {
$this->_cmdQueue[] = $cmd;
return array();
}
try {
$this->_sendCmd($cmd);
} catch (Horde_Imap_Client_Exception $e) {
$this->_setInit('lang', false);
return null;
}
return $this->_init['lang'];
}