Page MenuHomePhabricator

CS needs language namespaces adding
Closed, ResolvedPublic

Description

Althought InitialiseSettings contains information for proper name of User namespace prefix; it doesn't work, only male gender is displayed for all users. This is affecting cs.wikipedia and maybe some other sites (as far it was reported to me).


Version: unspecified
Severity: enhancement

Details

Reference
bz33367

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:08 AM
bzimport set Reference to bz33367.
Petrb created this task.Dec 24 2011, 1:03 PM
Reedy added a comment.Dec 24 2011, 3:27 PM

I'm guessing it's because there are no gendered NSs setup in MessagesCs.php, and likely no relevant extra site config (if necessary)

ie for Pt-br

$namespaceGenderAliases = array(
NS_USER => array( 'male' => 'Usuário', 'female' => 'Usuária' ),
NS_USER_TALK => array( 'male' => 'Usuário_Discussão', 'female' => 'Usuária_Discussão' ),
);

Indeed. What you see in InitializeSettings.php is namespace aliases. Gender feature needs explicit application. Can you provide the forms in above format for mediawiki (and for projects if customisation needed)?

Petrb added a comment.Dec 24 2011, 3:49 PM

$namespaceGenderAliases = array(

NS_USER => array( 'male' => 'Wikipedista', 'female' => 'Wikipedistka' ),
NS_USER_TALK => array( 'male' => 'Diskuse s wikipedistou', 'female' =>

'Diskuse s wikipedistkou' ),
);

$namespaceGenderAliases = array(

NS_USER => array( 'male' => 'Uživatel', 'female' => 'Uživatelka' ),
NS_USER_TALK => array( 'male' => 'Diskuse s uživatelem', 'female' =>

'Diskuse s uživatelkou' ),
);

for User (general use for mediawiki on other projects)

Mw part in r107270.

(In reply to comment #3)

$namespaceGenderAliases = array(

NS_USER => array( 'male' => 'Wikipedista', 'female' => 'Wikipedistka' ),
NS_USER_TALK => array( 'male' => 'Diskuse s wikipedistou', 'female' =>

'Diskuse s wikipedistkou' ),
);

+shell

Enabled for cswiki.