この章は、次の項で構成されています。
ローカライゼーションを終了するフラグはありませんが、デプロイメントによりサポートされているロケールを取得するプロパティがあります。このプロパティを使用して、1つのロケールを有効にできます。
不要なロケールごとに、locale.enum.XXX.adminSupported
プロパティとlocale.enum.XXX.enabled
プロパティをfalse
に変更します。
クライアント・リソース・オーバーライド・ファイルでローカライズされた文字列のカスタマイズを、次のように実行します。
client_resource_<locale>.propertiesを作成します。
プロパティbharosa.config.resourcebundle.clientoverrideをclient_resource_en.propertiesに追加します。OAAMサーバーでのこのプロパティのデフォルト値は、client_resource
です。
デフォルトでは、カスタムのローカライズ済文字列が追加されるファイルはclient_resource_<locale>.properties
です。
たとえば、英語の場合、このファイルはclient_resource_en.properties
となります。
カスタマイズされたプロパティをclient_resource_en.properties
に追加します。
WEB-INF/classes
ディレクトリ内にclient_resource_en.properties
が含まれているOAAM拡張WARファイルを作成します。
言語デフォルトは、bharosa.locale. enum
プロパティを使用してclient_resource_<locale>.properties
ファイル内に構成できます。Oracle Adaptive Access Managerのカスタマイズの手順については、第7章「OAAM拡張共有ライブラリの使用によるOAAMのカスタマイズ」を参照してください。
次に、bharosa.locale. enum
の例を示します。
bharosa.locale.enum.german=2 bharosa.locale.enum.german.name=German bharosa.locale.enum.german.description=German bharosa.locale.enum.german.language=de bharosa.locale.enum.german.country= bharosa.locale.enum.german.adminSupported=true bharosa.locale.enum.german.enabled=true
デフォルト・ロケールを有効化するには、次の手順を実行します。
サポートするロケールのbharosa.local.enum.<locale>.enabled
プロパティを追加し、それをtrueに設定します。
サポートしないロケールのbharosa.local.enum.<locale>.enabled
プロパティを追加し、それをfalseに設定します。
bharosa.default.locale property
を追加して、ロケールのbharosa.locale.enum.<locale> property
と一致するように設定します。
注意: サポートされるロケールは、列挙にリストされているロケールのみです。 |
あるドイツの銀行がデフォルト言語としてドイツ語を設定し、ドイツ語のみをサポートすることを考えています。そうするには、client_resource_de.properties
で次の手順を実行します。
ロケール列挙が存在しない場合は、それを作成します。
bharosa.locale.enum.german.enabled=true
ロケール列挙がすでに存在している場合は、それをtrueに設定します。
その他のbharosa.local.enum.<locale>.enabled
プロパティが存在する場合は、それらをfalse
に設定します。
bharosa.locale.enum.italian.enabled=false bharosa.locale.enum.french.enabled=false bharosa.locale.enum.portuguese_br.enabled=false bharosa.locale.enum.spanish.enabled=false bharosa.locale.enum.korean.enabled=false bharosa.locale.enum.chinese_cn.enabled=false bharosa.locale.enum.chinese_tw.enabled=false bharosa.locale.enum.japanese.enabled=false bharosa.locale.enum.arabic.enabled=false bharosa.locale.enum.czech.enabled=false bharosa.locale.enum.danish.enabled=false bharosa.locale.enum.dutch.enabled=false bharosa.locale.enum.finnish.enabled=false bharosa.locale.enum.greek.enabled=false bharosa.locale.enum.hebrew.enabled=false bharosa.locale.enum.hungarian.enabled=false bharosa.locale.enum.norwegian.enabled=false bharosa.locale.enum.polish.enabled=false bharosa.locale.enum.portuguese.enabled=false bharosa.locale.enum.romanian.enabled=false bharosa.locale.enum.russian.enabled=false bharosa.locale.enum.slovak.enabled=false bharosa.locale.enum.swedish.enabled=false bharosa.locale.enum.thai.enabled=false bharosa.locale.enum.turkish.enabled=false
ロケール列挙の値と一致するようにbharosa.default.locale property
を設定します。
bharosa.locale.enum.german
=2
であるため、bharosa.default.locale
プロパティを2に設定します。
このプロパティが存在しない場合は、作成してください。
あるブラジルの銀行がブラジル・ポルトガル語をデフォルトとして設定しても、OAAMサーバーが翻訳されるその他のすべての言語を表示する必要がある考えているとします。次の手順を実行します。
ロケール列挙が存在しない場合は、それを作成します。
bharosa.locale.enum.pt_br.enabled=true
ロケール列挙がすでに存在している場合は、それをtrueに設定します。
プロパティ・エディタを使用して、その他のすべてのbharosa.local.enum.<locale>.enabled
プロパティをfalseに設定します。
プロパティ・エディタを使用して、bharosa.default.locale
プロパティをロケール列挙の値に設定します。
bharosa.locale.enum.pt_br=9
の場合は、bharosa.default.locale property
を9
に設定します。
OAAMサーバーが翻訳されているすべての言語に対して、client_resource_<locale>.properties
でbharosa.locale.enum.<locale>.enabled
プロパティを設定し、それらがtrueに設定されていることを確認します。
bharosa.locale.enum.german.enabled=true bharosa.locale.enum.italian.enabled=true bharosa.locale.enum.french.enabled=true bharosa.locale.enum.portuguese_br.enabled=true bharosa.locale.enum.spanish.enabled=true bharosa.locale.enum.korean.enabled=true bharosa.locale.enum.chinese_cn.enabled=true bharosa.locale.enum.chinese_tw.enabled=true bharosa.locale.enum.japanese.enabled=true bharosa.locale.enum.arabic.enabled=true bharosa.locale.enum.czech.enabled=true bharosa.locale.enum.danish.enabled=true bharosa.locale.enum.dutch.enabled=true bharosa.locale.enum.finnish.enabled=true bharosa.locale.enum.greek.enabled=true bharosa.locale.enum.hebrew.enabled=true bharosa.locale.enum.hungarian.enabled=true bharosa.locale.enum.norwegian.enabled=true bharosa.locale.enum.polish.enabled=true bharosa.locale.enum.portuguese.enabled=true bharosa.locale.enum.romanian.enabled=true bharosa.locale.enum.russian.enabled=true bharosa.locale.enum.slovak.enabled=true bharosa.locale.enum.swedish.enabled=true bharosa.locale.enum.thai.enabled=true bharosa.locale.enum.turkish.enabled=true
client_resource_<locale>.properties
で、bharosa.default.locale property
を9
に設定します。
あるフランスの銀行が、クライアントに表示されるデフォルト言語としてフランス語を設定し、フランス語、ドイツ語、英語およびイタリア語のみをサポートすることを考えています。フランス語のロケール列挙は、すでにclient_resource_fr.properties
ファイルに存在しています。
bharosa.locale.enum.french=5 bharosa.locale.enum.french.name=French bharosa.locale.enum.french.description=French bharosa.locale.enum.french.language=fr bharosa.locale.enum.french.country= bharosa.locale.enum.french.adminSupported=true bharosa.locale.enum.french.enabled=true
アプリケーションを構成するには、次の手順を実行します。
client_resource_fr.properties
で、ドイツ語、イタリア語および英語に対してbharosa.locale.enum.<locale>.enabled
をtrue
に設定します。
bharosa.locale.enum.german.enabled=true bharosa.locale.enum.italian.enabled=true bharosa.locale.enum.english.enabled=true
すべてのother bharosa.local.enum.<locale>.enabled
プロパティをfalse
に設定します。
bharosa.default.locale
プロパティをロケール列挙の値に設定します。
bharosa.locale.enum.french
=5
であるため、bharosa.default.locale
プロパティを5に設定します。
あるドイツの銀行がデフォルト言語として英語を設定し、その他のすべての言語をサポートすることを考えています。そうするには、client_resource_de.properties
で次の手順を実行します。
ロケール列挙が存在しない場合は、それを作成します。
bharosa.locale.enum.english.enabled=true
ロケール列挙がすでに存在している場合は、それをtrue
に設定します。
その他のbharosa.local.enum.<locale>.enabled
プロパティが存在している場合は、それらをtrueに設定します。
bharosa.locale.enum.italian.enabled=true bharosa.locale.enum.german.enabled=true bharosa.locale.enum.french.enabled=true bharosa.locale.enum.portuguese_br.enabled=true bharosa.locale.enum.spanish.enabled=true bharosa.locale.enum.korean.enabled=true bharosa.locale.enum.chinese_cn.enabled=true bharosa.locale.enum.chinese_tw.enabled=true bharosa.locale.enum.japanese.enabled=true bharosa.locale.enum.arabic.enabled=true bharosa.locale.enum.czech.enabled=true bharosa.locale.enum.danish.enabled=true bharosa.locale.enum.dutch.enabled=true bharosa.locale.enum.finnish.enabled=true bharosa.locale.enum.greek.enabled=true bharosa.locale.enum.hebrew.enabled=true bharosa.locale.enum.hungarian.enabled=true bharosa.locale.enum.norwegian.enabled=true bharosa.locale.enum.polish.enabled=true bharosa.locale.enum.portuguese.enabled=true bharosa.locale.enum.romanian.enabled=true bharosa.locale.enum.russian.enabled=true bharosa.locale.enum.slovak.enabled=true bharosa.locale.enum.swedish.enabled=true bharosa.locale.enum.thai.enabled=true bharosa.locale.enum.turkish.enabled=true
ロケール列挙の値と一致するようにbharosa.default.locale property
を設定します。
bharosa.locale.enum.english
=0
であるため、bharosa.default.locale
プロパティを0に設定します。
このプロパティが存在しない場合は、作成してください。
Oracle Adaptive Access Managerは、ファジー・ロジックの概念をサポートします。ファジー・ロジックは、一般に略語として知られる事前構成済の単語等価セットに部分的に依存します。
Oracle Adaptive Access Managerの英語版には、数千個の英語の略語(および等価)が存在します。
その他のすべての言語では、インストーラは支給されている簡単な略語ファイルを拡張する必要があります。追加処理を行わないと、ファジー・ロジックの効果は減少します。
OAAMには、ロケール固有の略語ファイルが同梱されています。これらのファイルにはbharosa_auth_abbreviation_config_<locale>.properties
という名前が付いており、<locale>
はロケール文字列を表します。たとえば、スペイン語版のファイルはbharosa_auth_abbreviation_config_es.properties
です。
このファイルは変更できません。省略形をカスタマイズするには、省略形の新規セットを使用して新規ファイルを作成する必要があります。このファイルは元のファイルより優先されるため、元のファイルのすべての省略形は無視されます。
1つのロケール(たとえば、日本語のみ)に対してローカライズするには、次の手順を実行します。
ロケール固有のファイルを、元のロケール別略語ファイルと同じ接頭辞を付けて作成します。たとえば、日本語の場合はAbbreviations_ja.properties
とします。
このファイルをOAAM拡張共有ライブラリ(WEB-INF/classes
)に追加します。
OAAMを使用して、プロパティbharosa.authenticator.AbbreviationFileName
の値を、拡張子フォルダにあるそのファイルの絶対パスWEB-INF/classes/Abbreviations_ja.properties
に設定します。
複数のロケールに対してカスタマイズする場合は、次の手順を実行します。
それらのロケール固有のファイルを、元のロケール別略語ファイルと同じ接頭辞を付けて作成します。
次に例を示します。
スペイン語用/mydrive/IDM_ORACLE_HOME/oaam/conf/Abbreviations_es.properties
日本語用/mydrive/IDM_ORACLE_HOME/oaam/conf/Abbreviations_ja.properties
このファイルをOAAM拡張共有ライブラリ(WEB-INF/classes
)に追加します。
OAAMを使用して、プロパティbharosa.authenticator.AbbreviationFileName
の値を、拡張子フォルダにあるそのファイルの絶対パスWEB-INF/classes/Abbreviations.properties
に設定します。
エンド・ユーザーのブラウザのロケール設定によって実行時ロケールが決まるため、プロパティの値にロケール接頭辞は存在していません。