Get the language the user is using now

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sagmag
User
Posts: 182

Get the language the user is using now

Post by sagmag »

I would like to know which language the user is using on the website... I set up my project as multi language for english and french but I want to load some data from database according to the language the user is using.
So which function in phpmaker returns the user's session language ?


arbei
User
Posts: 9281

Post by arbei »

You can use CurrentLanguageID() to get the language id.

Read help file topic: "Server Events and Client Scripts" -> "Some Global Functions" for more information.


Post Reply