[wp-trac] [WordPress Trac] #6974: Delay loading of l10n string files

WordPress Trac wp-trac at lists.automattic.com
Thu May 15 16:37:01 GMT 2008


#6974: Delay loading of l10n string files
-------------------------+--------------------------------------------------
 Reporter:  mark-k       |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.7      
Component:  i18n         |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 Right now, whenever a load_textdomain is called, the translation file is
 being loaded into the memory. If someone uses an hardcoded localized
 theme, it is possible that there will not be even a single translation
 when a page is viewed, and the CPU and memory used in loading the file are
 simply wasted.

 My suggestion is that load_textdomain will not load the file but just make
 a list of all the domains and their respective translation files, and only
 when an actual translation is requested for the domain, the translation
 file will be loaded.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6974>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list