Change language

Diego's Avatar

Diego

14 Feb, 2018 11:26 AM

How could I change the default language to Spanish?

----------------------------------------------------------------------------
function setLanguage ()
{
    if (isset($_SESSION['language']))
    {
        putenv('LC_ALL='.$_SESSION['language']);
        T_setlocale(LC_MESSAGES, $_SESSION['language']);
    }
    else
    {
        $lang = getLanguage();
        putenv('LC_ALL='.$lang);
        T_setlocale(LC_MESSAGES, $lang);
----------------------------------------------------------------------------

  1. 1 Posted by Diego on 14 Feb, 2018 11:37 AM

    Diego's Avatar

    Please an example of code

  2. Support Staff 2 Posted by Ryan Haudenschi... on 14 Feb, 2018 12:32 PM

    Ryan Haudenschilt's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

14 Aug, 2018 07:53 PM
11 Aug, 2018 12:39 PM
05 Aug, 2018 01:43 AM
09 Jul, 2018 01:15 PM
03 Jul, 2018 08:51 AM