legacy-knowledge-base
公開されました Jul. 2, 2025

ステージングで使用するロケールの設定

written-by

Ira Chui

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

この記事では、言語ロケール/翻訳を使用してローカルライブのステージングを成功させる方法を説明します。

決議

  1. hotfix-56を入手し、バンドルに適用する必要があります。 この修正により、portal-ext.propertiesでサポートされているロケールとしてen_USをリストアップする必要があるエラーが削除されました。 詳細は LPS-29349をご覧ください。
  2. まず、Liferayポータルで使用する言語翻訳を決定します。 これらは、サーバーの初期起動時に portal-ext.properties で設定する必要があります。 サポートされているロケールは portal.properties ファイルに記載されています。
  3. デフォルトの言語を portal-ext.properties で設定することもできます。 例えば、スペイン語を使ってみましょう。 portal-ext.propertiesは以下のようになります。
company.default.locale=es_ES
locales= en_GB,en_US,es_ES

地域をリストアップする際には、スペースを残さないように注意してください。


ロケール/ステージングの例。

  1. サーバーを起動します。
  2. 構造とテンプレートを追加して、Webコンテンツを作成します。
    あなたは、コンテンツが翻訳されることを望むあなたのポータル-ext.propertiesに配置されている任意の言語を追加する必要があります。
  3. 保存してください。
  4. Webコンテンツ表示ポートレットをサイトページに追加します。
  5. 必要に応じて、ステージングの設定を進めます。
  • company.default.localeを変更したい場合は、ステージングされるコンテンツをステージングした後に変更する必要があります。 その後、サーバーを停止し、company.default.localeプロパティを入力して進みます。
did-this-article-resolve-your-issue

legacy-knowledge-base