[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:14:29 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       |   Keywords:  has-patch has-unit-tests
  Focuses:               |
-------------------------+--------------------------------------
 See #42725 for more background.

 '''What this solves'''
 To be able to properly translate numerous terms across the WP codebase,
 translators to some languages require knowledge of the gender of the user
 being referenced in the string.
 Adding an optional field to the user profile will enable the extension of
 WP's translation functions to support gender variations (see #42725)

 '''What's included'''
 - A new user profile field, and a matching get_user_gender()
 - Unit tests for get_user_gender()

 '''Gender/Pronouns - How the field was named'''
 The word ''gender'' has a lot of connotations - but it's used here in the
 grammatical sense - see [https://en.wikipedia.org/wiki/Grammatical_gender
 Grammatical Gender on Wikipedia].
 When presented to the user, we ask what their preferred ''pronoun'' is,
 since that's probably the easiest way to relate to it. The wording around
 the field was inspired by Wikipedia's gender user profile field.

 '''Screenshot'''
 [[Image(https://cldup.com/LAj-feF0TI.png)]]

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


More information about the wp-trac mailing list