[wp-trac] [WordPress Trac] #34114: Remove the requirement to call load_plugin_textdomain() or load_theme_textdomain()

WordPress Trac noreply at wordpress.org
Fri Oct 2 00:37:05 UTC 2015


#34114: Remove the requirement to call load_plugin_textdomain() or
load_theme_textdomain()
--------------------------------------+------------------------------
 Reporter:  johnbillion               |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+------------------------------

Comment (by dd32):

 This is very similar to something I've been working on - allowing JIT
 translation loading from the "loaded" textdomains, extending it to auto-
 load textdomains is something I hadn't thought of, but something we could
 do easily.

 One of the reasons I've been looking into JIT is that currently our POMO
 classes load all translations upon `load_textdomain()` call, which if you
 have many plugins which only have strings on a small percentage of pages
 (or admin only) causes a bunch of extra memory usage (plus loading MO
 files is slow)

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


More information about the wp-trac mailing list