[wp-trac] [WordPress Trac] #56059: register_post_type()'s "description" argument can't be translated (gettext)

WordPress Trac noreply at wordpress.org
Fri Jun 24 07:31:42 UTC 2022


#56059: register_post_type()'s "description" argument can't be translated (gettext)
-------------------------------+------------------------------
 Reporter:  andreacalligaris   |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  6.0
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by TobiasBg):

 How are you generating the .po and .mo files? Does your software maybe not
 pick up the `esc_html__()` function as a translation function?
 Can you try using `esc_html( __( ... ) );` instead?

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


More information about the wp-trac mailing list