Forum

Guest Access language

Hi!

Is there a way to change guest access language?

Thanks

Comments

  • I have the same need.
    And also: How can you have a login mask in different language?
    Thanks a lot

    Rocco

  • amyamy
    edited March 21

    Currently, you can only change the login page(anonymous) and/or the default language for the system. You can also set an interface language for each user as well as for each test-taker.

    As always any contributions to the code are welcome!

    Thanks,

    Amy

  • Ok, so it's possible.
    But how do you do it? Which parameters should be modified?
    Thank you

  • You will find the LANG parameters in generis.conf.php.

    Thanks,

    Amy

  • Hi,

    Actually there is that undocumented DEFAULT_ANONYMOUS_INTERFACE_LANG constant that you can add in config/generis.conf.php. This will force use the specified interface language only when no user is currently logged in.

    Example to force the Italian locale for any anonymous user:

    define('DEFAULT_LANG','en-US');
    define('DEFAULT_ANONYMOUS_INTERFACE_LANG','it-IT');

    Regards,
    Cyril

  • edited April 2

    Hi,
    Thanks for the responses. Prior to TAO 3.3.0-RC01 changing DEFAULT_ANONYMOUS_INTERFACE_LANG only changes the login page and does not affect guest access language. So if you are using 3.2 version and don't mind changing a small portion of code in taoDeliveryRdf/model/guest/GuestTestTakerSession.php you can add this function:

    public function getInterfaceLanguage() {
        return DEFAULT_ANONYMOUS_INTERFACE_LANG;
    }

    Glad to see it by default in 3.3 version.

    Karolis

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×