Legacy Knowledge Base
公開されました Jun. 30, 2025

75 文字を超える場合、翻訳からスペースが削除されます

Written By

Balázs Létai

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.

問題

  • 言語オーバーライドの翻訳値が 75 文字を超える場合、スペースが削除されました
  • 再現する手順:
    • コントロール パネル > 言語のオーバーライド、新しいキーを追加、名前を付けます (例: testing-translation)
    • 任意の言語
      に 75 文字より長い任意の値を追加します。例: "test test test test test test test test test test test test test test t"
    • 保存してもう一度確認する
  • 実績:
    • 値が 75 文字を超える場合、一部のスペースがテキストから削除されます (上記の例は 76 文字です)。

Screenshot_2023-05-03_at_8.18.02.png

Environment

  • ライフレイ DXP 7.4 U4+

解決策

  • ホワイトリスト登録
    com.liferay.portal.language.override.model.PLOEntry
    コントロール パネル -> システム設定 -> セキュリティ ツール -> AntiSamy Sanitizer が問題を解決します。
  • com.liferay.portal.language.override.model.PLOEntry を AntiSamy Sanitizer のホワイト リストに追加した後、変更を保存し、影響を受けるキーに正しい値を設定したことを確認してください。
    上記のホワイトリストは、この構成変更の前にスペースが既に削除されている変更された値を元に戻すことはありません。

Screenshot_2023-04-11_at_10.11.19.png

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base