legacy-knowledge-base
公開されました Sep. 10, 2025

Language.PropertiesでLiferayのページメッセージを変更する

written-by

Liferay Support

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text
Liferay 内でアウトオブボックスのページメッセージを変更するには、 portal-impl.jar/content/language.properties にある language.properties のプロパティを設定する必要があります

解像度

マスター language.properties ファイルは、Liferay でポータルコンテンツを表示するために使用されます。 これにより、ポートレットなどのコンテンツもローカライズすることができます。 このファイルは、デフォルトの portal-impl.jar の "../content" ディレクトリに格納されています。
デフォルトの language.properties ファイルを適切に上書きするために、アプリケーションサーバーの以下のディレクトリに "content" フォルダーを作成する必要があります:
../ROOT/WEB-INF/classes
これは、portal-ext.propertiesが格納されている場所と同じである必要があります。
英語版では、以下のようなファイル名でオーバーライドが行われます:
Language-ext_en_US.properties
Language_en_US.properties
Language-ext_en.properties
Language_en.properties
Language-ext.properties

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base