[wp-trac] [WordPress Trac] #42725: Introduce gender compatible translation function, and gender user profile field

WordPress Trac noreply at wordpress.org
Wed Nov 29 12:11:17 UTC 2017


#42725: Introduce gender compatible translation function, and gender user profile
field
-------------------------+------------------------------
 Reporter:  yoavf        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by yoavf):

 Replying to [comment:4 GregRoss]:

 > Looking at the code a bit, adding `_g()` to the extraction code probably
 doesn't work as I think you expect it to, as when the extract runs over a
 file it would simply include these strings in the default language
 extract, which isn't what you want to happen.

 On the contrary - this is exactly what I want to happen. I've updated the
 patches above to fix some minor issues and added a section titled "How
 _g() works" to this ticket description. I think this should clear up any
 confusion on why I implemented things this way, and make it clear why the
 multiple PO files approach is not relevant :)

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


More information about the wp-trac mailing list