[wp-trac] [WordPress Trac] #10278: thickbox.js strings are not i18n

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 26 09:46:23 GMT 2009


#10278: thickbox.js strings are not i18n
--------------------------+-------------------------------------------------
 Reporter:  xibe          |       Owner:  nbachiyski
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  2.8.1     
Component:  i18n          |     Version:  2.8       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Plugins are starting to rely on WP's own set of included JS libs, and
 therefore are dropping their translation for these libs' strings.

 For instance, NextGEN Gallery is now using WP's ThickBox lib rather than
 including its own version, and WP's contains the following non-i18n
 strings - which, therefore, appear in English in all cases:

 line 87:
 {{{
 TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next
 &gt;</a></span>";
 }}}

 line 90:
 {{{
 TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt;
 Prev</a></span>";
 }}}

 line 95:
 {{{
 TB_imageCount = "Image " + (TB_Counter + 1) +" of "+
 (TB_TempArray.length);
 }}}

 line 129 (title is 'Close'):
 {{{
 jQuery("#TB_window").append("<a href='' id='TB_ImageOff'
 title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"'
 height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div
 id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount +
 TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a
 href='#' id='TB_closeWindowButton' title='Close'><img src='" +
 tb_closeImage + "' /></a></div>");
 }}}

 Note that:
   - there might be others in this file, I only did a quick survey
 following [http://www.wordpress-fr.net/support/sujet-22025-traduction-
 fichier-thickbox-petit-morceaux this report] on the WPFR forums ;
   - other included libraries might also have non-i18n strings, which
 should be tracked down.

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


More information about the wp-trac mailing list