« Back to 開発者マニュアル

プロパティのオーバーライド

他のフックの同様な手順で、言語メッセージをオーバーライドすることもできます。オーバーライドしたい言語ファイル(Language_xx.properties)を作成して、liferay-hook.xmlから参照するだけです。例えば、スペイン語と日本語メッセージをオーバーライドする場合は、liferay-hook.xmlに以下のように記述します:

<hook>
   ...
   <language-properties>content/Language_es.properties</language-properties> 
   <language-properties>content/Language_ja.properties</language-properties>
   ...
</hook>
0 Attachments
34940 Views
Average (0 Votes)
The average rating is 0.0 stars out of 5.
Comments