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

WordPress Trac noreply at wordpress.org
Thu Aug 3 15:39:03 UTC 2017


#41305: Add lazily evaluated translations
-------------------------+------------------------------------
 Reporter:  schlessera   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:  4.8
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  rest-api, performance
-------------------------+------------------------------------

Comment (by swissspidy):

 #38643 is an area where something like this would have been useful. For
 #38218 specifically I suggested using a new class.

 One thing that bugs me about this patch here is that it would make
 transitioning to a new translation system (still dreaming of
 MessageFormat) much harder because of all the new functions and classes.

 I like keeping it simple with `_noop()` and `translate_noop()`.

 -----

 @schlessera Would you mind using `.diff` file extensions next time so we
 have syntax highlighting here in Trac? Thanks :-)

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


More information about the wp-trac mailing list