summaryrefslogtreecommitdiffstats
path: root/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp')
-rw-r--r--WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp b/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
index 514fdf4..557d899 100644
--- a/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
+++ b/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
@@ -27,14 +27,16 @@
#include "PlatformStrategiesWinCE.h"
#include "IntSize.h"
-#include "MathExtras.h"
#include "Page.h"
#include "PageGroup.h"
#include "PluginDatabase.h"
+
+#include <wtf/MathExtras.h>
#include <wtf/text/CString.h>
+#include <wtf/text/StringConcatenate.h>
-#define UI_STRING(text, desciprion) text
-#define UI_STRING_KEY(text, key, desciprion) text
+#define UI_STRING(text, description) text
+#define UI_STRING_KEY(text, key, description) text
using namespace WebCore;
@@ -489,13 +491,13 @@ String PlatformStrategiesWinCE::crashedPluginText()
String PlatformStrategiesWinCE::imageTitle(const String& filename, const IntSize& size)
{
- CString filenameCString = filename.utf8();
- return String::format(UI_STRING("%s %d\xC3\x97%d pixels", "window title for a standalone image (uses multiplication symbol, not x)"), filenameCString.data(), size.width(), size.height());
+ return UI_STRING(makeString(filename, ' ', String::number(size.width()), "\xC3\x97", String::number(size.height()), " pixels"),
+ "window title for a standalone image (uses multiplication symbol, not x)");
}
String PlatformStrategiesWinCE::multipleFileUploadText(unsigned numberOfFiles)
{
- return String::format(UI_STRING("%d files", "Label to describe the number of files selected in a file upload control that allows multiple files"), numberOfFiles);
+ return UI_STRING(makeString(String::number(numberOfFiles), " files"), "Label to describe the number of files selected in a file upload control that allows multiple files");
}
String PlatformStrategiesWinCE::mediaElementLoadingStateText()