35.4 DELETE_LANGUAGE_MAPPINGプロシージャ
このプロシージャを使用して、アプリケーションの翻訳の言語マッピングを削除します。このプロシージャは指定した言語およびマッピングの翻訳リポジトリ内のすべての翻訳済文字列を削除します。翻訳されたアプリケーションは新しいアプリケーションとして公開されますが、アプリケーション・ビルダーで直接編集することはできません。
ノート:
このプロシージャは、Oracle APEXリリース4.2.3以降で使用できます。
構文
APEX_LANG.DELETE_LANGUAGE_MAPPING (
p_application_id IN NUMBER,
p_language IN VARCHAR2 )
パラメータ
表35-3 DELETE_LANGUAGE_MAPPINGのパラメータ
パラメータ | 説明 |
---|---|
p_application_id |
言語マッピングを削除するアプリケーションのID。これはプライマリ言語アプリケーションのIDです。 |
p_language |
既存のマッピング用のIANA言語コード。たとえば、en-us 、fr-ca 、ja 、he があります。
|
例
次の例では、既存のAPEXアプリケーションの言語マッピングおよび既存の翻訳マッピングの削除方法を示します。
begin
--
-- If running from SQLcl, we need to set the environment
-- for the Oracle APEX 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 APEX application.
--
for c1 in (select workspace_id
from apex_workspaces) loop
apex_util.set_security_group_id( c1.workspace_id );
exit;
end loop;
-- Now, delete the language mapping
apex_lang.delete_language_mapping(
p_application_id => 63969,
p_language => 'ja' );
commit;
--
-- Print what we just updated to confirm
--
for c1 in (select count(*) thecount
from apex_application_trans_map
where primary_application_id = 63969) loop
dbms_output.put_line( 'Translation mappings found: ' || c1.thecount );
end loop;
end;
/
親トピック: APEX_LANG