# カテゴリの説明は、主要/基本言語では最初の段落で切り捨てられますが、ローカライゼーションパネルの言語では切り捨てられません

**URL:** https://meta.discourse.org/t/category-description-truncates-to-first-paragraph-for-primary-base-language-but-not-for-localizations-panel-languages/406801
**Category:** Bug
**Tags:** category-banners
**Created:** [2026 年 7 月 3 日午後 11:22 UTC](https://meta.discourse.org/t/category-description-truncates-to-first-paragraph-for-primary-base-language-but-not-for-localizations-panel-languages/406801 "2026-07-03T23:22:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026 年 7 月 7 日午後 2:11 UTC](https://meta.discourse.org/t/category-description-truncates-to-first-paragraph-for-primary-base-language-but-not-for-localizations-panel-languages/406801/2 "2026-07-07T14:11:44Z")

</div>

このレポートを作成していただき、ありがとうございます！ ご指摘の通り、翻訳された説明の扱いが異なっており、これはカテゴリバナーテーマコンポーネントだけでなく、すべての箇所に適用されています。

すべての言語はデフォルトの動作に従い、最初の段落のみを表示する必要があります。この調整を翻訳された説明に適用しています：

> <https://github.com/discourse/discourse/pull/41511>
>
> Reported here: https://meta.discourse.org/t/category-description-truncates-to-fi…rst-paragraph-for-primary-base-language-but-not-for-localizations-panel-languages/406801
> 
> In a number of places we only show the first paragraph of a category description by default, but when someone manually adds a category description translation we show the full content. This results in translated content being much longer in some places where only a single paragraph is expected (/categories pages, category headers, etc). 
> 
> This change cooks the translated description and applies the same single paragraph rule where relevant.
> 
> \`Category.first\_paragraph\_description\` has been extracted to be used in both the default and translated descriptions so the behavior remains consistent.

この変更がマージされると、次にDiscourseを更新した際に修正された動作が適用されます。

---

_[View the full topic](https://meta.discourse.org/t/category-description-truncates-to-first-paragraph-for-primary-base-language-but-not-for-localizations-panel-languages/406801)._
