Commit b5299752 authored by beidson's avatar beidson

WebCore:

        Reviewed by Adam

        Begin the arduous task of localizing FTP directory listings while removing a global initializer!

        * loader/FTPDirectoryDocument.cpp:
        (WebCore::processFilesizeString):

        * page/mac/WebCoreViewFactory.h:

        * platform/LocalizedStrings.h:

        * platform/gdk/TemporaryLinkStubs.cpp:
        (WebCore::unknownFileSizeText):

        * platform/mac/LocalizedStringsMac.mm:
        (WebCore::unknownFileSizeText):

        * platform/qt/Localizations.cpp:
        (WebCore::unknownFileSizeText):

WebKit:

        Reviewed by Adam

        Begin the arduous task of localizing FTP directory listings while removing a global initializer!

        * English.lproj/Localizable.strings:
        * WebCoreSupport/WebViewFactory.mm:
        (-[WebViewFactory unknownFileSizeText]):

win:

        Reviewed by Adam

        Begin the arduous task of localizing FTP directory listings while removing a global initializer!

        * English.lproj/Localizable.strings:
        * WebCoreLocalizedStrings.cpp:
        (WebCore::unknownFileSizeText):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 52403e64
2007-07-16 Brady Eidson <beidson@apple.com>
Reviewed by Adam
Begin the arduous task of localizing FTP directory listings while removing a global initializer!
* loader/FTPDirectoryDocument.cpp:
(WebCore::processFilesizeString):
* page/mac/WebCoreViewFactory.h:
* platform/LocalizedStrings.h:
* platform/gdk/TemporaryLinkStubs.cpp:
(WebCore::unknownFileSizeText):
* platform/mac/LocalizedStringsMac.mm:
(WebCore::unknownFileSizeText):
* platform/qt/Localizations.cpp:
(WebCore::unknownFileSizeText):
2007-07-16 Sam Weinig <sam@webkit.org>
Reviewed by Oliver.
......@@ -11716,6 +11716,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
knownRegions = (
English,
......@@ -11729,6 +11730,7 @@
mainGroup = 0867D691FE84028FC02AAC07 /* WebKit */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
93F198A508245E59001E9ABC /* WebCore */,
DD041FBE09D9DDBE0010AF2A /* Derived Sources */,
......@@ -34,6 +34,7 @@
#include "HTMLTableSectionElement.h"
#include "HTMLTokenizer.h"
#include "KURL.h"
#include "LocalizedStrings.h"
#include "Logging.h"
#include "FTPDirectoryParser.h"
#include "SegmentedString.h"
......@@ -46,8 +47,6 @@ using namespace std;
namespace WebCore {
const String UnknownFileSizeString = "unknown";
using namespace HTMLNames;
class FTPDirectoryTokenizer : public HTMLTokenizer {
......@@ -181,7 +180,7 @@ static String processFilesizeString(const String& size, bool isDirectory)
bool valid;
int64_t bytes = size.toUInt64(&valid);
if (!valid)
return UnknownFileSizeString;
return unknownFileSizeText();
if (bytes < 1000000)
return String::format("%.2f KB", static_cast<float>(bytes)/1000);
......
......@@ -120,6 +120,9 @@
- (NSString *)AXImageMapText;
- (NSString *)AXHeadingText;
// FTP Directory Related
- (NSString *)unknownFileSizeText;
@end
@interface WebCoreViewFactory : NSObject
......
......@@ -93,6 +93,7 @@ namespace WebCore {
String AXImageMapText();
String AXHeadingText();
String unknownFileSizeText();
}
#endif
......@@ -237,6 +237,7 @@ String WebCore::contextMenuItemTagInspectElement() { return String(); }
String WebCore::searchMenuNoRecentSearchesText() { return String("No recent searches"); }
String WebCore::searchMenuRecentSearchesText() { return String("Recent searches"); }
String WebCore::searchMenuClearRecentSearchesText() { return String("Clear recent searches"); }
String WebCore::unknownFileSizeText() { return "Unknown"; }
PluginInfo* PlugInInfoStore::createPluginInfoForPluginAtIndex(unsigned) { notImplemented(); return 0;}
unsigned PlugInInfoStore::pluginCount() const { notImplemented(); return 0; }
......
......@@ -496,4 +496,12 @@ String AXHeadingText()
return String();
}
String unknownFileSizeText()
{
BEGIN_BLOCK_OBJC_EXCEPTIONS;
return [[WebCoreViewFactory sharedFactory] unknownFileSizeText];
END_BLOCK_OBJC_EXCEPTIONS;
return String();
}
}
......@@ -86,6 +86,7 @@ String AXLinkText() { return String(); }
String AXListMarkerText() { return String(); }
String AXImageMapText() { return String(); }
String AXHeadingText() { return String(); }
String unknownFileSizeText() { return "Unknown"; }
}
// vim: ts=4 sw=4 et
2007-07-16 Brady Eidson <beidson@apple.com>
Reviewed by Adam
Begin the arduous task of localizing FTP directory listings while removing a global initializer!
* English.lproj/Localizable.strings:
* WebCoreSupport/WebViewFactory.mm:
(-[WebViewFactory unknownFileSizeText]):
2007-07-16 Adam Roben <aroben@apple.com>
Move printing from WebFrameBridge to WebChromeClient
......
B/* window title for a standalone image (uses multiplication symbol, not x) */
......
......@@ -469,4 +469,9 @@
return UI_STRING("heading", "accessibility role description for headings");
}
- (NSString *)unknownFileSizeText
{
return UI_STRING("Unknown", "Unknown filesize FTP directory listing item");
}
@end
2007-07-16 Brady Eidson <beidson@apple.com>
Reviewed by Adam
Begin the arduous task of localizing FTP directory listings while removing a global initializer!
* English.lproj/Localizable.strings:
* WebCoreLocalizedStrings.cpp:
(WebCore::unknownFileSizeText):
2007-07-16 Oliver Hunt <oliver@apple.com>
Reviewed by Maciej.
......
B/* window title for a standalone image (uses multiplication symbol, not x) */
......
......@@ -80,3 +80,5 @@ String WebCore::AXLinkText() { return String(LPCTSTR_UI_STRING("link", "accessib
String WebCore::AXListMarkerText() { return String(LPCTSTR_UI_STRING("list marker", "accessibility role description for list marker")); }
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")); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment