<rdar://problem/
5699509> Allow file upload dialog to be localized.
Reviewed by Darin.
* platform/LocalizedStrings.h:
* platform/win/FileChooserWin.cpp:
(WebCore::FileChooser::openFileChooser):
WebKit:
Update localization exceptions.
Reviewed by Darin.
* English.lproj/Localizable.strings:
* StringsNotToBeLocalized.txt:
WebKit/win:
<rdar://problem/
5699509> Allow file upload dialog to be localized.
Reviewed by Darin.
* English.lproj/Localizable.strings: Updated.
* WebCoreLocalizedStrings.cpp:
(WebCore::uploadFileText): Added.
(WebCore::allFilesText): Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29745
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-01-23 Steve Falkenburg <sfalken@apple.com>
+
+ <rdar://problem/5699509> Allow file upload dialog to be localized.
+
+ Reviewed by Darin.
+
+ * platform/LocalizedStrings.h:
+ * platform/win/FileChooserWin.cpp:
+ (WebCore::FileChooser::openFileChooser):
+
2008-01-23 Adam Roben <aroben@apple.com>
Fix behavior of type-to-select in <select> menus
String AXHeadingText();
String unknownFileSizeText();
+
+#if PLATFORM(WIN)
+ String uploadFileText();
+ String allFilesText();
+#endif
}
#endif
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = view->containingWindow();
- ofn.lpstrFilter = _T("All Files\0*.*\0\0");
+ String allFiles = allFilesText();
+ allFiles.append(TEXT("\0*.*\0\0"), 6);
+ ofn.lpstrFilter = allFiles.charactersWithNullTermination();
ofn.lpstrFile = fileBuf;
ofn.nMaxFile = sizeof(fileBuf);
- ofn.lpstrTitle = _T("Upload file");
+ String dialogTitle = uploadFileText();
+ ofn.lpstrTitle = dialogTitle.charactersWithNullTermination();
ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST;
// We need this protector because otherwise we can be deleted if the file upload control is detached while
+2008-01-23 Steve Falkenburg <sfalken@apple.com>
+
+ Update localization exceptions.
+
+ Reviewed by Darin.
+
+ * English.lproj/Localizable.strings:
+ * StringsNotToBeLocalized.txt:
+
2008-01-20 Mark Rowe <mrowe@apple.com>
Reviewed by Dan Bernstein.
"1px"
"2"
"3DBD89EB-CEFB-4ddb-8D1A-5BE47ED4E929"
-"419"
"420+"
-"422"
-"5242880"
"5CACD637-F82F-491F-947A-5DCA38AA0FEA"
"6EB8D98F-2723-4472-88D3-5936F9D6E631"
"7"
"DOCBASE"
"DOMSVGElement"
"DYLD_FRAMEWORK_PATH"
+"DeleteBackward"
+"DeleteForward"
"DeleteWordBackward"
"DeleteWordForward"
"FD3B2381-0BB6-4B59-AF09-0E599C8901CF"
-"ForwardDelete"
"FrameName"
"GroupName"
"HIDictionaryWindowShow"
"ImmReleaseContext"
"ImmSetCandidateWindow"
"ImmSetOpenStatus"
-"IncludeDebugMenu"
"InsertBacktab"
"InsertNewline"
"InsertTab"
"SAMILang"
"SAMIStyle"
"Safari.exe"
-"Safari/419.3"
"Times"
"ToggleBold"
"ToggleItalic"
"en"
"estimatedProgress"
"file:"
-"flickr.com"
"ftp:"
"htm"
"html"
"image/svg+xml"
"image/tiff"
"img"
+"insertText:"
"isLoading"
"isindex"
"javascript:"
"x"
"x-apple-web-kit/"
"xml"
-"yahoo.com"
"~/Library/Icons"
"~/Library/WebKit/Databases"
WebKit/mac/DOM/WebDOMOperations.mm:"background"
WebKit/mac/WebView/WebPreferences.m
WebKit/mac/WebView/WebView.mm:"Preferences"
WebKit/mac/WebView/WebView.mm:"Search With Google"
-WebKit/mac/WebView/WebView.mm:"Show DOM Tree"
WebKit/mac/WebView/WebView.mm:"control"
WebKit/mac/WebView/WebView.mm:"return "
WebKit/win/ProgIDMacros.h:"OpenSource"
+2008-01-23 Steve Falkenburg <sfalken@apple.com>
+
+ <rdar://problem/5699509> Allow file upload dialog to be localized.
+
+ Reviewed by Darin.
+
+ * English.lproj/Localizable.strings: Updated.
+ * WebCoreLocalizedStrings.cpp:
+ (WebCore::uploadFileText): Added.
+ (WebCore::allFilesText): Added.
+
2008-01-22 Adam Roben <aroben@apple.com>
Fix <rdar://5693599> REGRESSION (r29369): scroll bars are drawing when they shouldn't be on an ad on cnn.com
String WebCore::AXImageMapText() { return String(LPCTSTR_UI_STRING("image map", "accessibility role description for image map")); }
String WebCore::AXHeadingText() { return String(LPCTSTR_UI_STRING("heading", "accessibility role description for headings")); }
String WebCore::unknownFileSizeText() { return String(LPCTSTR_UI_STRING("Unknown", "Unknown filesize FTP directory listing item")); }
-
+String WebCore::uploadFileText() { return String(LPCTSTR_UI_STRING("Upload file", "(Windows) Form submit file upload dialog title")); }
+String WebCore::allFilesText() { return String(LPCTSTR_UI_STRING("All Files", "(Windows) Form submit file upload all files pop-up")); }