Legacy Knowledge Base
公開されました Jul. 2, 2025

複数の言語を使ったステージング

Written By

Brett Ripley

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

この記事では、Liferayプラットフォームのステージング機能とともに、サイト内で複数言語を使用する際の問題を回避するための実践的な提案をまとめています。 この提案に従うことで、将来の本番環境への公開失敗を防ぐことができます。

解決

サイト内で複数の言語を利用する場合は、必ず確認してください。

  1. サイト内で定義された言語のみを使用してください。
    1. ポータルがサイト上で定義されていないロケールのコンテンツに遭遇したときにエラーが発生することがあります。
    2. 例)英語とスペイン語が定義言語で、英語を削除したい場合は、英語のコンテンツをすべて削除するようにしてください。
      1. en_USからen_GBへの「小さな変更」でもこの問題が発生しますので、ポータル上で使用するウェブコンテンツには注意してください。
  2. ポータル全体で定義されているサイトやコンテンツに対してのみ、それらの言語を使用してください。
    1. 例えば、ポータルに定義されている言語が英語とスペイン語のみである場合、中国語を利用したサイトは存在してはいけません。
  3. 本番サイトとステージングサイトの間で全く同じ言語を設定して使用します。 2つのサイトの言語に不一致がある場合、公開に失敗する可能性があります。
    1. サイトのコンテンツですべての言語を使用していなくても、本番サイトで使用できる言語が多かれ少なかれあれば、公開プロセスは開始されません。
    2. 例えば、ステージングポータルがデフォルトの言語ロケールを使用していて、ライブポータルだけが必要な言語ロケールだけを使用するように設定されていた場合、よくある見落としです。
    3. ステージドサイトとライブポータルが全く同じ言語を使用していることを確認してください。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base