<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[12276] trunk/wp-includes: l10n for thickbox.js, props nbachiyski,
  fixes #10278</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12276">12276</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-11-25 11:08:39 +0000 (Wed, 25 Nov 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>l10n for thickbox.js, props nbachiyski, fixes <a href="http://trac.wordpress.org/ticket/10278">#10278</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsthickboxthickboxjs">trunk/wp-includes/js/thickbox/thickbox.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsthickboxthickboxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/thickbox/thickbox.js (12275 => 12276)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/thickbox/thickbox.js        2009-11-25 09:50:20 UTC (rev 12275)
+++ trunk/wp-includes/js/thickbox/thickbox.js        2009-11-25 11:08:39 UTC (rev 12276)
</span><span class="lines">@@ -88,15 +88,15 @@
</span><span class="cx">                                                         if (TB_FoundURL) {
</span><span class="cx">                                                                 TB_NextCaption = TB_TempArray[TB_Counter].title;
</span><span class="cx">                                                                 TB_NextURL = TB_TempArray[TB_Counter].href;
</span><del>-                                                                TB_NextHTML = &quot;&lt;span id='TB_next'&gt;&amp;nbsp;&amp;nbsp;&lt;a href='#'&gt;Next &amp;gt;&lt;/a&gt;&lt;/span&gt;&quot;;
</del><ins>+                                                                TB_NextHTML = &quot;&lt;span id='TB_next'&gt;&amp;nbsp;&amp;nbsp;&lt;a href='#'&gt;&quot;+thickboxL10n.next+&quot;&lt;/a&gt;&lt;/span&gt;&quot;;
</ins><span class="cx">                                                         } else {
</span><span class="cx">                                                                 TB_PrevCaption = TB_TempArray[TB_Counter].title;
</span><span class="cx">                                                                 TB_PrevURL = TB_TempArray[TB_Counter].href;
</span><del>-                                                                TB_PrevHTML = &quot;&lt;span id='TB_prev'&gt;&amp;nbsp;&amp;nbsp;&lt;a href='#'&gt;&amp;lt; Prev&lt;/a&gt;&lt;/span&gt;&quot;;
</del><ins>+                                                                TB_PrevHTML = &quot;&lt;span id='TB_prev'&gt;&amp;nbsp;&amp;nbsp;&lt;a href='#'&gt;&quot;+thickboxL10n.prev+&quot;&lt;/a&gt;&lt;/span&gt;&quot;;
</ins><span class="cx">                                                         }
</span><span class="cx">                                                 } else {
</span><span class="cx">                                                         TB_FoundURL = true;
</span><del>-                                                        TB_imageCount = &quot;Image &quot; + (TB_Counter + 1) +&quot; of &quot;+ (TB_TempArray.length);
</del><ins>+                                                        TB_imageCount = thickboxL10n.image + ' ' + (TB_Counter + 1) + ' ' + thickboxL10n.of + ' ' + (TB_TempArray.length);
</ins><span class="cx">                                                 }
</span><span class="cx">                                 }
</span><span class="cx">                         }
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx"> 
</span><span class="cx">                         TB_WIDTH = imageWidth + 30;
</span><span class="cx">                         TB_HEIGHT = imageHeight + 60;
</span><del>-                        jQuery(&quot;#TB_window&quot;).append(&quot;&lt;a href='' id='TB_ImageOff' title='Close'&gt;&lt;img id='TB_Image' src='&quot;+url+&quot;' width='&quot;+imageWidth+&quot;' height='&quot;+imageHeight+&quot;' alt='&quot;+caption+&quot;'/&gt;&lt;/a&gt;&quot; + &quot;&lt;div id='TB_caption'&gt;&quot;+caption+&quot;&lt;div id='TB_secondLine'&gt;&quot; + TB_imageCount + TB_PrevHTML + TB_NextHTML + &quot;&lt;/div&gt;&lt;/div&gt;&lt;div id='TB_closeWindow'&gt;&lt;a href='#' id='TB_closeWindowButton' title='Close'&gt;&lt;img src='&quot; + tb_closeImage + &quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;);
</del><ins>+                        jQuery(&quot;#TB_window&quot;).append(&quot;&lt;a href='' id='TB_ImageOff' title='&quot;+thickboxL10n.close+&quot;'&gt;&lt;img id='TB_Image' src='&quot;+url+&quot;' width='&quot;+imageWidth+&quot;' height='&quot;+imageHeight+&quot;' alt='&quot;+caption+&quot;'/&gt;&lt;/a&gt;&quot; + &quot;&lt;div id='TB_caption'&gt;&quot;+caption+&quot;&lt;div id='TB_secondLine'&gt;&quot; + TB_imageCount + TB_PrevHTML + TB_NextHTML + &quot;&lt;/div&gt;&lt;/div&gt;&lt;div id='TB_closeWindow'&gt;&lt;a href='#' id='TB_closeWindowButton' title='&quot;+thickboxL10n.close+&quot;'&gt;&lt;img src='&quot; + tb_closeImage + &quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;);
</ins><span class="cx"> 
</span><span class="cx">                         jQuery(&quot;#TB_closeWindowButton&quot;).click(tb_remove);
</span><span class="cx"> 
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx">                                         urlNoQuery = url.split('TB_');
</span><span class="cx">                                         jQuery(&quot;#TB_iframeContent&quot;).remove();
</span><span class="cx">                                         if(params['modal'] != &quot;true&quot;){//iframe no modal
</span><del>-                                                jQuery(&quot;#TB_window&quot;).append(&quot;&lt;div id='TB_title'&gt;&lt;div id='TB_ajaxWindowTitle'&gt;&quot;+caption+&quot;&lt;/div&gt;&lt;div id='TB_closeAjaxWindow'&gt;&lt;a href='#' id='TB_closeWindowButton' title='Close'&gt;&lt;img src='&quot; + tb_closeImage + &quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;iframe frameborder='0' hspace='0' src='&quot;+urlNoQuery[0]+&quot;' id='TB_iframeContent' name='TB_iframeContent&quot;+Math.round(Math.random()*1000)+&quot;' onload='tb_showIframe()' style='width:&quot;+(ajaxContentW + 29)+&quot;px;height:&quot;+(ajaxContentH + 17)+&quot;px;' &gt; &lt;/iframe&gt;&quot;);
</del><ins>+                                                jQuery(&quot;#TB_window&quot;).append(&quot;&lt;div id='TB_title'&gt;&lt;div id='TB_ajaxWindowTitle'&gt;&quot;+caption+&quot;&lt;/div&gt;&lt;div id='TB_closeAjaxWindow'&gt;&lt;a href='#' id='TB_closeWindowButton' title='&quot;+thickboxL10n.close+&quot;'&gt;&lt;img src='&quot; + tb_closeImage + &quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;iframe frameborder='0' hspace='0' src='&quot;+urlNoQuery[0]+&quot;' id='TB_iframeContent' name='TB_iframeContent&quot;+Math.round(Math.random()*1000)+&quot;' onload='tb_showIframe()' style='width:&quot;+(ajaxContentW + 29)+&quot;px;height:&quot;+(ajaxContentH + 17)+&quot;px;' &gt; &lt;/iframe&gt;&quot;);
</ins><span class="cx">                                         }else{//iframe modal
</span><span class="cx">                                         jQuery(&quot;#TB_overlay&quot;).unbind();
</span><span class="cx">                                                 jQuery(&quot;#TB_window&quot;).append(&quot;&lt;iframe frameborder='0' hspace='0' src='&quot;+urlNoQuery[0]+&quot;' id='TB_iframeContent' name='TB_iframeContent&quot;+Math.round(Math.random()*1000)+&quot;' onload='tb_showIframe()' style='width:&quot;+(ajaxContentW + 29)+&quot;px;height:&quot;+(ajaxContentH + 17)+&quot;px;'&gt; &lt;/iframe&gt;&quot;);
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (12275 => 12276)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2009-11-25 09:50:20 UTC (rev 12275)
+++ trunk/wp-includes/script-loader.php        2009-11-25 11:08:39 UTC (rev 12276)
</span><span class="lines">@@ -165,8 +165,17 @@
</span><span class="cx">         $scripts-&gt;add( 'jquery-table-hotkeys', &quot;/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js&quot;, array('jquery', 'jquery-hotkeys'), '20090102' );
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-table-hotkeys', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'thickbox', &quot;/wp-includes/js/thickbox/thickbox.js&quot;, array('jquery'), '3.1-20091117');
</del><ins>+        $scripts-&gt;add( 'thickbox', &quot;/wp-includes/js/thickbox/thickbox.js&quot;, array('jquery'), '3.1-20091124');
</ins><span class="cx">         $scripts-&gt;add_data( 'thickbox', 'group', 1 );
</span><ins>+        $scripts-&gt;localize( 'thickbox', 'thickboxL10n', array(
+                        'next' =&gt; __('Next &amp;gt;'),
+                        'prev' =&gt; __('&amp;lt; Prev'),
+                        'image' =&gt; __('Image'),
+                        'of' =&gt; __('of'),
+                        'close' =&gt; __('Close'),
+                        'l10n_print_after' =&gt; 'try{convertEntities(thickboxL10n);}catch(e){};'
+        ) );
+        
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jcrop', &quot;/wp-includes/js/jcrop/jquery.Jcrop$suffix.js&quot;, array('jquery'), '0.9.8');
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>