ContentTranslation only adapts a category if there's a directly corresponding one in the target language.
It should be possible to add a category, manually, too.
Amire80 | |
May 9 2016, 11:30 AM |
F8027601: image.png | |
May 11 2017, 5:30 AM |
F5427685: cx-add-category.png | |
Jan 31 2017, 10:03 AM |
F5354256: pasted_file | |
Jan 25 2017, 5:57 AM |
ContentTranslation only adapts a category if there's a directly corresponding one in the target language.
It should be possible to add a category, manually, too.
Change 333894 had a related patch set uploaded (by Santhosh):
Category adaptation and display, add new categories to translation
As per the above patch, the UI looks like
It allows arbitrary text to be typed there, press enter to add as new category. Existing (auto adapted) categories can be removed and re-added using the drop down.
Question:
@Pginer-WMF ^^
I think we can keep this focused on adding existing categories. Creating a new category probably requires additional support that we may want to think in more detail (e.g., checking existing categories, making it easy to create the categories that exist in the source but not in the target, etc.)
- Is this UI ok or should we have an additional Category search input widget to pick existing/non -existing categories?
This is good for the selection of existing categories. Some additional considerations:
I'd not reuse this pattern to create new categories implicitly. I think this can be extended with an explicit option to create a new category, but that requires a better understanding on the process in my opinion, so we may want to have a separate ticket if this is a scenario we want to support.
Change 353215 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] CX2: Categories: Use MenuTagMultiselectWidget widget
Looks good. The only issue I see is that the "X" icon is too close to the text label. Being it a standard component, I'm not sure what makes that to be different in this particular context.
Change 353215 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX2: Categories: Use MenuTagMultiselectWidget widget