1 (edited by armada 2005-01-08 15:14)

Topic: punbb1.1.5 in many languages.

Hello,

To have the punbb1.1.5 in many languages available, i use this way (don't know if it's the best way  but i think it's the most easy)

Open config.php and change like this

<?php

$db_type = '*****';
$db_host = '******';
$db_name = '******';
$db_username = '******';
$db_password = '*****';
$db_prefix = 'punbb_';
$p_connect = false;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;

// here is the change
//choose your language-->fr by default
$language = substr($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($language=='en')
{$language='en';}
else
{$language='fr';}
// end of change

//old code
//$language = 'fr';

define('PUN', 1);

?>

2

Re: punbb1.1.5 in many languages.

Roger.

Yours, Benny.

Re: punbb1.1.5 in many languages.

this shouldn't really be needed anymore since you *should* upgrade to 1.2 wink