[wp-trac] [WordPress Trac] #14972: Proposal: Pool of common strings for core, themes, and plugins

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 27 13:05:25 UTC 2010

#14972: Proposal:  Pool of common strings for core, themes, and plugins
 Reporter:  demetris      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  i18n          |     Version:  3.1            
 Severity:  normal        |    Keywords:  dev-feedback   

Comment(by filosofo):

 In theory, it's a good idea, but how helpful would it actually be in
  * Since plugins and themes still must localize their non-common strings,
 how much is saved by localizing a few of their strings in the common pool?
 I would suspect most of the memory consumption happens in the overhead of
 loading the plugins' `.mo` files, which will happen anyways.
  * How many resources will be wasted by loading localized strings that end
 up not being used?
  * It seems like by its intent we would only add, not substract, strings,
 so the common strings' memory-consumption footprint would grow over time.

 To get a better idea of how helpful this would be, I would like to see the
 following data:
  * How much a single, e.g., 20-character string adds to the memory
  * What the percentage is of shared strings across plugins in the

Ticket URL: <http://core.trac.wordpress.org/ticket/14972#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list