Page MenuHomePhabricator

In ContentTranslation suggestion list, the label of each item is the same as the list heading
Closed, ResolvedPublic

Description

In ContentTranslation suggestion list, the label of each item is the same as the list heading (this heading appears in master, but not in production yet). Now, for example, we show featured articles, so each item has the "Featured" label, and the whole list has the heading "Featured". Both of them are represented by the message cx-suggestionlist-featured. This gives a sensible result in English, but in other languages a different word should be used for the list and for each item; for example, in Russian, the items' label should be a singular adjective (as in "Featured (article)", and the list should be a plural adjective (as in "Featured (articles)").

There are several solutions:

  1. Create different messages for heading and item labels. This is easy for both developers and translators, but possibly not so scalable if we plan to introduce many different lists.
  2. Make the suggestion lists completely generic and customizable and translatable to each language, and let the list creator write the item label and the list heading separately. This would flexible, but probably complicated to implemented.
  3. Leave the situation as it is, but instruct translators that the message can be used in different context. This is easiest for developers, but possibly undesirable for translators.

Option #1 looks like the most sensible at the moment, but other ideas are welcome.

Event Timeline

Amire80 created this task.Oct 27 2015, 10:35 AM
Amire80 raised the priority of this task from to Normal.
Amire80 updated the task description. (Show Details)
Amire80 added subscribers: Amire80, Pginer-WMF.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 27 2015, 10:35 AM
Amire80 set Security to None.
Amire80 moved this task from Needs Triage to CX7 on the ContentTranslation board.

As described across different tickets (T111026 and T96147), the only possible headers are:

  • No headers. The default initial state
  • "For later" and "More suggestions" once the user marked some of the suggestions for later.
  • "All collections" and "More suggestions" once the user creates or adds a translation list.
  • "For later", "All collections", and "More suggestions" if both cases above happen simultaneously.

Inside the "All collections" and "More suggestions" sections there may be individual collections with their own name but those are not top-level sections. Refer to the individual tickets for more details. Below there are some images illustrating the increase of the number of sections as the user gets involved in more complex organisation of the articles to translate:



Change 249903 had a related patch set uploaded (by Amire80):
Suggestions: Do not show the list heading for fallback suggestions ("Featured")

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

Amire80 closed this task as Resolved.Nov 2 2015, 3:27 PM
Amire80 moved this task from Backlog to Done on the LE-CX7-Sprint 2 board.

Change 249903 merged by jenkins-bot:
Suggestions: Do not show the list heading for fallback suggestions ("Featured")

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