Oracle9iAS Portal Developer Kit

get_valid_translation_language function

Contained in package wwnls_api.

Call this function to check if the language specified is enabled for translations. If not, the default language is returned.

function get_valid_translation_language

(

p_translation_language varchar2

)

return varchar2;

Version: Oracle9iAS Portal 9.0.2 or later

Parameters:

p_translation_language

The language abbreviation to be checked.

Datatype: in varchar2

Returns:

This function returns the language if it can be translated, or the default if not.

Exceptions:

This function raises no user-defined exceptions.

Example:

l_trans_language varchar2(30);

l_trans_language := wwnls_api.get_valid_translation_language(

p_translation_language => wwnls_api.SPANISH

);

Related topics

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