nat
(Natalie T)
31 Marzo 2026, 9:55am
8
Aggiungo anche qui la PR:
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" />
Le impostazioni verranno migrate se ai_translation_enabled o ai_translation_backfill_limit_to_public_content sono stati modificati da valori predefiniti. Altrimenti, rimarranno invariate.
ai_translation_backfill_limit_to_public_content = true diventerà ora:
ai_translation_target_categories = <tutte le categorie pubbliche>
ai_translation_personal_messages = nessuno
Al contrario, se ai_translation_backfill_limit_to_public_content = false, diventerà ora:
ai_translation_target_categories = <tutte le categorie>
ai_translation_personal_messages = tutti
ai_translation_personal_messages consente anche un’impostazione di group.
3 Mi Piace