ヘッダーをスキップ
Oracle® Fusion Middleware Oracle Adaptive Access Manager開発者ガイド
11gリリース2(11.1.2)
B71697-01
  目次へ移動
目次
索引へ移動
索引

前
 
次
 

10 ローカライゼーションのプロパティ構成

この章は、次の項で構成されています。

10.1 ローカライゼーションの終了

ローカライゼーションを終了するフラグはありませんが、デプロイメントによりサポートされているロケールを取得するプロパティがあります。このプロパティを使用して、1つのロケールを有効にできます。

不要なロケールごとに、locale.enum.XXX.adminSupportedプロパティとlocale.enum.XXX.enabledプロパティをfalseに変更します。

10.2 ローカライズされたプロパティのオーバーライド

クライアント・リソース・オーバーライド・ファイルでローカライズされた文字列のカスタマイズを、次のように実行します。

  1. client_resource_<locale>.propertiesを作成します。

  2. プロパティbharosa.config.resourcebundle.clientoverrideをclient_resource_en.propertiesに追加します。OAAMサーバーでのこのプロパティのデフォルト値は、client_resourceです。

    デフォルトでは、カスタムのローカライズ済文字列が追加されるファイルはclient_resource_<locale>.propertiesです。

    たとえば、英語の場合、このファイルはclient_resource_en.propertiesとなります。

  3. カスタマイズされたプロパティをclient_resource_en.propertiesに追加します。

  4. WEB-INF/classesディレクトリ内にclient_resource_en.propertiesが含まれているOAAM拡張WARファイルを作成します。

10.3 Oracle Adaptive Access Managerの言語デフォルトの構成

言語デフォルトは、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

デフォルト・ロケールを有効化するには、次の手順を実行します。

  1. サポートするロケールのbharosa.local.enum.<locale>.enabledプロパティを追加し、それをtrueに設定します。

  2. サポートしないロケールのbharosa.local.enum.<locale>.enabledプロパティを追加し、それをfalseに設定します。

  3. bharosa.default.locale propertyを追加して、ロケールのbharosa.locale.enum.<locale> propertyと一致するように設定します。


注意:

サポートされるロケールは、列挙にリストされているロケールのみです。


10.3.1 例1

あるドイツの銀行がデフォルト言語としてドイツ語を設定し、ドイツ語のみをサポートすることを考えています。そうするには、client_resource_de.propertiesで次の手順を実行します。

  1. ロケール列挙が存在しない場合は、それを作成します。

    bharosa.locale.enum.german.enabled=true
    
  2. ロケール列挙がすでに存在している場合は、それをtrueに設定します。

  3. その他の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
    
  4. ロケール列挙の値と一致するようにbharosa.default.locale propertyを設定します。

    bharosa.locale.enum.german=2であるため、bharosa.default.localeプロパティを2に設定します。

    このプロパティが存在しない場合は、作成してください。

10.3.2 例2

あるブラジルの銀行がブラジル・ポルトガル語をデフォルトとして設定しても、OAAMサーバーが翻訳されるその他のすべての言語を表示する必要がある考えているとします。次の手順を実行します。

  1. ロケール列挙が存在しない場合は、それを作成します。

    bharosa.locale.enum.pt_br.enabled=true
    
  2. ロケール列挙がすでに存在している場合は、それをtrueに設定します。

  3. プロパティ・エディタを使用して、その他のすべてのbharosa.local.enum.<locale>.enabledプロパティをfalseに設定します。

  4. プロパティ・エディタを使用して、bharosa.default.localeプロパティをロケール列挙の値に設定します。

    bharosa.locale.enum.pt_br=9の場合は、bharosa.default.locale property9に設定します。

  5. OAAMサーバーが翻訳されているすべての言語に対して、client_resource_<locale>.propertiesbharosa.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
    
  6. client_resource_<locale>.propertiesで、bharosa.default.locale property9に設定します。

10.3.3 例3

あるフランスの銀行が、クライアントに表示されるデフォルト言語としてフランス語を設定し、フランス語、ドイツ語、英語およびイタリア語のみをサポートすることを考えています。フランス語のロケール列挙は、すでに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

アプリケーションを構成するには、次の手順を実行します。

  1. client_resource_fr.propertiesで、ドイツ語、イタリア語および英語に対してbharosa.locale.enum.<locale>.enabledtrueに設定します。

    bharosa.locale.enum.german.enabled=true
    bharosa.locale.enum.italian.enabled=true
    bharosa.locale.enum.english.enabled=true
    
  2. すべてのother bharosa.local.enum.<locale>.enabledプロパティをfalseに設定します。

  3. bharosa.default.localeプロパティをロケール列挙の値に設定します。

    bharosa.locale.enum.french=5であるため、bharosa.default.localeプロパティを5に設定します。

10.3.4 例4

あるドイツの銀行がデフォルト言語として英語を設定し、その他のすべての言語をサポートすることを考えています。そうするには、client_resource_de.propertiesで次の手順を実行します。

  1. ロケール列挙が存在しない場合は、それを作成します。

    bharosa.locale.enum.english.enabled=true
    
  2. ロケール列挙がすでに存在している場合は、それをtrueに設定します。

  3. その他の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
    
  4. ロケール列挙の値と一致するようにbharosa.default.locale propertyを設定します。

    bharosa.locale.enum.english=0であるため、bharosa.default.localeプロパティを0に設定します。

    このプロパティが存在しない場合は、作成してください。

10.4 ロケールの略語と等価のカスタマイズ

Oracle Adaptive Access Managerは、ファジー・ロジックの概念をサポートします。ファジー・ロジックは、一般に略語として知られる事前構成済の単語等価セットに部分的に依存します。

Oracle Adaptive Access Managerの英語版には、数千個の英語の略語(および等価)が存在します。

その他のすべての言語では、インストーラは支給されている簡単な略語ファイルを拡張する必要があります。追加処理を行わないと、ファジー・ロジックの効果は減少します。

OAAMには、ロケール固有の略語ファイルが同梱されています。これらのファイルにはbharosa_auth_abbreviation_config_<locale>.propertiesという名前が付いており、<locale>はロケール文字列を表します。たとえば、スペイン語版のファイルはbharosa_auth_abbreviation_config_es.propertiesです。

このファイルは変更できません。省略形をカスタマイズするには、省略形の新規セットを使用して新規ファイルを作成する必要があります。このファイルは元のファイルより優先されるため、元のファイルのすべての省略形は無視されます。

1つのロケール(たとえば、日本語のみ)に対してローカライズするには、次の手順を実行します。

  1. ロケール固有のファイルを、元のロケール別略語ファイルと同じ接頭辞を付けて作成します。たとえば、日本語の場合はAbbreviations_ja.propertiesとします。

  2. このファイルをOAAM拡張共有ライブラリ(WEB-INF/classes)に追加します。

  3. OAAMを使用して、プロパティbharosa.authenticator.AbbreviationFileNameの値を、拡張子フォルダにあるそのファイルの絶対パスWEB-INF/classes/Abbreviations_ja.propertiesに設定します。

複数のロケールに対してカスタマイズする場合は、次の手順を実行します。

  1. それらのロケール固有のファイルを、元のロケール別略語ファイルと同じ接頭辞を付けて作成します。

    次に例を示します。

    スペイン語用/mydrive/IDM_ORACLE_HOME/oaam/conf/Abbreviations_es.properties

    日本語用/mydrive/IDM_ORACLE_HOME/oaam/conf/Abbreviations_ja.properties

  2. このファイルをOAAM拡張共有ライブラリ(WEB-INF/classes)に追加します。

  3. OAAMを使用して、プロパティbharosa.authenticator.AbbreviationFileNameの値を、拡張子フォルダにあるそのファイルの絶対パスWEB-INF/classes/Abbreviations.propertiesに設定します。

    エンド・ユーザーのブラウザのロケール設定によって実行時ロケールが決まるため、プロパティの値にロケール接頭辞は存在していません。