2004-07-05 12:41:16
How can i set a default language
hello,
I've installed ATutor 1.4
how can i set a default language different than English?
thanks in advance,
carlo
2004-07-05 12:41:16
hello,
I've installed ATutor 1.4
how can i set a default language different than English?
thanks in advance,
carlo
2004-07-05 16:22:13
Install the language pack you need, as described in the ATutor HowTo administrators section. Then set that language as the default in include/config.inc.php by changing the value of DEFAULT_LANGUAGE to the appropriate language code.
2004-07-06 05:33:00
done!
tanks :P
2004-07-09 09:36:17
I've done what you suggested, but after installing the italian language pack and setting define('DEFALUT_LANGUAGE', "it") I always get english as default language.
I have to manually swith to italian with the link at the end of the page.
Is it possibile to not show the English link at the end of the page?
Thank you
Marco
[reply][b]In reply to:[/b]
Install the language pack you need, as described in the ATutor HowTo administrators section. Then set that language as the default in include/config.inc.php by changing the value of DEFAULT_LANGUAGE t...
[op]forums/view.php?fid=7;pid=1986;page=1#1987[/op][/reply]
2004-07-09 09:42:32
The problem is the default language of your web browser.
ATutor detects the default language of your browser and this setting ovverride the default language of atutor.
so if your browser has english as default lang, atutor will start with english as default lang even if your default in atutor is italian.
2004-09-15 04:19:44
I put the line:
$temp_lang='it';
before
if (isset($_GET) && !empty($_GET['lang'])) {
$temp_lang = $_GET['lang'];
} else if (isset($_POST) && !empty($_POST['lang'])) {
$temp_lang = $_POST['lang'];
} else if (isset($_SESSION) && !empty($_SESSION['lang'])) {
$temp_lang = $_SESSION['lang'];
}
in
lib/select_lang.inc.php