ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


How can i set a default language


  • 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 16:22:13

    In config.inc.php

    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

    tanks

    done!

    tanks :P

  • 2004-07-09 09:36:17

    doesn't work for me

    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

    here is the solution

    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

    My solution

    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