[wp-trac] [WordPress Trac] #38218: Make post type labels work during locale switching

WordPress Trac noreply at wordpress.org
Fri Sep 14 08:45:49 UTC 2018


#38218: Make post type labels work during locale switching
------------------------------------------+---------------------
 Reporter:  swissspidy                    |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  5.0
Component:  Posts, Post Types             |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+---------------------

Comment (by swissspidy):

 Just took another stab at this, using a magic getter and callbacks to make
 things work.

 Includes some basic tests for post type labels already.

 Note that you need to generate the `de_DE.mo` file in the test directory
 yourself before running the tests.

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


More information about the wp-trac mailing list