PostNuke Help

Previous
pnUserGetAll

Home
up

Next
pnUserGetTheme


pnUserGetLang

get current language

Synopsis

string pnUserGetLang();

Description

pnUserGetLang() obtains the name of the current language that this session is using for output display.

Return Values

This function returns the name of the language being used. This function returns void if an exception was raised.

Exceptions

This function doesn't raise exceptions but throws back exceptions raised from other functions.

Notes

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.

Examples

// Get the user's current language
$lang = pnUserGetLang();
       

Previous
pnUserGetAll

Home
up

Next
pnUserGetTheme