Manual:$wgExtraGenderNamespaces

Details
Same as $wgExtraNamespaces, but for namespaces with gender distinction.

the default form for the namespace should also be set using $wgExtraNamespaces for the same index.