function createTranslate($backtrace_level = 0)
{
    $access = new translateAccess();
    if ($access->hasAccess()) {
        global $cookie;
        $translateMode = $cookie->get('translate_mode');
        if ($translateMode) {
            return new translateEdit($translateMode == 'all', $backtrace_level);
        }
    }
    return new translate();
}
$msDirlist[] = './lib2/logic';
$msDirlist[] = './lib2/old';
$msDirlist[] = './lib2/search';
$msDirlist[] = './old';
$msDirlist[] = './templates2/mail';
$msDirlist[] = './templates2/ocstyle';
$msDirlist[] = './util/notification';
$msDirlist[] = './util/watchlist';
$msDirlist[] = './util2/cron/modules';
$transIdCols = array(array('table' => 'attribute_categories', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'attribute_groups', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_attrib', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_attrib', 'text' => 'html_desc', 'trans_id' => 'html_desc_trans_id'), array('table' => 'cache_report_reasons', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_report_status', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_size', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_status', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_type', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'cache_type', 'text' => 'short2', 'trans_id' => 'short2_trans_id'), array('table' => 'coordinates_type', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'countries', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'languages', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'log_types', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'profile_options', 'text' => 'name', 'trans_id' => 'trans_id'), array('table' => 'statpics', 'text' => 'description', 'trans_id' => 'trans_id'), array('table' => 'sys_menu', 'text' => 'menustring', 'trans_id' => 'menustring_trans_id'), array('table' => 'sys_menu', 'text' => 'title', 'trans_id' => 'title_trans_id'), array('table' => 'towns', 'text' => 'name', 'trans_id' => 'trans_id'));
// directory libse needs to be added recursive
addClassesDirecotriesToDirlist('libse');
$tpl->name = 'translate';
$tpl->menuitem = MNU_ADMIN_TRANSLATE;
$login->verify();
$access = new translateAccess();
if (!$access->hasAccess()) {
    $tpl->error(ERROR_NO_ACCESS);
}
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
// zu übersetzende Sprache anzeigen
$translang = isset($_REQUEST['translang']) ? strtoupper($_REQUEST['translang']) : strtoupper($opt['template']['locale']);
if (!isset($opt['locale'][$translang])) {
    $action = 'selectlang';
}
// prüfen, ob die aktuelle data.sql eingespielt wurde
if (calcDataSqlChecksum(true) != getSysConfig('datasql_checksum', '')) {
    $tpl->assign('datasqlfailed', true);
} else {
    $tpl->assign('datasqlfailed', false);
}