Implements hook_language_insert().
function language_language_insert($language) {
if (!empty($language->locked)) {
return;
}
language_negotiation_include();
// Add language to the list of language domains.
$domains = language_negotiation_url_domains();
$domains[$language->langcode] = '';
language_negotiation_url_domains_save($domains);
}