PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get current language
string pnUserGetLang();
pnUserGetLang() obtains the name of the current language that this session is using for output display.
This function returns the name of the language being used. This function returns void if an exception was raised.
This function doesn't raise exceptions but throws back exceptions raised from other functions.
The user does not actually have to be logged in for this function to operate correctly. If the user is not logged in then this function will return the system's default language instead.
// Get the user's current language
$lang = pnUserGetLang();
Previous |
Next |