[wp-trac] [WordPress Trac] #41305: Add lazily evaluated translations

WordPress Trac noreply at wordpress.org
Tue Aug 13 19:14:56 UTC 2019


#41305: Add lazily evaluated translations
-------------------------------------------------+-------------------------
 Reporter:  schlessera                           |       Owner:
                                                 |  timothyblynjacobs
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.3
Component:  I18N                                 |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch early dev-feedback needs-  |     Focuses:  rest-api,
  testing                                        |  performance
-------------------------------------------------+-------------------------

Comment (by kadamwhite):

 @joehoyle is going to open a new ticket to capture a quicker win of
 [https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
 api/endpoints/class-wp-rest-posts-controller.php#L1872 caching the
 `get_item_schema` results]; we'd still have to translate a few hundred
 strings, but only once.

 We can then de-milestone this from 5.3 until we can sync back up on the
 lazy string / _noop questions, especially since the PHP version issue
 blocking the use of closures have been mercifully removed by the efforts
 of the servehappy team :)

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


More information about the wp-trac mailing list