Page 1 of 1

Get the language the user is using now

Posted: Wed Jan 10, 2018 5:20 am
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 ?


Re: Get the language the user is using now

Posted: Wed Jan 10, 2018 11:37 am
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.