https://bugzilla.wikimedia.org/show_bug.cgi?id=27387

Platonides <platoni...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |platoni...@gmail.com

--- Comment #4 from Platonides <platoni...@gmail.com> 2011-03-06 21:55:17 UTC 
---
> > Maybe better idea is to create [[MediaWiki:Nstab-user-male]] and
> > [[MediaWiki:Nstab-user-female]] and use these messages when
> > $namespaceGenderAliases is enabled.
> 
> This particular idea is not a good suggestion, because it assumes that
> male/female will be the only two forms GENDER will (ever) use. 

There's nothing fixed in that naming.

$gender = $user->getGender();
if ($gender === '') {
  $msg = 'nstab-user';
} else {
  $msg = 'nstab-user-' . $gender;

  if $msg doesn't exists, fall back to 'nstab-user'
}

print wfMsg($msg) in the tab

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to