Page MenuHomePhabricator

Watchlist Expiry: action=watch success message always in days if language is not English
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

What is the problem?

When submitting the action=watch form, if my interface language is non-English, it will report the period the page is watched for in days.

In English however, it will report based on the selection I made in the dropdown. For example, if I chose "1 week" it will report "1 week".

Followed up from T259055#6435646.

Steps to reproduce problem
  1. Go to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Kal%C4%81kaua&action=watch&uselang=fr (for example)
  2. Select "1 semaine" from the dropdown
  3. Submit

Expected behavior: Success message: « Kalākaua » et sa page de discussion ont été ajoutés à votre liste de suivi pour 1 semaine. (or whatever the correct French translation of this is)
Observed behavior: Success message: « Kalākaua » et sa page de discussion ont été ajoutés à votre liste de suivi pour 7 jours.

Screenshots (if applicable):

fr_6mois.png (143×720 px, 7 KB)

fr_181jours.png (41×1 px, 8 KB)

Acceptance Criteria
  • For non-English user interface languages, display the watch period in the same format as in English (i..e, by week or month rather than days)

Event Timeline

ARamirez_WMF set the point value for this task to 3.Sep 10 2020, 5:41 PM

Change 628043 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/core@master] Use localized success message after watching via action=watch

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

Change 628043 merged by jenkins-bot:
[mediawiki/core@master] Use localized success message after watching via action=watch

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

Change 628210 had a related patch set uploaded (by MusikAnimal; owner: Samwilson):
[mediawiki/core@REL1_35] Use localized success message after watching via action=watch

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

Change 628210 merged by jenkins-bot:
[mediawiki/core@REL1_35] Use localized success message after watching via action=watch

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

I can no longer reproduce this issue.

Test environment: https://en.wikipedia.beta.wmflabs.org MediaWiki 1.36.0-alpha (2a5dbf7) 2020-09-18T11:52:11.

ifried subscribed.

I have tested this on beta, and I'm no longer able to reproduce the issue. The text now displays the watch period as a week/month rather than days (see attached screenshot). For this reason, I'm marking this as Done.

Screen Shot 2020-09-18 at 7.07.32 PM.png (336×994 px, 48 KB)