23.7 SEED_TRANSLATIONSプロシージャ
このプロシージャを使用して、指定したアプリケーションおよび言語の翻訳リポジトリをシードします。このプロシージャは、新しい、更新済および削除済翻訳可能文字列のすべての含む翻訳リポジトリをアプリケーションから移入します。アプリケーションの翻訳バージョンを更新するたびに、シードおよび公開プロセスを実行し、プライマリ・アプリケーションと同期させます。
構文
APEX_LANG.SEED_TRANSLATIONS (
p_application_id IN NUMBER,
p_language IN VARCHAR2 )
パラメータ
表23-6 SEED_TRANSLATIONSのパラメータ
パラメータ | 説明 |
---|---|
|
翻訳リポジトリを更新するアプリケーションの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, seed the translation repository
apex_lang.seed_translations(
p_application_id => 63969,
p_language => 'ja' );
commit;
-- Print out the total number of potentially translatable strings
--
for c1 in (select count(*) thecount
from apex_application_trans_repos
where application_id = 63969) loop
dbms_output.put_line( 'Potentially translatable strings found: ' || c1.thecount );
end loop;
end;
/
親トピック: APEX_LANG