We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51347
    • 82 Posts
    Hello MODx community,

    i use "Babel" for multilanguage on my site and need your help.


    How can i set the "Babel Culture Key" in my content without the placeholder?


    MODx Evo and YAMS Example:
    [[YAMS? &get=`chunk` &from=`info`]] = i get the chunk "info_en", "info_de"....

    MODx Revo and Lingua Example:
    [[$info_[[lingua.cultureKey]]]] = i get the chunk "info_en", "info_de"....


    How it works with MODx Revo and Babel?

    This question has been answered by Steeve. See the first response.

    • discuss.answer
      • 28432
      • 372 Posts
      Hi,

      With babel you need to configure it in all your context like in my image example (see attachment). Sorry it's in french...
      Then you can do something similar with cultureKey.

      [[$info_[[++cultureKey]]]]

      There is another plugin for multilanguage that i haven't try for the moment from Bruno named migxmultilang.
      I hope this help smiley
        • 51347
        • 82 Posts
        Hello and thanks for the answer. It work now!

        I tryed [[++cultureKey]] allready before, but it doesnt work because i didnt set the Context setting.

        Thank you!


        Thats my context setting:
        Key: cultureKey
        Name: Culture key
        Description: setting_cultureKey_desc
        Value: en
        


        HTML:
        [[++cultureKey]]
        [ed. note: joe-petts last edited this post 10 years, 1 month ago.]
          • 28432
          • 372 Posts
          I'm glad it works now!