Page MenuHomePhabricator

Communicate that other users started this translation on the "new translation" dialog
Open, NormalPublic

Description

As part of the work to allow multiple users to translate the same topic (T86151), we want to surface as early as possible that multiple translations exist.

When users select an article to start a new translation we want to show a warning message. Some considerations:

  • Custom messages for one/more in-progress translations. Depending on whether one or more than one in-progress translation exists for the topic on the selected languages, different information will be used in the message:
    • When there is one in-progress version of the translation: "[Another in-progress translation] was started by <username> <time-period> ago". The time-period will be expressed in days (if it is less than 60), or months since the translation was started.
    • When there are more than one in-progres version of the translation : "[Other in-progress translations] were started by <number> users".
  • Linking to the ongoing translations. The warning message will include a link that provides access to the current in-progress translation for the topic (T214409). This will open in the same window by default, since it supports going back to the same state.
  • Not counting your own translation. When showing/counting the in-progress translations, we are only considering in-progress translations by other users. Thus, you should not get a warning if you start a translation, and later try to start a new translation for the same page. Doing so will just lead you to continue your current in-progress translation.
  • Interaction with other warning messages. Only one warning message will be shown in this context. The proposed warning message will not have priority with respect to other warnings. For example, if the user selects a page that already exists in the target wiki, that warning will be shown, and there will not be a mention of other on-going translations (which the user will get once starts the translation).
Warning when one alternative translation existsWarning when several alternative translations exists