# 功能请求：将主题翻译限制在特定分类中

**URL:** https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993
**Category:** Feature
**Tags:** content-localization
**Created:** [2026年一月8日 17:44 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993 "2026-01-08T17:44:31Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2026年一月8日 17:44 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/1 "2026-01-08T17:44:31Z")

</div>

大家好

我们的用例：我们是一个德语论坛，但有说英语的广告客户。因此，最好能够将主题本地化限制在特定类别中。

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2026年三月3日 15:49 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/2 "2026-03-03T15:49:49Z")

</div>

这里顶一下，有没有什么变通的办法？

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2026年三月3日 15:51 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/3 "2026-03-03T15:51:13Z")

</div>

嗯，我记得在很多地方都收到过这个请求，我看一下。

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2026年三月31日 09:48 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/5 "2026-03-31T09:48:49Z")

</div>

暂时先在这里添加：

> <https://github.com/discourse/discourse/pull/39000>
>
> Related: https://meta.discourse.org/t/feature-request-limit-topic-translation-to…-specific-categories/392993
> 
> The old \`ai\_translation\_backfill\_limit\_to\_public\_content\` setting was too coarse. It either translated everything or only public content, with no way to pick specific categories or control PM translation separately.
> 
> This replaces it with two settings:
> \- \`ai\_translation\_target\_categories\` (category\_list): pick exactly which categories get translated. Subcategories need to be added separately. Empty means no category topics get translated.
> \- \`ai\_translation\_private\_messages\` (enum: none / group / all): controls PM translation independently. none disables it, group limits to group PMs, all includes ... all.
> 
> Tags are switched to "always translated".
> 
> The migration reads the old setting and maps it to the new settings, so existing sites keep their current behaviour. It also cleans up the old setting.
> 
> \<img width="359" height="511" alt="Screenshot 2026-03-31 at 5 33 45 PM" src="https://github.com/user-attachments/assets/48ed19e8-f559-447c-a7af-c235698d62df" /\>

请给我们一两天时间来合并此内容。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2026年五月27日 18:09 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/7 "2026-05-27T18:09:13Z")

</div>

关于此功能的后续更新。我们最近进行了一项技术变更

> <https://github.com/discourse/discourse/commit/90baea1ea789acf121dd3bb8aef4a604779413e5>
>
> This PR changes Discourse AI translations from an opt-in category model
> to an op…t-out model: instead of translating only selected
> \`ai\_translation\_target\_categories\`, it introduces
> \`ai\_translation\_excluded\_categories\`, updates the admin UI copy and save
> flow, changes topic/post/category candidate selection and detection jobs
> to translate all non-excluded categories by default, and adds a
> migration that converts existing target-category settings into the
> equivalent excluded-category list for existing sites.
> 
> It also updates all related specs.
> 
> \---------
> 
> Co-authored-by: discourse-patch-triage\[bot\] \<272280883+discourse-patch-triage\[bot\]@users.noreply.github.com\>

在此变更之后，限制主题翻译至特定分类的功能仍然保留。但与初始实现不同，现在 Discourse 默认会翻译所有内容，并提供了一个名为 `ai_translation_excluded_categories` 的网站设置，用于排除特定分类的翻译。

现有社区应已自动迁移至该新系统。如果您遇到任何问题，请随时告知我们。

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [2026年六月30日 12:02 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/8 "2026-06-30T12:02:00Z")

</div>

对于希望翻译大部分内容的论坛来说，这很有道理。我想作为一个 RFC（征求意见稿）提出相反的情况，并了解一下这种情况到底有多普遍：

我只希望翻译一个繁忙的多语言分类（例如“国际”），而让论坛的其他部分保持不变。使用“排除法”意味着要列出所有其他分类，而且之后我添加的每个新分类默认都会被翻译，直到我想起要将其排除为止 🙂 这很容易导致我为不需要的翻译买单。一个选入式的 `ai_translation_target_categories`（如果设置了就采用包含列表，否则采用“全部翻译减去排除项”）会更整洁，也更有利于控制成本。

其他人遇到这种情况普遍吗？你们是希望全论坛翻译，还是只限定在单个国际/闲聊分类？我想了解一下是否值得重新引入白名单功能，还是说我的设置只是个小众案例 😃 .. 🙏

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2026年六月30日 17:18 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/10 "2026-06-30T17:18:59Z")

</div>

> [@Overgrow](#):
>
> 我只想翻译一个繁忙的多语言分类（例如“国际”），而保持论坛的其余部分不变。

感谢你的提问。我也很想知道这是否是一个常见的使用场景。

我的直觉是，大多数社区从翻译所有公开内容中受益匪浅。其他语言的用户（通常是非英语使用者）将看到他们语言的所有内容，体验会好得多。当然，这有一定的成本，但并不高。在我们的托管服务中，对大多数社区来说都是免费的。

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2026年七月9日 08:39 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/11 "2026-07-09T08:39:19Z")

</div>

![James May's Great News on Top Gear Dacia](https://static.klipy.com/ii/d6b0ce929193df3c242ac34b5654d2ce/c2/20/YyqiUiCb.webp)

> <https://github.com/discourse/discourse/pull/41585>
>
> We have switched AI translations settings first from public categories, to "incl…ude" categories, then to "exclude" categories.
> 
> This is not great. Some admins prefer one, and some prefer others. 
> 
> This PR allows admins to do either. This also updates default categories to be "public" only, when the original default was "all" (public + private). 
> 
> The migration covers moving existing users to 
> \- if has selected categories -\> "exclude strict" + their selected categories
> \- if no selected categories + feature enabled -\> "all" to maintain status quo
> 
> 
> https://github.com/user-attachments/assets/607f2340-8fa6-4059-b13d-07d1938ad74f

我在这里做了一项更改，让我们可以两全其美（等待合并）

这种新的设置类型允许我们选择类别的特定范围，如“全部”或“公开”，_或者_进行包含/排除选择。

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2026年七月10日 08:55 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/12 "2026-07-10T08:55:42Z")

</div>

此更改现已合并。其工作方式如下（与 PR 中的视频相同）：

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [2026年七月10日 13:14 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/13 "2026-07-10T13:14:24Z")

</div>

太好了！谢谢你！

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [2026年七月13日 00:00 UTC](https://meta.discourse.org/t/feature-request-limit-topic-translation-to-specific-categories/392993/14 "2026-07-13T00:00:52Z")

</div>

此主题在2天后自动关闭。不再允许新的回复。
