In T165562: Provide options to choose target namespace for publishing we used ContentTranslationTargetNamespace configuration to specify the default namespace for publishing. This is a wiki level configuration. A more granular configuration is desirable to specify the default namespce for groups.
We can name it as ContentnTranslationUserGroupTargetNamespace. The value is an associative array. An example:
"ContentTranslationTargetNamespace": 0,
"ContentnTranslationUserGroupTargetNamespace": {
"extendedconfirmed": 0,
"autoconfirmed": 2
}Details
- If the current user belongs to a group for which a namespce is defined in ContentnTranslationUserGroupTargetNamespace, set that as default namespace
- If no match found in ContentnTranslationUserGroupTargetNamespace use wiki level namespace defined in ContentTranslationTargetNamespace
- This is just the default value for namespace and does not force the value on any users. A translator is free to choose an alternate non-default namespace from the namespace selector developed in T165562: Provide options to choose target namespace for publishing
- By default, CX will not have a configuration defined for ContentnTranslationUserGroupTargetNamespace. It can be optionally defined for a wiki on request and discussion basis.
- Should work for CX1 and CX2