[wp-trac] [WordPress Trac] #15124: Script concatentation breaks l10n of javascript output in head

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 23 17:01:55 UTC 2010


#15124: Script concatentation breaks l10n of javascript output in head
-----------------------------------------------------------------+----------
 Reporter:  macbrink                                             |        Owner:  westi   
     Type:  defect (bug)                                         |       Status:  reopened
 Priority:  high                                                 |    Milestone:  3.1     
Component:  JavaScript                                           |      Version:  3.0.1   
 Severity:  major                                                |   Resolution:          
 Keywords:  convertentities, i18n, has-patch, needs-improvement  |  
-----------------------------------------------------------------+----------

Comment(by westi):

 Replying to [comment:17 ocean90]:
 > azizur:
 > The reason is, that it's needed by the admin bar, see:
 >
 > {{{
 >       $scripts->localize( 'admin-bar', 'adminBarL10n', array(
 >               'url' => __( 'URL:' ),
 >               'noShortlink' => __( 'No shortlink available for this
 page.' ),
 >               'l10n_print_after' =>
 'try{convertEntities(adminBarL10n);}catch(e){};',
 >       ) );
 > }}}

 I suspect we may output it as the only js as well because of the way it
 works at the moment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15124#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list