Oracle9iAS Portal Developer Kit

http_to_nls function

Contained in package wwnls_api.

Call this function to map an HTTP language abbreviation to the corresponding NLS language name.

Note: An HTTP language abbreviation is either a two character language abbreviation or a five character code that consists of a two character language abbreviation followed by a hyphen and a two character country code, e.g. 'en', 'en-gb', 'es', 'es-mx'. The common browsers use these language codes.

function http_to_nls

(

p_language in varchar2

)

return varchar2;

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_language

An HTTP language abbreviation.

Datatype: in varchar2

Returns:

This function returns an NLS language name constant for the HTTP abreviation specified.

Exceptions:

This function raises no user-defined exceptions.

Example:

This example returns: wwnls_api.AMERICAN

declare

l_nls_language varchar(2000);

begin

l_nls_language := wwnls_api.http_to_nls
(

p_language => 'en-us'
);

end;

Related topics

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