<div dir="rtl"><div dir="ltr">I wouldn't do it per language, even though there are languages that hardly ever need gender, such as Hungarian ;)<br><br></div><div dir="ltr">Perhaps it could be done per message - to have a function somewhere in jqueryMsg that quickly checks whether the parsed message would actually be different for different genders, and if it would be the same then not to do the API call. I guess that a simple regex that checks whether a message has a GENDER clause with more than one parameter is enough, but I might be wrong.<br>

</div></div><div class="gmail_extra"><br clear="all"><div><br>--<br>Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי<br><a href="http://aharoni.wordpress.com" target="_blank">http://aharoni.wordpress.com</a><br>‪“We're living in pieces,<br>

I want to live in peace.” – T. Moore‬</div>
<br><br><div class="gmail_quote"><div dir="ltr">2014-04-20 7:28 GMT+03:00 Gergo Tisza <span dir="ltr"><<a href="mailto:gtisza@wikimedia.org" target="_blank">gtisza@wikimedia.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Sat, Apr 19, 2014 at 9:24 PM, Roan Kattouw <span dir="ltr"><<a href="mailto:roan.kattouw@gmail.com" target="_blank">roan.kattouw@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><span style="color:rgb(34,34,34)">Do you need the gender of the current user, or of another user?</span><br>


</div></div>
<br>
If you need the gender of the current user, all you need to do is<br>
depend on mediawiki.user and mediawiki.jqueryMsg, then just pass<br>
mw.user (the user object) as the parameter to {{GENDER:$1|...}}. If<br>
you need the gender of a different user, I'm not sure that's even<br>
available.</blockquote><div><br></div></div><div>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.</div>


<div><br></div><div><br></div><div>[1] <a href="https://www.mediawiki.org/wiki/API:Users" target="_blank">https://www.mediawiki.org/wiki/API:Users</a></div></div></div></div>
<br>_______________________________________________<br>
Mediawiki-i18n mailing list<br>
<a href="mailto:Mediawiki-i18n@lists.wikimedia.org">Mediawiki-i18n@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n" target="_blank">https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n</a><br>
<br></blockquote></div><br></div>