Last modified: 2014-03-28 23:20:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33986, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31986 - Fix gender in user namespaces for Portuguese wikis
Fix gender in user namespaces for Portuguese wikis
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Amir E. Aharoni
: i18n
Depends on:
Blocks: gender
  Show dependency treegraph
 
Reported: 2011-10-27 12:31 UTC by Helder
Modified: 2014-03-28 23:20 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Links to NS_USER and NS_USER_TALK (27.30 KB, image/png)
2011-10-27 12:36 UTC, Helder
Details
Proposed fix (1.84 KB, patch)
2011-11-14 15:11 UTC, Platonides
Details

Description Helder 2011-10-27 12:31:01 UTC
I'm forking this request from bug 31459, to avoid confusion.

Currently, if we setup a new wiki using MW 1.18 and set
    $wgLanguageCode = "pt"
, and then create an user account "Female", and its user and user talk pages, we will have all the following links pointing to its user and user talk pages:
* [[User:Female]] / [[User talk:Female]]
* [[Utilizador:Female]] / [[Utilizador Discussão:Female]]
* [[Utilizadora:Female]] / [[Utilizadora Discussão:Female]]
* [[Usuário:Female]] / [[Usuário Discussão:Female]]
and the title text of all links will be the same "Utilizadora:Female" / "Utilizadora Discussão:Female". This is the expected behavior.

But there are more links which, for consistency, should be working by default on any MediaWiki installation (even outside Wikimedia world), and currently doesn't:
* [[Usuária:Female]] / [[Usuária Discussão:Female]]
At the moment, both links point to pages on NS_MAIN, instead of the corresponding NS_USER and NS_USER_TALK pages.

Besides, the current default text of NS_USER and NS_USER_TALK namespaces for users having "undisclosed" gender is "Utilizador" and "Utilizador Discussão", respectively, but this corresponds to the "Male" form. When we don't know what is the gender of someone (very common in the case of new users), we prefer to use "Utilizador(a)" (or "Usuário(a)" if we are from Brazil). So, the default namespace names should also be changed so that
* If $wgLanguageCode = "pt", MediaWiki shows by defaul:
** NS_USER = "Utilizador(a)"
** NS_USER_TALK = "Utilizador(a) Discussão"
* If $wgLanguageCode = "pt-br", MediaWiki shows by defaul:
** NS_USER = "Usuário(a)"
** NS_USER_TALK = "Usuário(a) Discussão"

These changes are valid for every wiki (except ptwiki, which uses $wgLanguageCode = "pt" but prefer to have the pt-BR version of the names by default, i.e. the "Usuári..." instead of "Utilizador...").
Comment 1 Helder 2011-10-27 12:36:11 UTC
Created attachment 9291 [details]
Links to NS_USER and NS_USER_TALK
Comment 2 Sam Reed (reedy) 2011-11-14 15:00:30 UTC
You realise putting them in images makes it harder, right? ;)
Comment 3 Platonides 2011-11-14 15:11:14 UTC
Created attachment 9444 [details]
Proposed fix

I think the attached patch fixes it (I also added some more aliases that were missing). I'm assuming $namespaceNames['NS_USER'] is the used namespace when there's no specific gender.
I'm not keen of using foo(a) forms, though. Would prefer to see some more support from users that it is indeed the right thing to do in Portuguese (not in being valid language, but what would be used normally).
Comment 4 Waldir 2011-11-28 12:47:46 UTC
(In reply to comment #3)
> I'm not keen of using foo(a) forms, though. Would prefer to see some more
> support from users that it is indeed the right thing to do in Portuguese (not
> in being valid language, but what would be used normally).

It is fairly normal in Portuguese to use the foo(a) form. It is also common, though, to use the male form to refer to both genders when it's undisclosed or when we're referring to a group of mixed genders.

The former is probably more semantically correct, so this in a way is a choice between "de jure" (theoretical) correctness, versus "de facto" (practical) correctness.

In the end, it's not a big deal, since most people won't be especially bothered either way, as both methods are common.
Comment 5 Waldir 2012-01-12 13:39:33 UTC
Upon revisiting the issue, I don't think the patch to fix this should include duplicating namespace names from MessagesPt_br.php into MessagesPt.php, or vice-versa, as the patch does[1].

I believe this bug actually describes two issues, that should be separate:

1) the neutral user namespace in Portuguese should (arguably) be changed to "Utilizador(a)"

2) the messages from a fallback message should work as aliases for the main language, even if they are defined (the same way the canonical English forms work).

Probably this bug should be restricted to issue 1), with the second issue spawned into a different bug.

______
[1] in any case, should that approach be used, the "Usuário(a)" and "Usuário(a) Discussão" forms are missing in MessagesPt.php's $namespaceAliases.
Comment 6 Amir E. Aharoni 2012-10-24 10:32:37 UTC
Patch in https://gerrit.wikimedia.org/r/#/c/29761/ .

I was reluctant to change the default namespace names - there should be a wider consensus for that, and AFAIK it will also require more technical maintenance to working wikis. Just making all possible links work seems enough to me, but I'm open to suggestions.
Comment 7 Siebrand Mazeland 2012-10-24 13:43:12 UTC
In Gerrit change #29761 all the names with -o(a) are over-engineering. Please remove those.

Adding this because Amir asked me to ask it here.
Comment 8 Helder 2012-10-24 20:57:24 UTC
How so? They are the "neutral" form, which should be the ones shown by default.
Comment 9 Siebrand Mazeland 2012-10-24 21:40:23 UTC
(In reply to comment #8)
> How so? They are the "neutral" form, which should be the ones shown by default.

In that case, please make it so in the patch, because its not. They're aliases now.
Comment 10 Nemo 2013-08-10 19:17:21 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > How so? They are the "neutral" form, which should be the ones shown by default.
> 
> In that case, please make it so in the patch, because its not. They're
> aliases
> now.

Heldir, still planning to work on this?
Comment 11 Gerrit Notification Bot 2014-03-28 23:20:54 UTC
Change 29761 abandoned by Siebrand:
(bug 31986) Add user namespace aliases for all genders and varieties

Reason:
I'm abandoning this given the open issues that haven't been addressed in the past year. Can be restored if wanted.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links