28.123 SET_SESSION_LANG Procedure

This procedure sets the language to be used for the current user in the current Application Express session. The language must be a valid IANA language name.

Syntax

APEX_UTIL.SET_SESSION_LANG(
    p_lang IN VARCHAR2);

Parameters

Table 28-105 SET_SESSION_LANG Parameters

Parameter Description

p_lang

This is an IANA language code. Some examples include: en, de, de-at, zh-cn, and pt-br.

Example

The following example shows how to use the SET_SESSION_LANG procedure. It sets the language for the current user for the duration of the Application Express session.

BEGIN
    APEX_UTIL.SET_SESSION_LANG( P_LANG => 'en');
END;