Sun Java System Communications Express 6 2005Q4 管理指南

配置 uwcdomainconfig.properties 檔案中的語言

uwcdomainconfig.properties 檔案包含網域支援的語言清單。清單中的各種語言都用分號分隔。您可以定義 Communications Express 將為網域支援的語言清單。

例如,如果您計劃要在名為 siroe.com 的網域中支援 en (英文)、de (德語)、fr (法語) 和 ja (日文),則請將該網域 uwcdomainconfig.properties 檔案中的 supportedLanguages 設定為 supportedLanguages=en;fr;de;ja

siroe.comuwcdomainconfig.properties 檔案應該位於:

WEB-INF/domain/siroe.com/uwcdomainconfig.properties

同時您還必須在相應的 i18n.properties 檔案中定義可本土化的字串。例如,

uwc-common-options-preferredLanguage-en=English

uwc-common-options-preferredLanguage-de=German

uwc-common-options-preferredLanguage-fr=French

uwc-common-options-preferredLanguage-ja=Japanese

siroe.com 的 i18n.properties 檔案應該位於:

WEB-INF/domain/siroe.com/locale/i18n.properties

如果沒有使用者的 LDAP 項目中的 preferredLanguage 屬性,也沒有網域 preferredLanguage 屬性和瀏覽器提供的標頭值,則 i18.properties 檔案的可用性會決定用於使用者階段作業的語言。