Rubber-stamped by Oliver Hunt.
authorkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Nov 2009 20:14:52 +0000 (20:14 +0000)
committerkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Nov 2009 20:14:52 +0000 (20:14 +0000)
        Add translatable strings to cover validationMessage, after
        r51172. Already covered by existing test.

        * platform/gtk/LocalizedStringsGtk.cpp:
        (WebCore::validationMessageValueMissingText):
        (WebCore::validationMessageTypeMismatchText):
        (WebCore::validationMessagePatternMismatchText):
        (WebCore::validationMessageTooLongText):
        (WebCore::validationMessageRangeUnderflowText):
        (WebCore::validationMessageRangeOverflowText):
        (WebCore::validationMessageStepMismatchText):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51200 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/gtk/LocalizedStringsGtk.cpp

index 693396463797ad830b088183d34226cf005b3578..68dde5bf066c3b78424207c083d8d50fb7f6e536 100644 (file)
@@ -1,3 +1,19 @@
+2009-11-19  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
+
+        Rubber-stamped by Oliver Hunt.
+
+        Add translatable strings to cover validationMessage, after
+        r51172. Already covered by existing test.
+
+        * platform/gtk/LocalizedStringsGtk.cpp:
+        (WebCore::validationMessageValueMissingText):
+        (WebCore::validationMessageTypeMismatchText):
+        (WebCore::validationMessagePatternMismatchText):
+        (WebCore::validationMessageTooLongText):
+        (WebCore::validationMessageRangeUnderflowText):
+        (WebCore::validationMessageRangeOverflowText):
+        (WebCore::validationMessageStepMismatchText):
+
 2009-11-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
 
         Reviewed by Darin Adler.
index 93c75a3892f5c720b7fcd26b66a4d422cdc0fae9..5809e4770e5272681d39e97859960b5c502dbf44 100644 (file)
@@ -477,44 +477,38 @@ String localizedMediaTimeDescription(float time)
 
 String validationMessageValueMissingText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("value missing"));
 }
 
 String validationMessageTypeMismatchText()
 {
     notImplemented();
-    return String();
+    return String::fromUTF8(_("type mismatch"));
 }
 
 String validationMessagePatternMismatchText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("pattern mismatch"));
 }
 
 String validationMessageTooLongText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("too long"));
 }
 
 String validationMessageRangeUnderflowText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("range underflow"));
 }
 
 String validationMessageRangeOverflowText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("range overflow"));
 }
 
 String validationMessageStepMismatchText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(_("step mismatch"));
 }
 
 }