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

WordPress Trac noreply at wordpress.org
Thu Jan 3 17:41:12 UTC 2019


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

Comment (by kadamwhite):

 I would very much like to see this land in 5.1 or 5.2; we discussed with
 @schlessera and @TimothyBlynJacobs in slack today (see log link above).

 To summarize that discussion (and tl;dr the above comments), one remaining
 issue is what we might break if we return objects from translation
 functions. This predominately impacts areas where translations are being
 used as array keys, and tests where plugin authors may be passing
 translations to `assertString()`. Neither is unsolvable but returning
 objects does represent a back-compatibility break. We'll be checking in on
 this one weekly during the 5.1 cycle to keep things moving.

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


More information about the wp-trac mailing list