Page MenuHomePhabricator

Some arywiki user pages still display old namespace string
Closed, ResolvedPublicBUG REPORT

Description

We have modified several namespaces on arywiki since last year, and overall it all works perfectly, except one minor issue with the User namespace. For some old users, although the new namspace works, the old one is always displayed on desktop. This messes up some templates like "User sandbox" which rely on recognizing the namespace of the current page. I have since modified the underlying template "user other" on arywiki to fix this issue, but this overall limits the portability of templates and modules from other Wikis.

User namespace string: خدايمي
Old namespace string / alias: مستخدم
Steps to replicate the issue

Check user pages:

With old namespace string:

With current namespace (majority):

Event Timeline

Umherirrender subscribed.

The namespace change was part of T291737: Request adding and updating namespaces on arywiki

The fallback language for ary is ar.
ar defines gender aliases for the user and user talk namespace

$namespaceGenderAliases = [
	NS_USER => [
		'male' => 'مستخدم',
		'female' => 'مستخدمة'
	],
	NS_USER_TALK => [
		'male' => 'نقاش_المستخدم',
		'female' => 'نقاش_المستخدمة'
	],
];

These are also used in the ary language.

The necessary infos seems part of the following comment T291737#7676035, so changing the gender aliases is needed.

Hello @Umherirrender
I'm not sure how this relates to the gender aliases. As I mentioned, the new namespace string works for all user pages, and is displayed for most of them, except some old user accounts.
Gender aliases can certainly be added, but that's another issue.

It is related, when a user has set an explicit gender on Special:Preferences, then the gender alias from ar (fallback) is used. When no gender was set, the new value from ary is used.

With this api query you can see the current gender set by the user, two have set "male" and the other has "unknown", which relates to the "old" and "new" namespace you see on the page.
https://ary.wikipedia.org/w/api.php?action=query&list=users&ususers=Reda%20benkhadra|Ideophagous|Mounir%20Neddi|Mehdi%20Imm%C3%A4hder&usprop=gender

The gender aliases has to be set or at least reset the gender aliases from ar (for example I have done for another language in ecedd4af)

@Umherirrender
I see your point now. I will need to get concensus on arywiki before I can do a patch of the gender aliases.

This messes up some templates like "User sandbox" which rely on recognizing the namespace of the current page. I have since modified the underlying template "user other" on arywiki to fix this issue, but this overall limits the portability of templates and modules from other Wikis.

If I wanted to make a template/module portable, I’d rely on the namespace number instead of the namespace name: {{#ifeq:{{NAMESPACENUMBER}}|2|…}}, which seems to work reliably on arywiki as well.

Amire80 subscribed.

Can خدايمي be used for both men and women in Moroccan Arabic?

If not, what are the names for "user" and "user talk" for women?

Can خدايمي be used for both men and women in Moroccan Arabic?

If not, what are the names for "user" and "user talk" for women?

Hello Amir! The feminine forms are the following:

User: خدايمية
User talk: مداكرة د لخدايمية

Can خدايمي be used for both men and women in Moroccan Arabic?

If not, what are the names for "user" and "user talk" for women?

Hello Amir! The feminine forms are the following:

User: خدايمية
User talk: مداكرة د لخدايمية

Thanks.

I need to check something, however. The masculine form of "user talk" is "لمداكرة_د_لخدايمي", with the letter ل in the beginning. Maybe the feminine form should be "لمداكرة د لخدايمية"? It's ok if not, of course, I'm just checking.

Can خدايمي be used for both men and women in Moroccan Arabic?

If not, what are the names for "user" and "user talk" for women?

Hello Amir! The feminine forms are the following:

User: خدايمية
User talk: مداكرة د لخدايمية

Thanks.

I need to check something, however. The masculine form of "user talk" is "لمداكرة_د_لخدايمي", with the letter ل in the beginning. Maybe the feminine form should be "لمداكرة د لخدايمية"? It's ok if not, of course, I'm just checking.

You're right. Although both grammatically correct, for the sake of consistency, it's best to keep them both in the definite form. Thanks a lot, and sorry for not paying attention.

Change 989233 had a related patch set uploaded (by Amire80; author: Amire80):

[mediawiki/core@master] Add gender aliases for Moroccan Arabic (ary)

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

Change 989233 merged by jenkins-bot:

[mediawiki/core@master] Add gender aliases for Moroccan Arabic (ary)

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

Nikerabbit changed the task status from Open to In Progress.Jan 15 2024, 12:25 PM