Page MenuHomePhabricator

CX2: Allow users to add new categories of their choice
Closed, ResolvedPublic

Description

As part of the support for categories (T188605), translators may find convenient to add more categories to the page they are translated (beyond those added automatically from the source article, T177303).

CX-cat-initial.png (656×1 px, 98 KB)

To support this, an "Add categories" input is provided as part of the list of categories in the translation. The input will provide a list of relevant categories as the user types. In this way, users can type the name of a category and insert it to the list.

The functionality should be the same as the input from the Category panel in Visual editor shown below:

ve-cat-options.png (635×729 px, 134 KB)

In this case, the autocomplete options will include initially as suggestions categories based on the source article. That is, if there is a category in the source article, for which an equivalent category exist in the target language but it is not included in the translation, it will be suggested.


To support this we may need to save categories as part of the drafts: T188238: Adapted categories are not saved along with translation

Event Timeline

Petar.petkovic renamed this task from CX2: Allow users to ad new categories of their choice to CX2: Allow users to add new categories of their choice.Mar 1 2018, 12:45 PM

Change 420009 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@master] Allow users to add new categories of their choice

https://gerrit.wikimedia.org/r/420009

Change 420009 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Allow users to add new categories of their choice

https://gerrit.wikimedia.org/r/420009

Checked in cx2-testing:

  • Suggestions for Categories:

Screen Shot 2018-03-21 at 1.08.13 PM.png (533×997 px, 102 KB)

  • the Category was added:

Screen Shot 2018-03-21 at 12.46.38 PM.png (212×994 px, 48 KB)