[wp-trac] Re: [WordPress Trac] #3089: Localized values for plugin metadata

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 18 03:04:14 GMT 2008

#3089: Localized values for plugin metadata
 Reporter:  nbachiyski               |        Owner:  ryan    
     Type:  enhancement              |       Status:  reopened
 Priority:  normal                   |    Milestone:  2.7     
Component:  i18n                     |      Version:          
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch tested phpdoc  |  
Comment (by DD32):

 > I was just thinking of adding another parameter to the function, which
 if set to true will translate and if set to false (the default) will not
 try to translate.

 The reason i avoided that was to remove the extra processing for when its
 not needed.

 The plugin updater runs every 12 hours, which involves parsing all the
 plugins, It doesnt need the translated or marked up details.[[BR]]
 The plugins page is visited a bit less often, And is the only real place
 that it needs translated details to show up (There are plugins which show
 the plugins list, that'd need to be updated).

 The cache in use is only for that pageload, it doesnt affect future page
 loads, that cached data should not be kept past the end of the pageload.
 So it seems a waste of time to cache them seperately, Esp when the likely
 chances are that it'll not need to be translated at all.

 A parameter would allow more backwards compatibility, However moving
 Display-related logic into the Main file and leaving the data sourcing to
 the raw functions makes more sense to me. Its just a suggestion.

 > Can we just add another element to the plugin data for the raw/canonical
 Theres no reason why it cant also include the untranslated details, I just
 felt the way i suggested it was a bit 'cleaner' in terms of code, But i'm
 happy as long as it works :)

Ticket URL: <http://trac.wordpress.org/ticket/3089#comment:44>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list