Page MenuHomePhabricator

The user's gender is not taken into account when creating a tab to the user's page
Closed, ResolvedPublicBUG REPORT

Description

When you go to the Homepage, the tab that sends you to the user's page loses gender somewhere.

ManWoman
When you on HomepageWhen you on user page
image.png (136×340 px, 9 KB)
image.png (153×370 px, 10 KB)

Steps to Reproduce:

  1. Open the wiki where the experiment is enabled and there are differences in the spelling of the word "user" for different genders ("Участник" and "Участница", for Russian)
  2. Change your gender in settings to "She edits..."
  3. Go to the Newcomers Homepage and look at the tab "User page".

Actual Results:
The default gender is used.

Expected Results:
The gender set in the settings is used

Event Timeline

@Iniquity -- thank you for reporting this.

@Trizek-WMF -- could you please figure out what is going on here and tell us what you recommend for next steps?

Trizek-WMF added a subscriber: Etonkovidova.

@Trizek-WMF -- could you please figure out what is going on here and tell us what you recommend for next steps?

It seems that nstab-user is not gendered while on the homepage.

I checked on other messages, but I can't find any that's supposed to be gendered (from languages I know), so I can assess if it is a on-message issue, or if it is an overall gender issue on the Homepage. This needs further investigation with tools I don't have, hence passing it to @Etonkovidova.

Thanks @Iniquity for filing the bug - the issue is confirmed.

When Homepage is enabled - the 'User page' label (nstab-user) will not reflect a user's selected preference of being described as "she".

The animated gif below illustrates what @Iniquity described in the task description - switching between tabs displays either in Russian "Участник" - a masculine noun (the default option) or "Участница" - a feminine noun.

gender_test1.gif (472×1 px, 456 KB)

@Trizek-WMF - it's not a message (label) bug ; it's just that Homepage for some reason fails to display the user preference in 'User page' tab label. Btw, the issue is present on all wikis where nstab-user has a gender support, including frwiki. From what I can see on translation of MediaWiki:nstab-user the issue is present on

  • ruwiki
  • frwiki
  • srwiki
  • plwiki

Not sure about arwiki since there are several variants of Arabic scripts and only some of them user gender support for the 'User page' label.
Moving to Ready for Development.

The message for the talk page tab is {{GENDER:{{ROOTPAGENAME}}|Участник|Участница}} which is a horrible hack we cannot reasonably support. This needs to be fixed in core. The relevant task is T47938: Enable GENDER support in MediaWiki:Nstab-user.

Change 644674 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Handle gender in user nstab on Special:Homepage

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

Change 644674 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Handle gender in user nstab on Special:Homepage

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

@Etonkovidova could you please also check on some non-Growth wiki that nothing weird happens with the gendered user tabs? The work included a core change.

@Tgr - I don't see the fix working in betalabs ruwiki. It wasn't deployed there?

Code is always deployed to betalabs within a few minutes of being merged. I'm not sure when the localization cache gets rebuilt though, that can't possibly be happening after every puppet run.

Etonkovidova closed this task as Resolved.EditedDec 17 2020, 10:36 PM

Checked ruwiki and frwiki on wmf.22 - the issue is Resolved.

@Etonkovidova could you please also check on some non-Growth wiki that nothing weird happens with the gendered user tabs? The work included a core change.

I forgot to mention in my above comment - I checked bewiki, dewiki, and eswiki.
bewiki - User page name doesn't change when a gender preference is changed.
But
dewiki and eswiki - correctly reflect a gender preference in User page name.

@Tgr - I'm not completely sure whether there is a real issue for bewiki. Changing the gender preference does not even change the wording on the Special:Preferences page itself. Belarusian wiki has two variants - bewiki` and be-tarask.wiki.
be-tarask.wiki corectly reflects the gender preference a title of 'User' page, but not on Special:Preferences page. There is a chance that for bewiki it's completely correct (I don't know Belarusian language).

I checked Serbian (since there are also two lang variants - sr and sr-cyrl), but for Serbian lang variants there are not two wikis, but only lang preference.

Thanks for checking! be translation of "user page" is indeed not gender-dependent.