'path' => '/',
'logfile' => NULL,
'fancy' => false,
- 'locale_path' => './locale',
- 'language' => 'en_US',
- 'languages' => get_all_languages(),
+ 'locale_path' => INSTALLDIR.'/locale',
+ 'language' => 'en_US',
+ 'languages' => get_all_languages(),
'email' =>
array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : NULL,
'broughtby' => NULL,
function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=NULL) {
global $config, $xw;
+ $language = common_language();
+ setlocale(LC_ALL, $language);
+ bindtextdomain("laconica", $config['site']['locale_path']);
+ textdomain("laconica");
+
$httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : NULL;
- $language = common_language();
- setlocale(LC_ALL, $language);
- bindtextdomain("laconica", $config['site']['locale_path']);
- textdomain("laconica");
# XXX: allow content negotiation for RDF, RSS, or XRDS