[Mediawiki-i18n] How do I find out on client-side whether the current language uses genders?

Gergo Tisza gtisza at wikimedia.org
Sun Apr 20 04:28:48 UTC 2014


On Sat, Apr 19, 2014 at 9:24 PM, Roan Kattouw <roan.kattouw at gmail.com>wrote:

> Do you need the gender of the current user, or of another user?
>
> If you need the gender of the current user, all you need to do is
> depend on mediawiki.user and mediawiki.jqueryMsg, then just pass
> mw.user (the user object) as the parameter to {{GENDER:$1|...}}. If
> you need the gender of a different user, I'm not sure that's even
> available.


I need the gender of a different user (the one who uploaded a given image -
not even necessarily a user on the same wiki). It is available via the
users API, [1] what I need to know is whether it is necessary.


[1] https://www.mediawiki.org/wiki/API:Users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/mediawiki-i18n/attachments/20140419/7f9844ab/attachment.html>


More information about the Mediawiki-i18n mailing list