[wp-trac] [WordPress Trac] #54875: WordPress not honoring translations of _x() label functions of custom post type

WordPress Trac noreply at wordpress.org
Fri Jan 21 15:50:09 UTC 2022


#54875: WordPress not honoring translations of _x() label functions of custom post
type
--------------------------+------------------------------
 Reporter:  twinpictures  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by twinpictures):

 to set it:
 {{{#!php
 <?php
 _x( 'Event Category', 'taxonomy general name', 'my_domain' ),
 }}}

 in the .po file:
 {{{
 #: inc/file.php:120
 msgid "Event Category"
 msgstr "Veranstaltung Kategorie"
 }}}

 I now assume that the context of taxonomy general name needs to be
 provided, however I have found no documentation on this under
 https://developer.wordpress.org/reference/functions/_x/
 I look forward to finding the error of my ways.

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


More information about the wp-trac mailing list