Exemple #1
0
}
/**
 * Get language used for logging.
 *
 * Inside the log it is not neccessary to find a supported language. Instead
 * the first language can be used.
 * @return string Preferred Language for logging purposes
 */
function log_lang()
{
    $lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
    $lang = preg_split('#[,;]#', $lang);
    return lang_normalize($lang[0]);
}
/* Init i18n */
$detected_lang = request_lang();
$ll = substr($detected_lang, 0, 2);
// moved into request_lang()
//if (isset($lang_rewrite[$detected_lang]))
//	$detected_lang=$lang_rewrite[$detected_lang];
T_setlocale(LC_ALL, $detected_lang);
T_bindtextdomain('site', rtrim(BU_LANG_PATH, DIRECTORY_SEPARATOR));
T_bind_textdomain_codeset('site', 'UTF8');
T_bindtextdomain('update', rtrim(BU_LANG_PATH, DIRECTORY_SEPARATOR));
T_bind_textdomain_codeset('update', 'UTF8');
T_bindtextdomain('update-legacy', rtrim(BU_LANG_PATH, DIRECTORY_SEPARATOR));
T_bind_textdomain_codeset('update-legacy', 'UTF8');
T_bindtextdomain('customize', rtrim(BU_LANG_PATH, DIRECTORY_SEPARATOR));
T_bind_textdomain_codeset('customize', 'UTF8');
T_textdomain('update');
$newtrans = true;
Exemple #2
0
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Browser-Update.org - <?php 
echo T_('Update your Browser');
?>
</title>
    <meta name="description" content="" />
    <meta name="keywords" content="browser, webbrowser, choice, change browser, firefox, safari, opera, firefox 3, internet explorer 6, internet explorer update, ie, safari, konqueror" />
    <meta http-equiv="content-language" content="<?php 
echo request_lang();
?>
" />
    <link rel="shortcut icon" href="/img/favicon.png" type="image/png"/>
    <link rel="icon" href="/img/favicon.png" type="image/png"/>

    <meta name="robots" content="index,follow" />
    <link href='//fonts.googleapis.com/css?family=Open+Sans:400,300&subset=latin,latin-ext,cyrillic,greek' rel='stylesheet' type='text/css'/>
    <link rel="stylesheet" href="/base.css" type="text/css" />
    <!--[if lte IE 7]>
    <link rel="stylesheet" href="/drecksie.css" type="text/css" />
    <![endif]-->
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="/drecksie6.css" type="text/css" />
    <![endif]-->    
    <link rel="shortcut icon" href="/img/favicon.png" type="image/png"/>
    <link rel="icon" href="/img/favicon.png" type="image/png"/>
    <script type="text/javascript" src="/base.js">	</script>
</head>
<body><div class="header">