We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I’ve modified the weblogin snippet package to support multi-language sites. I think I got all of the text strings. I’ve included the chunk used as the template.

    It includes the basic English language file. You will need to include this file in the WebLogin snippet. I added an argument to the snippet call that passes an external "lang" value, then uses that value as the name of the language file to include.

    You can either append this file to a site-wide language file, or keep it in the weblogin snippet’s folder. Make sure the path at the beginning of the WebLogin snippet code where the language file is included is correct in either case. And also make sure the file is named appropriately; it must be named the same as the $lang value that will be passed to the snippet.

    You will also need a method of "remembering" the user’s language choice and passing it on to the snippet. If you use a TV, call the snippet like this:

    [!WebLogin? &lang=`[*lang*]` ]]
    


    I didn’t convert the websignup or webchangepassword files.



      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 6726
      • 7,075 Posts
      Thanks Susan, just what I was looking for smiley

      I’ll test it and report !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
      • Cleaned up and added instructions. Also modified the 0.9.1 default login form template.

        At this time only the WebLogin snippet is done. The registration and change password snippets will follow.

        Download revised version here.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 34162
          • 1 Posts
          @sottwell: thanks a lot for the your own free will. I hope we already have the project to internationalise more and better the variables like in SMF. I’ll follow the project with a high interest cause english is not my cup of tea embarrassed
            • 6726
            • 7,075 Posts
            Susan, thanks for the update !

            :)

            Quote from: sottwell at Jan 25, 2006, 07:26 AM
            Cleaned up and added instructions. Also modified the 0.9.1 default login form template. At this time only the WebLogin snippet is done. The registration and change password snippets will follow. Download revised version here.
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id