このプロシージャを使用して、アプリケーションの翻訳の言語マッピングを削除します。このプロシージャは指定した言語およびマッピングの翻訳リポジトリ内のすべての翻訳済文字列を削除します。翻訳されたアプリケーションは新しいアプリケーションとして公開されますが、アプリケーション・ビルダーで直接編集することはできません。
注意:
このプロシージャはApplication Expressリリース4.2.3以降で使用できます。
構文
APEX_LANG.DELETE_LANGUAGE_MAPPING ( p_application_id IN NUMBER, p_language IN VARCHAR2 )
パラメータ
表16-2 DELETE_LANGUAGE_MAPPINGパラメータ
パラメータ | 説明 |
---|---|
|
言語マッピングを削除するアプリケーションのID。これはプライマリ言語アプリケーションのIDです。 |
|
既存のマッピング用のIANA言語コード。たとえば、en-us、fr-ca、ja、heがあります。 |
例
次の例に、既存の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, 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; /