r83168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83167‎ | r83168 | r83169 >
Date:20:04, 3 March 2011
Author:kaldari
Status:deferred
Tags:
Comment:
fixes for Bug 26178
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizard.i18n.php (modified) (history)
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php
@@ -202,7 +202,8 @@
203203 'mwe-upwiz-license-pd-us' => 'Public Domain (US)',
204204 'mwe-upwiz-categories' => 'Categories',
205205 'mwe-upwiz-categories-add' => 'Add',
206 - 'mwe-upwiz-category-remove' => 'Remove this category'
 206+ 'mwe-upwiz-category-remove' => 'Remove this category',
 207+ 'mwe-upwiz-thanks-caption' => 'Add caption here'
207208 );
208209
209210 /** Message documentation (Message documentation)
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -2215,7 +2215,8 @@
22162216
22172217 thanksDiv.append( thumbnailDiv );
22182218
2219 - var thumbWikiText = "[[" + upload.title + "|thumb|Add caption here]]";
 2219+ var thumbTitle = String(upload.title);
 2220+ var thumbWikiText = "[[" + thumbTitle.replace('_', ' ') + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]";
22202221
22212222 thanksDiv.append(
22222223 $j( '<div class="mwe-upwiz-data"></div>' )

Status & tagging log