nat
(Natalie T)
31. März 2026 um 09:55
8
Den PR füge ich hier ebenfalls ein:
main ← ai-translation-category-pm
opened 09:45AM - 31 Mar 26 UTC
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" />
Die Einstellungen werden migriert, wenn ai_translation_enabled oder ai_translation_backfill_limit_to_public_content auf vom Standard abweichende Werte geändert wurden. Andernfalls bleiben sie unverändert.
ai_translation_backfill_limit_to_public_content = true führt nun zu:
ai_translation_target_categories = <alle öffentlichen Kategorien>
ai_translation_personal_messages = none
Umgekehrt führt ai_translation_backfill_limit_to_public_content = false nun zu:
ai_translation_target_categories = <alle Kategorien>
ai_translation_personal_messages = all
ai_translation_personal_messages erlaubt zudem eine Einstellung für group.
3 „Gefällt mir“