$msg .= Display::return_message(get_lang('The /main/lang directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'), 'error');
$msg .= Display::return_message(
get_lang('The /main/lang directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'),
'error'
);
} else {
Display::addFlash(
Display::return_message(get_lang('The new sub-language has been added').$str_info, null, false)
@ -128,15 +144,19 @@ if (isset($_POST['SubmitAddNewLanguage'])) {
$msg .= Display::return_message(get_lang('The /main/lang directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'), 'error');
}
} else {
if (false === $language_id_exist) {
$msg .= Display::return_message(get_lang('The parent language does not exist.'), 'error');
$msg .= Display::return_message(
get_lang('The /main/lang directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'),
'error'
);
}
} elseif (false === $language_id_exist) {
$msg .= Display::return_message(get_lang('The parent language does not exist.'), 'error');
}
} else {
$msg .= Display::return_message(get_lang('The form contains incorrect or incomplete data. Please check your input.'), 'error');
$msg .= Display::return_message(
get_lang('The form contains incorrect or incomplete data. Please check your input.'),
'error'
);
}
}
@ -145,9 +165,7 @@ if (isset($_POST['SubmitAddDeleteLanguage'])) {