[wp-trac] [WordPress Trac] #42900: Add gender field to user profile for use in translations

WordPress Trac noreply at wordpress.org
Thu Dec 14 13:20:41 UTC 2017


#42900: Add gender field to user profile for use in translations
--------------------------------------+------------------------------
 Reporter:  yoavf                     |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  I18N                      |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by danieltj):

 Personally, I think it would be less confusing to have a Gender select box
 with he, she and other rather than radio button and explaining it as much
 as it currently is.

 I do like the idea though, +1.

 Perhaps it would be better to, instead of having `get_user_gender` as a
 function to return he, she or they, instead have a new translation
 function called `_g` where it accepts a placeholder to be returned as he,
 she or they, or even his, her, their. I think that'd be a much more
 elegant solution.

 I'll see if I can whip up a patch to explain further.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42900#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list