Oracle9iAS Portal Developer Kit

get_nls_language function

Contained in package wwctx_api.

Call this function to get the National Language Support (NLS) language used by the Oracle Portal user current logged in.

function get_nls_language
return varchar2;

Version: Oracle Portal 3.0.6.6.5 or later

Returns:

This function returns the NLS language used by the user currently logged in.

Exceptions:

If no session is found, a NO_SESSION_EXCEPTION is raised.

Example:

This example returns unexpected error in the language being used by the user currently logged in.

begin

return wwnls_api.get_string

(

p_domain => wwnls_api.DOMAIN_WWC,

p_subdomain => 'ctx',

p_name => 'unexpected_error',

p_language => wwctx_api.get_nls_language

)

end;

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio