Page MenuHomePhabricator

Display priority languages for the translatable page for which notification is being sent
Open, MediumPublic


When sending a notification, administrators select a translatable page to send the notification for.

image.png (412×781 px, 32 KB)

This translatable page may have just a few priority languages, but on Special:NotifyTranslators, the administrator is notified of these.

Without being informed of these priority languages, the administrator may send notifications to subscribers for languages that are not a priority, creating unnecessary noise and wasting subscriber's time.

Event Timeline

Two things can be done:

  • Warn the user (warning)
  • Warn the user and don’t allow submitting the form (error)

And @abi_ listed two cases:

  • […]
  • Group with priority languages.
    • Group with enforced priority languages. Probably it shouldn’t be allowed to send notifications to non-priority languages (error). This means that when a group with enforced priority languages is selected:
      • All languages should be changed to say All priority languages
      • All languages except should be changed to say All priority languages except and only allow selecting priority languages
      • Only selected languages should only allow selecting priority languages
      • The no-JS experience should at least filter out non-priority languages and reject a request if no language is left, but preferably display a confirmation if any languages were filtered out (but some remain).
      • Consequently, if a group has zero priority languages (T359975), no notifications can be sent about it.
    • Group with non-enforced priority languages. I think it’s enough to warn the user if they are about to send notifications to non-priority languages (including when they use All languages or All languages except). An extra convenience could be an option in the warning to switch to Only selected languages and fill in the field with all priority languages with one click.

I think that summarizes my thoughts well.