Oracle9iAS Portal Developer Kit

is_language_permitted function

Contained in package wwnls_api.

Call this function to determine if a given language is available.

  • If the value of p_product_messages is true, the installed flag in wwctx_sys_language$ is checked.
  • If the value of p_product_messages is false, the available flag is checked.

function is_language_permitted

(

p_language in varchar2,
p_product_messages in boolean default true

)

return boolean;

Version: Oracle9iAS Portal 9.0.2 or later

Parameters:

p_language

The language abbreviation to be checked.

Datatype: in varchar2

p_product_messages

Indicates the flag to be checked:

  • True - check Installed flag
  • False - check Available flag

Datatype: in boolean
Default: true

Returns:

This function returns true if the corresponding flag is 1, false otherwise.

Exceptions:

This function raises no user-defined exceptions.

Example:

if wwnls_api.is_language_permitted(

p_language => wwnls_api.SPANISH

)

then

.
.
.

end if;

Related topics

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