if ($lc !== false) { fn_save_languages_integrity(); } } if ($lc == false) { fn_delete_notification('changes_saved'); } } if ($mode == 'install_from_po') { $uploaded_data = fn_filter_uploaded_data('language_data', array('po', 'zip')); if (!empty($uploaded_data['po_file']['path'])) { $ext = fn_get_file_ext($uploaded_data['po_file']['name']); if ($ext == 'po') { $result = Languages::installLanguagePack($uploaded_data['po_file']['path']); } else { $result = Languages::installZipPack($uploaded_data['po_file']['path']); } if (!$result) { fn_delete_notification('changes_saved'); } } } if ($mode == 'install' && !empty($_REQUEST['pack'])) { $pack_path = Registry::get('config.dir.lang_packs') . fn_basename($_REQUEST['pack']); if (Languages::installCrowdinPack($pack_path, array())) { return array(CONTROLLER_STATUS_OK, 'languages.manage'); } else { return array(CONTROLLER_STATUS_OK, 'languages.manage?selected_section=available_languages'); } } if ($mode == 'delete_variable') {