https://bugzilla.wikimedia.org/show_bug.cgi?id=56053
Web browser: ---
Bug ID: 56053
Summary: JS messages API should (probably) be able to discern
the gender of any username, like the PHP one
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: javascript
Severity: normal
Priority: Unprioritized
Component: Internationalization
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
https://gerrit.wikimedia.org/r/86172
This dirty, dirty hack brought to you by the fact that the JS messages API only
accepts a user object (which means, it only accepts the current user) or "male"
or "female" as its arguments to GENDER. I should really be able to pass in the
username of _any_ user on the site, like I can on the PHP side.
Fun fact: This will introduce an asynchronous leg to the message parser on the
client side.
Potential solution: Have an *optional* argument to the message parser that will
be an update callback. Once the API returns the data we need to parse the
message, we cache it and callback with the final message contents. Before then
we pass back "unspecified" messages. They'll be updated within seconds. The
problem with this is that it becomes the responsibility of the user to run the
update - they're no longer just dealing with strings.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l