<!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" />
<title>[37949] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/37949">37949</a></dd>
<dt>Author</dt> <dd>adele@apple.com</dd>
<dt>Date</dt> <dd>2008-10-28 16:36:33 -0700 (Tue, 28 Oct 2008)</dd>
</dl>

<h3>Log Message</h3>
<pre>WebCore:

2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;

        Reviewed by John Sullivan.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
        &quot;files&quot; string for multifile uploads needs to be localized

        * page/mac/WebCoreViewFactory.h:
        * platform/LocalizedStrings.h:
        * platform/gtk/FileChooserGtk.cpp: (WebCore::FileChooser::basenameForWidth):
        * platform/gtk/LocalizedStringsGtk.cpp: (WebCore::multipleFileUploadText):
        * platform/mac/FileChooserMac.mm: (WebCore::FileChooser::basenameForWidth):
        * platform/mac/LocalizedStringsMac.mm: (WebCore::multipleFileUploadText):
        * platform/qt/Localizations.cpp: (WebCore::multipleFileUploadText):
        * platform/wx/LocalizedStringsWx.cpp: (WebCore::multipleFileUploadText):

WebKit:

2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;

        Reviewed by John Sullivan.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
        &quot;files&quot; string for multifile uploads needs to be localized

        * English.lproj/Localizable.strings: Updated with new string.

WebKit/mac:

2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;

        Reviewed by John Sullivan.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
        &quot;files&quot; string for multifile uploads needs to be localized

        * WebCoreSupport/WebViewFactory.mm: (-[WebViewFactory multipleFileUploadTextForNumberOfFiles:]):
        Added.

WebKit/win:

2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;

        Reviewed by John Sullivan.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
        &quot;files&quot; string for multifile uploads needs to be localized

        * WebCoreLocalizedStrings.cpp: (multipleFileUploadText):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCorepagemacWebCoreViewFactoryh">trunk/WebCore/page/mac/WebCoreViewFactory.h</a></li>
<li><a href="#trunkWebCoreplatformLocalizedStringsh">trunk/WebCore/platform/LocalizedStrings.h</a></li>
<li><a href="#trunkWebCoreplatformgtkFileChooserGtkcpp">trunk/WebCore/platform/gtk/FileChooserGtk.cpp</a></li>
<li><a href="#trunkWebCoreplatformgtkLocalizedStringsGtkcpp">trunk/WebCore/platform/gtk/LocalizedStringsGtk.cpp</a></li>
<li><a href="#trunkWebCoreplatformmacFileChooserMacmm">trunk/WebCore/platform/mac/FileChooserMac.mm</a></li>
<li><a href="#trunkWebCoreplatformmacLocalizedStringsMacmm">trunk/WebCore/platform/mac/LocalizedStringsMac.mm</a></li>
<li><a href="#trunkWebCoreplatformqtLocalizationscpp">trunk/WebCore/platform/qt/Localizations.cpp</a></li>
<li><a href="#trunkWebCoreplatformwxLocalizedStringsWxcpp">trunk/WebCore/platform/wx/LocalizedStringsWx.cpp</a></li>
<li><a href="#trunkWebKitChangeLog">trunk/WebKit/ChangeLog</a></li>
<li><a href="#trunkWebKitEnglishlprojLocalizablestrings">trunk/WebKit/English.lproj/Localizable.strings</a></li>
<li><a href="#trunkWebKitmacChangeLog">trunk/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkWebKitmacWebCoreSupportWebViewFactorymm">trunk/WebKit/mac/WebCoreSupport/WebViewFactory.mm</a></li>
<li><a href="#trunkWebKitwinChangeLog">trunk/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkWebKitwinWebCoreLocalizedStringscpp">trunk/WebKit/win/WebCoreLocalizedStrings.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/ChangeLog        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
+
+        Reviewed by John Sullivan.
+
+        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
+        &quot;files&quot; string for multifile uploads needs to be localized
+
+        * page/mac/WebCoreViewFactory.h:
+        * platform/LocalizedStrings.h:
+        * platform/gtk/FileChooserGtk.cpp: (WebCore::FileChooser::basenameForWidth):
+        * platform/gtk/LocalizedStringsGtk.cpp: (WebCore::multipleFileUploadText):
+        * platform/mac/FileChooserMac.mm: (WebCore::FileChooser::basenameForWidth):
+        * platform/mac/LocalizedStringsMac.mm: (WebCore::multipleFileUploadText):
+        * platform/qt/Localizations.cpp: (WebCore::multipleFileUploadText):
+        * platform/wx/LocalizedStringsWx.cpp: (WebCore::multipleFileUploadText):
+
</ins><span class="cx"> 2008-10-28  Brett Wilson  &lt;brettw@chromium.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Darin Adler.
</span></span></pre></div>
<a id="trunkWebCorepagemacWebCoreViewFactoryh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/page/mac/WebCoreViewFactory.h (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/page/mac/WebCoreViewFactory.h        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/page/mac/WebCoreViewFactory.h        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -122,6 +122,7 @@
</span><span class="cx"> - (NSString *)AXUncheckedCheckBoxActionVerb;
</span><span class="cx"> - (NSString *)AXLinkActionVerb;
</span><span class="cx"> 
</span><ins>+- (NSString *)multipleFileUploadTextForNumberOfFiles:(unsigned)numberOfFiles;
</ins><span class="cx"> // FTP Directory Related
</span><span class="cx"> - (NSString *)unknownFileSizeText;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebCoreplatformLocalizedStringsh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/LocalizedStrings.h (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/LocalizedStrings.h        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/LocalizedStrings.h        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -109,6 +109,7 @@
</span><span class="cx">     String AXUncheckedCheckBoxActionVerb();
</span><span class="cx">     String AXLinkActionVerb();
</span><span class="cx"> 
</span><ins>+    String multipleFileUploadText(unsigned numberOfFiles);
</ins><span class="cx">     String unknownFileSizeText();
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(WIN)
</span></span></pre></div>
<a id="trunkWebCoreplatformgtkFileChooserGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/gtk/FileChooserGtk.cpp (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/gtk/FileChooserGtk.cpp        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/gtk/FileChooserGtk.cpp        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">         g_free(systemFilename);
</span><span class="cx">         stringByAdoptingFileSystemRepresentation(systemBasename, string);
</span><span class="cx">     } else if (m_filenames.size() &gt; 1)
</span><del>-        return StringTruncator::rightTruncate(String::number(m_filenames.size()) + &quot; files&quot;, width, font, false);
</del><ins>+        return StringTruncator::rightTruncate(multipleFileUploadText(m_filenames.size()), width, font, false);
</ins><span class="cx"> 
</span><span class="cx">     return StringTruncator::centerTruncate(string, width, font, false);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebCoreplatformgtkLocalizedStringsGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/gtk/LocalizedStringsGtk.cpp (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/gtk/LocalizedStringsGtk.cpp        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/gtk/LocalizedStringsGtk.cpp        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -326,6 +326,12 @@
</span><span class="cx">     return String::fromUTF8(_(&quot;jump&quot;));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String multipleFileUploadText(unsigned numberOfFiles)
+{
+    // FIXME: If this file gets localized, this should really be localized as one string with a wildcard for the number.
+    return String::number(numberOfFiles) + String::fromUTF8(_(&quot; files&quot;));
+}
+
</ins><span class="cx"> String unknownFileSizeText()
</span><span class="cx"> {
</span><span class="cx">     return String::fromUTF8(_(&quot;Unknown&quot;));
</span></span></pre></div>
<a id="trunkWebCoreplatformmacFileChooserMacmm"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/mac/FileChooserMac.mm (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/mac/FileChooserMac.mm        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/mac/FileChooserMac.mm        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx">     else if (m_filenames.size() == 1)
</span><span class="cx">         strToTruncate = [[NSFileManager defaultManager] displayNameAtPath:(m_filenames[0])];
</span><span class="cx">     else
</span><del>-        return StringTruncator::rightTruncate(String::number(m_filenames.size()) + &quot; files&quot;, width, font, false);
</del><ins>+        return StringTruncator::rightTruncate(multipleFileUploadText(m_filenames.size()), width, font, false);
</ins><span class="cx"> 
</span><span class="cx">     return StringTruncator::centerTruncate(strToTruncate, width, font, false);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebCoreplatformmacLocalizedStringsMacmm"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/mac/LocalizedStringsMac.mm (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/mac/LocalizedStringsMac.mm        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/mac/LocalizedStringsMac.mm        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -561,6 +561,14 @@
</span><span class="cx">     return String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String multipleFileUploadText(unsigned numberOfFiles)
+{
+    BEGIN_BLOCK_OBJC_EXCEPTIONS;
+    return [[WebCoreViewFactory sharedFactory] multipleFileUploadTextForNumberOfFiles:numberOfFiles];
+    END_BLOCK_OBJC_EXCEPTIONS;
+    return String();
+}
+
</ins><span class="cx"> String unknownFileSizeText()
</span><span class="cx"> {
</span><span class="cx">     BEGIN_BLOCK_OBJC_EXCEPTIONS;
</span></span></pre></div>
<a id="trunkWebCoreplatformqtLocalizationscpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/qt/Localizations.cpp (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/qt/Localizations.cpp        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/qt/Localizations.cpp        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -333,6 +333,11 @@
</span><span class="cx">     return String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String multipleFileUploadText(unsigned)
+{
+    return String();
+}
+
</ins><span class="cx"> String unknownFileSizeText()
</span><span class="cx"> {
</span><span class="cx">     return QCoreApplication::translate(&quot;QWebPage&quot;, &quot;Unknown&quot;, &quot;Unknown filesize FTP directory listing item&quot;);
</span></span></pre></div>
<a id="trunkWebCoreplatformwxLocalizedStringsWxcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/wx/LocalizedStringsWx.cpp (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/wx/LocalizedStringsWx.cpp        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebCore/platform/wx/LocalizedStringsWx.cpp        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -261,6 +261,12 @@
</span><span class="cx">     return String(&quot;Inspect Element&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String multipleFileUploadText(unsigned numberOfFiles)
+{
+    // FIXME: If this file gets localized, this should really be localized as one string with a wildcard for the number.
+    return String::number(numberOfFiles) + String(&quot; files&quot;);
+}
+
</ins><span class="cx"> String unknownFileSizeText() 
</span><span class="cx"> {
</span><span class="cx">     return String(&quot;Unknown&quot;);
</span></span></pre></div>
<a id="trunkWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/ChangeLog (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/ChangeLog        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/ChangeLog        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -1,5 +1,14 @@
</span><span class="cx"> 2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Reviewed by John Sullivan.
+
+        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
+        &quot;files&quot; string for multifile uploads needs to be localized
+
+        * English.lproj/Localizable.strings: Updated with new string.
+
+2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
+
</ins><span class="cx">         Reviewed by Sam Weinig. 
</span><span class="cx"> 
</span><span class="cx">         * English.lproj/Localizable.strings:
</span></span></pre></div>
<a id="trunkWebKitEnglishlprojLocalizablestrings"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/English.lproj/Localizable.strings (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/English.lproj/Localizable.strings        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/English.lproj/Localizable.strings        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -1,6 +1,9 @@
</span><span class="cx"> \xFE\xFF/* window title for a standalone image (uses multiplication symbol, not x) */
</span><span class="cx"> &quot;%@ %d\xD7%d pixels&quot; = &quot;%@ %d\xD7%d pixels&quot;;
</span><span class="cx"> 
</span><ins>+/* Label to describe the number of files selected in a file upload control that allows multiple files */
+&quot;%d files&quot; = &quot;%d files&quot;;
+
</ins><span class="cx"> /* Menu item title for KEYGEN pop-up menu */
</span><span class="cx"> &quot;1024 (Medium Grade)&quot; = &quot;1024 (Medium Grade)&quot;;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/mac/ChangeLog (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/mac/ChangeLog        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/mac/ChangeLog        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
+
+        Reviewed by John Sullivan.
+
+        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
+        &quot;files&quot; string for multifile uploads needs to be localized
+
+        * WebCoreSupport/WebViewFactory.mm: (-[WebViewFactory multipleFileUploadTextForNumberOfFiles:]):
+        Added.
+
</ins><span class="cx"> 2008-10-28  Timothy Hatcher  &lt;timothy@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add WebInspector methods to enable the profiler.
</span></span></pre></div>
<a id="trunkWebKitmacWebCoreSupportWebViewFactorymm"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/mac/WebCoreSupport/WebViewFactory.mm (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/mac/WebCoreSupport/WebViewFactory.mm        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/mac/WebCoreSupport/WebViewFactory.mm        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -487,6 +487,11 @@
</span><span class="cx">     return UI_STRING(&quot;jump&quot;, &quot;Verb stating the action that will occur when a link is clicked, as used by accessibility&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (NSString *)multipleFileUploadTextForNumberOfFiles:(unsigned)numberOfFiles
+{
+    return [NSString stringWithFormat:UI_STRING(&quot;%d files&quot;, &quot;Label to describe the number of files selected in a file upload control that allows multiple files&quot;), numberOfFiles];
+}
+
</ins><span class="cx"> - (NSString *)unknownFileSizeText
</span><span class="cx"> {
</span><span class="cx">     return UI_STRING(&quot;Unknown&quot;, &quot;Unknown filesize FTP directory listing item&quot;);
</span></span></pre></div>
<a id="trunkWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/win/ChangeLog (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/ChangeLog        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/win/ChangeLog        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -1,5 +1,14 @@
</span><span class="cx"> 2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Reviewed by John Sullivan.
+
+        Fix for https://bugs.webkit.org/show_bug.cgi?id=21880
+        &quot;files&quot; string for multifile uploads needs to be localized
+
+        * WebCoreLocalizedStrings.cpp: (multipleFileUploadText):
+
+2008-10-28  Adele Peterson  &lt;adele@apple.com&gt;
+
</ins><span class="cx">         Reviewed by Sam Weinig. 
</span><span class="cx"> 
</span><span class="cx">         * English.lproj: Removed.
</span></span></pre></div>
<a id="trunkWebKitwinWebCoreLocalizedStringscpp"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/win/WebCoreLocalizedStrings.cpp (37948 => 37949)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/WebCoreLocalizedStrings.cpp        2008-10-28 23:10:42 UTC (rev 37948)
+++ trunk/WebKit/win/WebCoreLocalizedStrings.cpp        2008-10-28 23:36:33 UTC (rev 37949)
</span><span class="lines">@@ -103,3 +103,11 @@
</span><span class="cx"> 
</span><span class="cx">     return result.get();
</span><span class="cx"> }
</span><ins>+
+String multipleFileUploadText(unsigned numberOfFiles)
+{
+    static RetainPtr&lt;CFStringRef&gt; format(AdoptCF, UI_STRING(&quot;%d files&quot;, &quot;Label to describe the number of files selected in a file upload control that allows multiple files&quot;));
+    RetainPtr&lt;CFStringRef&gt; result(AdoptCF, CFStringCreateWithFormat(0, 0, format.get(), numberOfFiles));
+
+    return result.get();
+}
</ins></span></pre>
</div>
</div>

</body>
</html>