23.1 CREATE_LANGUAGE_MAPPINGプロシージャ
このプロシージャを使用して、アプリケーションの翻訳の言語マッピングを作成します。翻訳されたアプリケーションは新しいアプリケーションとして公開されますが、アプリケーション・ビルダーで直接編集することはできません。
注意:
このプロシージャはApplication Expressリリース4.2.3以降で使用できます。
構文
APEX_LANG.CREATE_LANGUAGE_MAPPING (
p_application_id IN NUMBER,
p_language IN VARCHAR2,
p_translation_application_id IN NUMBER )
パラメータ
表23-1 CREATE_LANGUAGE_MAPPINGのパラメータ
パラメータ | 説明 |
---|---|
|
言語マッピングを作成するアプリケーションのID。これはプライマリ言語アプリケーションのIDです。 |
|
マッピング用のIANA言語コード。たとえば、en-us、fr-ca、ja、heがあります。 |
|
基礎となる翻訳済アプリケーションのIDの一意の整数。この数字は0で終了することはできません。 |
例
次の例に、既存のApplication Expressアプリケーションの言語マッピングの作成方法を示します。
begin
--
-- If running from SQL*Plus, we need to set the environment
-- for the Application Express workspace associated with this schema. The
-- call to apex_util.set_security_group_id is not necessary if
-- you're running within the context of the App Builder
-- or an Application Express application.
--
for c1 in (select workspace_id
from apex_workspaces) loop
apex_util.set_security_group_id( c1.workspace_id );
exit;
end loop;
-- Now, actually create the language mapping
apex_lang.create_language_mapping(
p_application_id => 63969,
p_language => 'ja',
p_translation_application_id => 778899 );
commit;
--
-- Print what we just created to confirm
--
for c1 in (select *
from apex_application_trans_map
where primary_application_id = 63969) loop
dbms_output.put_line( 'translated_application_id: ' || c1.translated_application_id );
dbms_output.put_line( 'translated_app_language: ' || c1.translated_app_language );
end loop;
end;
/
親トピック: APEX_LANG