[wp-trac] [WordPress Trac] #5242: upload.php after file upload not L10n'ed (script-loader.php)

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 22 18:37:50 GMT 2007


#5242: upload.php after file upload not L10n'ed (script-loader.php)
--------------------+-------------------------------------------------------
 Reporter:  lybica  |       Owner:  anonymous                                
     Type:  defect  |      Status:  new                                      
 Priority:  normal  |   Milestone:  2.3.1                                    
Component:  i18n    |     Version:  2.3                                      
 Severity:  minor   |    Keywords:  l10n, localization, upload, script-loader
--------------------+-------------------------------------------------------
 Using SVN /tags/2.3 with ja.mo[[BR]]

 After submitting an image file from post editor with upload.php, the next
 page with "Show: Thumbnail", "Link to: File", etc. is not loading
 localized strings even though {{{__()}}} is called for each "uploadL10n"
 entry.[[BR]][[BR]]
 Is seems that .mo file is not effective before
 {{{
  $this->localize( 'upload', 'uploadL10n', array(
 }}}
 in wp-includes/script-loader.php (line 124-),
 because changing {{{$val}}} to {{{__($val)}}} at
 {{{
  echo "$eol\t\t$var: \"" . js_escape( $val ) . '"';
 }}}
 (line 203) solves the problem.

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


More information about the wp-trac mailing list