We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34075 ☆ A M B ☆
    • 130 Posts
    jeroenkenters Reply #1, 16 years ago
    I couldn’t find how to change the website language, so here is my current solution.

    1) Create a plugin (change ’nl’ to the correct language):
    <?php
    $modx->setOption('cultureKey', 'nl');
    ?>
    


    2) Activate the ’onInitCulture’ event on the plugin’s ’System Events’ tab

    3) Save the plugin smiley

    After this your snippets should use the language of this plugin. Offcourse you can change this plugin to set the language based on the current context (or some other condition).
      Jeroen Kenters

      MODX Professional | MODX Ambassador | Dutch MODX forums moderator

      website | twitter
      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
      You can also just change this in System Settings, or if you want it to be Context-specific, add a Context Setting called ’cultureKey’ and set it there. No need for a plugin.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com