legacy-knowledge-base
公開されました Jun. 30, 2025

ウェブコンテンツの複数のオプションが表示されない

written-by

Kartik Singh

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 DXP 7.4 [全バージョン]

解像度

ウェブコンテンツに多言語を追加するには、以下の手順があります。

1.portal-ext.properties'に複数の言語を追加する:

locales=en_US,en_AU,hi_IN,zh_CN
locales.enabled=en_US,en_AU,hi_IN.zh_CN

2. コントロールパネル> インスタンス設定 > ローカライゼーション に移動し、'利用可能' から '現在の' セクションに言語を追加します。
3. ウェブコンテンツを作成します。 Menu-> Content & Data-> Web Contentに移動し、Demoという名前でウェブコンテンツを作成し、保存します。
4. デモ」ウェブコンテンツの右側にある '省略記号' "↪Sm_22EE" をクリックし、"Translate" オプションを選択します。
5. 上部の "Translate From 🇺🇸️ ️to 🇮🇳️️" から言語を選択し、"Title" と "Content" を "Hindi" に変更して公開します。
6. もう一度 "Demo "ウェブコンテンツ"Translate From 🇺🇸️ ️to 🇨🇳️️ "を翻訳し、"Title"と"Content"を中国語に変更して公開する。
7. その後、"Demo"ウェブコンテンツと"Language Selector"をホームUIに追加し、公開します。
8.Language Selector 🇺🇸️" オプションをクリックすると、ウェブコンテンツを変更するための複数の言語オプションが表示されます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base