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.

Get the language the user is using now

Postby sagmag » Wed Jan 10, 2018 5:20 am

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 ?
sagmag
 
Posts: 46
Joined: Tue Jul 18, 2017 1:15 pm

Re: Get the language the user is using now

Postby arbei » Wed Jan 10, 2018 11:37 am

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

Read help file topic: "Server Events and Client Scripts" -> "Some Global Functions" for more information.
arbei
 
Posts: 1499
Joined: Wed Sep 09, 2015 10:13 am


Return to General Discussion (PHPMaker)