Changeset 208930 in webkit


Ignore:
Timestamp:
Nov 19, 2016 1:22:13 PM (7 years ago)
Author:
Chris Dumez
Message:

Update HTML form validation messages
https://bugs.webkit.org/show_bug.cgi?id=164957
<rdar://problem/29338669>

Reviewed by Darin Adler.

Source/WebCore:

Update HTML form validation messages as per recent feedback:

  • Drop the "Please".
  • Drop the period at the end.
  • Drop the "if you want to proceed" that was used only for the checkbox.

No new tests, rebaselined existing tests.

  • English.lproj/Localizable.strings:
  • platform/LocalizedStrings.cpp:

(WebCore::validationMessageValueMissingText):
(WebCore::validationMessageValueMissingForCheckboxText):
(WebCore::validationMessageValueMissingForFileText):
(WebCore::validationMessageValueMissingForRadioText):
(WebCore::validationMessageValueMissingForSelectText):
(WebCore::validationMessageTypeMismatchText):
(WebCore::validationMessageTypeMismatchForEmailText):
(WebCore::validationMessageTypeMismatchForURLText):
(WebCore::validationMessagePatternMismatchText):
(WebCore::validationMessageTooShortText):
(WebCore::validationMessageTooLongText):
(WebCore::validationMessageRangeUnderflowText):
(WebCore::validationMessageRangeOverflowText):
(WebCore::validationMessageStepMismatchText):
(WebCore::validationMessageBadInputForNumberText):

LayoutTests:

Rebaseline existing tests.

  • fast/forms/number/number-validation-message-expected.txt:
  • fast/forms/number/number-validation-message.html:
  • fast/forms/validation-custom-message-expected.txt:
  • fast/forms/validation-custom-message.html:
  • fast/forms/validation-messages-expected.txt:
  • fast/forms/validation-messages.html:
  • fast/forms/validationMessage-expected.txt:
Location:
trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r208929 r208930  
     12016-11-19  Chris Dumez  <cdumez@apple.com>
     2
     3        Update HTML form validation messages
     4        https://bugs.webkit.org/show_bug.cgi?id=164957
     5        <rdar://problem/29338669>
     6
     7        Reviewed by Darin Adler.
     8
     9        Rebaseline existing tests.
     10
     11        * fast/forms/number/number-validation-message-expected.txt:
     12        * fast/forms/number/number-validation-message.html:
     13        * fast/forms/validation-custom-message-expected.txt:
     14        * fast/forms/validation-custom-message.html:
     15        * fast/forms/validation-messages-expected.txt:
     16        * fast/forms/validation-messages.html:
     17        * fast/forms/validationMessage-expected.txt:
     18
    1192016-11-19  Joanmarie Diggs  <jdiggs@igalia.com>
    220
  • trunk/LayoutTests/fast/forms/date/input-date-validation-message-expected.txt

    r207509 r208930  
    77PASS testIt("", "", "") is ""
    88Value missing
    9 FAIL testIt("", "", "") should be value missing. Was Please fill out this field..
     9FAIL testIt("", "", "") should be value missing. Was Fill out this field.
    1010Type mismatch
    1111PASS testIt("foo", "", "") is ""
    1212Range overflow
    13 FAIL testIt("1982-11-02", "", "1970-12-31") should be range overflow. Was Value must be less than or equal to 1970-12-31..
     13FAIL testIt("1982-11-02", "", "1970-12-31") should be range overflow. Was Value must be less than or equal to 1970-12-31.
    1414Range underflow
    15 FAIL testIt("1982-11-02", "1990-05-25", "1990-12-24") should be range underflow. Was Value must be greater than or equal to 1990-05-25..
     15FAIL testIt("1982-11-02", "1990-05-25", "1990-12-24") should be range underflow. Was Value must be greater than or equal to 1990-05-25.
    1616Step mismatch
    17 FAIL testIt("1982-11-02", "", "", "123") should be step mismatch. Was Please enter a valid value..
     17FAIL testIt("1982-11-02", "", "", "123") should be step mismatch. Was Enter a valid value.
    1818PASS successfullyParsed is true
    1919
  • trunk/LayoutTests/fast/forms/number/number-validation-message-expected.txt

    r207509 r208930  
    77PASS testIt("", "", "") is ""
    88Value missing
    9 PASS testIt("", "", "") is "Please fill out this field."
     9PASS testIt("", "", "") is "Fill out this field"
    1010Type mismatch
    1111PASS testIt("foo", "", "") is ""
    1212Range overflow
    13 PASS testIt("200", "", "100") is "Value must be less than or equal to 100."
     13PASS testIt("200", "", "100") is "Value must be less than or equal to 100"
    1414Range underflow
    15 PASS testIt("10", "50", "100") is "Value must be greater than or equal to 50."
     15PASS testIt("10", "50", "100") is "Value must be greater than or equal to 50"
    1616Step mismatch
    17 PASS testIt("55", "0", "100", "10") is "Please enter a valid value."
     17PASS testIt("55", "0", "100", "10") is "Enter a valid value"
    1818PASS successfullyParsed is true
    1919
  • trunk/LayoutTests/fast/forms/number/number-validation-message.html

    r207509 r208930  
    2626debug('Value missing')
    2727input.setAttribute("required", "");
    28 shouldBeEqualToString('testIt("", "", "")', 'Please fill out this field.');
     28shouldBeEqualToString('testIt("", "", "")', 'Fill out this field');
    2929input.removeAttribute("required");
    3030
     
    3333
    3434debug('Range overflow')
    35 shouldBeEqualToString('testIt("200", "", "100")', 'Value must be less than or equal to 100.');
     35shouldBeEqualToString('testIt("200", "", "100")', 'Value must be less than or equal to 100');
    3636
    3737debug('Range underflow')
    38 shouldBeEqualToString('testIt("10", "50", "100")', 'Value must be greater than or equal to 50.');
     38shouldBeEqualToString('testIt("10", "50", "100")', 'Value must be greater than or equal to 50');
    3939
    4040debug('Step mismatch')
    41 shouldBeEqualToString('testIt("55", "0", "100", "10")', 'Please enter a valid value.');
     41shouldBeEqualToString('testIt("55", "0", "100", "10")', 'Enter a valid value');
    4242
    4343</script>
  • trunk/LayoutTests/fast/forms/validation-custom-message-expected.txt

    r208397 r208930  
    55
    66PASS validationBubbleContents.message is "This is a custom validity message."
    7 PASS validationBubbleContents.message is "Please fill out this field."
     7PASS validationBubbleContents.message is "Fill out this field"
    88PASS successfullyParsed is true
    99
  • trunk/LayoutTests/fast/forms/validation-custom-message.html

    r208397 r208930  
    3434        testRunner.runUIScript(getValidationBubbleContents(), function(result) {
    3535            validationBubbleContents = JSON.parse(result).validationBubble;
    36             shouldBeEqualToString("validationBubbleContents.message", "Please fill out this field.");
     36            shouldBeEqualToString("validationBubbleContents.message", "Fill out this field");
    3737            finishJSTest();
    3838        });
  • trunk/LayoutTests/fast/forms/validation-messages-expected.txt

    r208361 r208930  
    44
    55
    6 PASS validationBubbleContents.message is "Please fill out this field."
    7 PASS validationBubbleContents.message is "Please check this box if you want to proceed."
    8 PASS validationBubbleContents.message is "Please select one of these options."
    9 PASS validationBubbleContents.message is "Please select a file."
    10 PASS validationBubbleContents.message is "Please enter an email address."
    11 PASS validationBubbleContents.message is "Please enter a URL."
    12 PASS validationBubbleContents.message is "Please match the requested format."
    13 PASS validationBubbleContents.message is "Please use at least 100 characters."
    14 PASS validationBubbleContents.message is "Value must be greater than or equal to 5."
    15 PASS validationBubbleContents.message is "Value must be less than or equal to 5."
    16 PASS validationBubbleContents.message is "Please enter a valid value."
     6PASS validationBubbleContents.message is "Fill out this field"
     7PASS validationBubbleContents.message is "Check this box"
     8PASS validationBubbleContents.message is "Select one of these options"
     9PASS validationBubbleContents.message is "Select a file"
     10PASS validationBubbleContents.message is "Enter an email address"
     11PASS validationBubbleContents.message is "Enter a URL"
     12PASS validationBubbleContents.message is "Match the requested format"
     13PASS validationBubbleContents.message is "Use at least 100 characters"
     14PASS validationBubbleContents.message is "Value must be greater than or equal to 5"
     15PASS validationBubbleContents.message is "Value must be less than or equal to 5"
     16PASS validationBubbleContents.message is "Enter a valid value"
    1717PASS successfullyParsed is true
    1818
  • trunk/LayoutTests/fast/forms/validation-messages.html

    r208361 r208930  
    5151
    5252var tests = [
    53     ['required_text_input_submit', 'Please fill out this field.'],
    54     ['required_checkbox_submit', 'Please check this box if you want to proceed.'],
    55     ['required_radio_submit', 'Please select one of these options.'],
    56     ['required_file_submit', 'Please select a file.'],
    57     ['required_email_submit', 'Please enter an email address.'],
    58     ['required_url_submit', 'Please enter a URL.'],
    59     ['input_with_pattern_submit', 'Please match the requested format.'],
    60     ['input_with_minlength_submit', 'Please use at least 100 characters.'],
    61     ['range_with_min_submit', 'Value must be greater than or equal to 5.'],
    62     ['range_with_max_submit', 'Value must be less than or equal to 5.'],
    63     ['range_with_step_submit', 'Please enter a valid value.'],
     53    ['required_text_input_submit', 'Fill out this field'],
     54    ['required_checkbox_submit', 'Check this box'],
     55    ['required_radio_submit', 'Select one of these options'],
     56    ['required_file_submit', 'Select a file'],
     57    ['required_email_submit', 'Enter an email address'],
     58    ['required_url_submit', 'Enter a URL'],
     59    ['input_with_pattern_submit', 'Match the requested format'],
     60    ['input_with_minlength_submit', 'Use at least 100 characters'],
     61    ['range_with_min_submit', 'Value must be greater than or equal to 5'],
     62    ['range_with_max_submit', 'Value must be less than or equal to 5'],
     63    ['range_with_step_submit', 'Enter a valid value'],
    6464];
    6565var currentTestIndex = -1;
  • trunk/LayoutTests/fast/forms/validationMessage-expected.txt

    r207509 r208930  
    44
    55
    6 input patternMismatch: Please match the requested format.
    7 input valueMissing: Please fill out this field.
    8 textarea valueMissing: Please fill out this field.
    9 select valueMissing: Please select an item in the list.
    10 input typeMismatch: Please enter an email address.
    11 input badInput: Please enter a number.
     6input patternMismatch: Match the requested format
     7input valueMissing: Fill out this field
     8textarea valueMissing: Fill out this field
     9select valueMissing: Select an item in the list
     10input typeMismatch: Enter an email address
     11input badInput: Enter a number
    1212badInput and valueMissing:
    1313PASS numberInput.validationMessage is nonRequiredBadInputMessage
  • trunk/LayoutTests/platform/ios-simulator-wk2/fast/forms/validation-messages-expected.txt

    r208361 r208930  
    44
    55
    6 PASS validationBubbleContents.message is "Please fill out this field."
    7 PASS validationBubbleContents.message is "Please check this box if you want to proceed."
    8 PASS validationBubbleContents.message is "Please select one of these options."
    9 PASS validationBubbleContents.message is "Please select a file."
    10 PASS validationBubbleContents.message is "Please enter an email address."
    11 PASS validationBubbleContents.message is "Please enter a URL."
    12 PASS validationBubbleContents.message is "Please match the requested format."
    13 FAIL validationBubbleContents.message should be Please use at least 100 characters.. Was Please fill out this field..
    14 PASS validationBubbleContents.message is "Value must be greater than or equal to 5."
    15 PASS validationBubbleContents.message is "Value must be less than or equal to 5."
    16 PASS validationBubbleContents.message is "Please enter a valid value."
     6PASS validationBubbleContents.message is "Fill out this field"
     7PASS validationBubbleContents.message is "Check this box"
     8PASS validationBubbleContents.message is "Select one of these options"
     9PASS validationBubbleContents.message is "Select a file"
     10PASS validationBubbleContents.message is "Enter an email address"
     11PASS validationBubbleContents.message is "Enter a URL"
     12PASS validationBubbleContents.message is "Match the requested format"
     13FAIL validationBubbleContents.message should be Use at least 100 characters. Was Fill out this field.
     14PASS validationBubbleContents.message is "Value must be greater than or equal to 5"
     15PASS validationBubbleContents.message is "Value must be less than or equal to 5"
     16PASS validationBubbleContents.message is "Enter a valid value"
    1717PASS successfullyParsed is true
    1818
  • trunk/LayoutTests/platform/mac-elcapitan/fast/forms/validation-message-appearance-expected.txt

    r207509 r208930  
    2626    RenderBlock {DIV} at (10,10) size 200x64
    2727      RenderBlock {DIV} at (0,0) size 200x16
    28         RenderText {#text} at (0,0) size 153x16
    29           text run at (0,0) width 153: "Please fill out this field."
     28        RenderText {#text} at (0,0) size 105x16
     29          text run at (0,0) width 105: "Fill out this field"
    3030      RenderBlock {DIV} at (0,16) size 200x48
    3131        RenderText {#text} at (0,0) size 147x16
  • trunk/LayoutTests/platform/mac/fast/forms/validation-message-appearance-expected.txt

    r207509 r208930  
    55    RenderBody {BODY} at (8,8) size 784x23
    66      RenderBlock {FORM} at (0,0) size 784x23
    7         RenderTextControl {INPUT} at (2,2) size 146x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
    8           RenderFlexibleBox {DIV} at (3,3) size 140x13
    9             RenderBlock {DIV} at (0,0) size 140x13
    10         RenderText {#text} at (149,2) size 5x18
    11           text run at (149,2) width 5: " "
    12         RenderButton {INPUT} at (155,3) size 54x18 [bgcolor=#C0C0C0]
    13           RenderBlock (anonymous) at (8,2) size 37x13
    14             RenderText at (0,0) size 37x13
    15               text run at (0,0) width 37: "Submit"
     7        RenderTextControl {INPUT} at (2,2) size 137x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
     8          RenderFlexibleBox {DIV} at (3,3) size 131x13
     9            RenderBlock {DIV} at (0,0) size 131x13
     10        RenderText {#text} at (140,2) size 5x18
     11          text run at (140,2) width 5: " "
     12        RenderButton {INPUT} at (146,3) size 54x18 [bgcolor=#C0C0C0]
     13          RenderBlock (anonymous) at (8,2) size 38x13
     14            RenderText at (0,0) size 38x13
     15              text run at (0,0) width 38: "Submit"
    1616        RenderText {#text} at (0,0) size 0x0
    17 layer at (13,13) size 140x13
    18   RenderBlock {DIV} at (0,0) size 140x13
     17layer at (13,13) size 130x13
     18  RenderBlock {DIV} at (0,0) size 131x13
    1919layer at (10,29) size 220x100
    2020  RenderBlock (positioned) zI: 2147483647 {DIV} at (10,29) size 220x100
     
    2626    RenderBlock {DIV} at (10,10) size 200x64
    2727      RenderBlock {DIV} at (0,0) size 200x16
    28         RenderText {#text} at (0,0) size 152x16
    29           text run at (0,0) width 152: "Please fill out this field."
     28        RenderText {#text} at (0,0) size 105x16
     29          text run at (0,0) width 105: "Fill out this field"
    3030      RenderBlock {DIV} at (0,16) size 200x48
    31         RenderText {#text} at (0,0) size 145x16
    32           text run at (0,0) width 145: "Needs at least 8 letters."
    33         RenderBR {BR} at (144,0) size 1x16
    34         RenderText {#text} at (0,16) size 192x32
    35           text run at (0,16) width 192: "Should not be identical with the"
    36           text run at (0,32) width 110: "current password."
     31        RenderText {#text} at (0,0) size 147x16
     32          text run at (0,0) width 147: "Needs at least 8 letters."
     33        RenderBR {BR} at (146,0) size 1x16
     34        RenderText {#text} at (0,16) size 195x32
     35          text run at (0,16) width 195: "Should not be identical with the"
     36          text run at (0,32) width 112: "current password."
    3737layer at (42,29) size 18x18 backgroundClip at (10,29) size 220x16 clip at (10,29) size 220x16
    3838  RenderBlock (relative positioned) zI: 2147483645 {DIV} at (0,0) size 18x18 [bgcolor=#F8ECEC] [border: (2px solid #440000) none (2px solid #440000)]
  • trunk/Source/WebCore/ChangeLog

    r208929 r208930  
     12016-11-19  Chris Dumez  <cdumez@apple.com>
     2
     3        Update HTML form validation messages
     4        https://bugs.webkit.org/show_bug.cgi?id=164957
     5        <rdar://problem/29338669>
     6
     7        Reviewed by Darin Adler.
     8
     9        Update HTML form validation messages as per recent feedback:
     10        - Drop the "Please".
     11        - Drop the period at the end.
     12        - Drop the "if you want to proceed" that was used only for the checkbox.
     13
     14        No new tests, rebaselined existing tests.
     15
     16        * English.lproj/Localizable.strings:
     17        * platform/LocalizedStrings.cpp:
     18        (WebCore::validationMessageValueMissingText):
     19        (WebCore::validationMessageValueMissingForCheckboxText):
     20        (WebCore::validationMessageValueMissingForFileText):
     21        (WebCore::validationMessageValueMissingForRadioText):
     22        (WebCore::validationMessageValueMissingForSelectText):
     23        (WebCore::validationMessageTypeMismatchText):
     24        (WebCore::validationMessageTypeMismatchForEmailText):
     25        (WebCore::validationMessageTypeMismatchForURLText):
     26        (WebCore::validationMessagePatternMismatchText):
     27        (WebCore::validationMessageTooShortText):
     28        (WebCore::validationMessageTooLongText):
     29        (WebCore::validationMessageRangeUnderflowText):
     30        (WebCore::validationMessageRangeOverflowText):
     31        (WebCore::validationMessageStepMismatchText):
     32        (WebCore::validationMessageBadInputForNumberText):
     33
    1342016-11-19  Joanmarie Diggs  <jdiggs@igalia.com>
    235
  • trunk/Source/WebCore/English.lproj/Localizable.strings

    r207860 r208930  
    8787
    8888/* Menu item title for KEYGEN pop-up menu */
    89 "1024 (Medium Grade)" = "1024 (Medium Grade)";
    90 
    91 /* Menu item title for KEYGEN pop-up menu */
    9289"2048 (High Grade)" = "2048 (High Grade)";
    93 
    94 /* Menu item title for KEYGEN pop-up menu */
    95 "512 (Low Grade)" = "512 (Low Grade)";
    9690
    9791/* window title for a standalone image (uses multiplication symbol, not x) */
     
    158152"Check Spelling While Typing" = "Check Spelling While Typing";
    159153
     154/* Validation message for required checkboxes that have not be checked */
     155"Check this box" = "Check this box";
     156
    160157/* title for a single file chooser button used in HTML forms */
    161158"Choose File" = "Choose File";
     
    251248"Enter Picture in Picture" = "Enter Picture in Picture";
    252249
     250/* Validation message for input form controls of type 'url' that have an invalid value */
     251"Enter a URL" = "Enter a URL";
     252
     253/* Validation message for number fields where the user entered a non-number string */
     254"Enter a number" = "Enter a number";
     255
     256/* Validation message for input form controls with value not respecting the step attribute */
     257"Enter a valid value" = "Enter a valid value";
     258
     259/* Validation message for input form controls of type 'email' that have an invalid value */
     260"Enter an email address" = "Enter an email address";
     261
    253262/* Video Exit Fullscreen context menu item */
    254263"Exit Full Screen" = "Exit Full Screen";
     
    260269"Exit Picture in Picture" = "Exit Picture in Picture";
    261270
     271/* Validation message for required form control elements that have no value */
     272"Fill out this field" = "Fill out this field";
     273
    262274/* Default application name for Open With context menu */
    263275"Finder" = "Finder";
     
    306318
    307319/* Validation message for input form controls with a value not matching type */
    308 "Invalid value." = "Invalid value.";
     320"Invalid value" = "Invalid value";
    309321
    310322/* Italic context menu item */
     
    368380"Make Upper Case" = "Make Upper Case";
    369381
     382/* Validation message for input form controls requiring a constrained value according to pattern */
     383"Match the requested format" = "Match the requested format";
     384
    370385/* Label text to be used when a plugin is missing */
    371386"Missing Plug-in" = "Missing Plug-in";
     
    464479"Play movie in fullscreen mode" = "Play movie in fullscreen mode";
    465480
    466 /* Validation message for required checkboxes that have not be checked */
    467 "Please check this box if you want to proceed." = "Please check this box if you want to proceed.";
    468 
    469 /* Validation message for input form controls of type 'url' that have an invalid value */
    470 "Please enter a URL." = "Please enter a URL.";
    471 
    472 /* Validation message for number fields where the user entered a non-number string */
    473 "Please enter a number." = "Please enter a number.";
    474 
    475 /* Validation message for input form controls with value not respecting the step attribute */
    476 "Please enter a valid value." = "Please enter a valid value.";
    477 
    478 /* Validation message for input form controls of type 'email' that have an invalid value */
    479 "Please enter an email address." = "Please enter an email address.";
    480 
    481 /* Validation message for required form control elements that have no value */
    482 "Please fill out this field." = "Please fill out this field.";
    483 
    484 /* Validation message for input form controls requiring a constrained value according to pattern */
    485 "Please match the requested format." = "Please match the requested format.";
    486 
    487 /* Validation message for required file inputs that have no value */
    488 "Please select a file." = "Please select a file.";
    489 
    490 /* Validation message for required menu list controls that have no selection */
    491 "Please select an item in the list." = "Please select an item in the list.";
    492 
    493 /* Validation message for required radio boxes that have no selection */
    494 "Please select one of these options." = "Please select one of these options.";
    495 
    496 /* Validation message for form control elements with a value shorter than minimum allowed length */
    497 "Please use at least %d characters." = "Please use at least %d characters.";
    498 
    499 /* Validation message for form control elements with a value shorter than maximum allowed length */
    500 "Please use no more than %d characters." = "Please use no more than %d characters.";
    501 
    502481/* Label text to be used if plugin host process has crashed */
    503482"Plug-in Failure" = "Plug-in Failure";
     
    542521"Search with Google" = "Search with Google";
    543522
     523/* Validation message for required file inputs that have no value */
     524"Select a file" = "Select a file";
     525
     526/* Validation message for required menu list controls that have no selection */
     527"Select an item in the list" = "Select an item in the list";
     528
     529/* Validation message for required radio boxes that have no selection */
     530"Select one of these options" = "Select one of these options";
     531
    544532/* Selection direction context sub-menu item */
    545533"Selection Direction" = "Selection Direction";
     
    752740"Use Standard Ligatures (Undo action name)" = "Use Standard Ligatures";
    753741
     742/* Validation message for form control elements with a value shorter than minimum allowed length */
     743"Use at least %d characters" = "Use at least %d characters";
     744
     745/* Validation message for form control elements with a value shorter than maximum allowed length */
     746"Use no more than %d characters" = "Use no more than %d characters";
     747
    754748/* Description of WebCrypto master keys in Keychain */
    755749"Used to encrypt WebCrypto keys in persistent storage, such as IndexedDB" = "Used to encrypt WebCrypto keys in persistent storage, such as IndexedDB";
    756750
    757751/* Validation message for input form controls with value lower than allowed minimum */
    758 "Value must be greater than or equal to %@." = "Value must be greater than or equal to %@.";
     752"Value must be greater than or equal to %@" = "Value must be greater than or equal to %@";
    759753
    760754/* Validation message for input form controls with value higher than allowed maximum */
    761 "Value must be less than or equal to %@." = "Value must be less than or equal to %@.";
     755"Value must be less than or equal to %@" = "Value must be less than or equal to %@";
    762756
    763757/* Web Inspector window title when inspecting Web Inspector */
     
    845839"created" = "created";
    846840
     841/* The less good value description for a meter element. */
     842"critical value" = "critical value";
     843
    847844/* accessibility help text for movie status display */
    848845"current movie status" = "current movie status";
     
    935932"length required" = "length required";
    936933
    937 /* The less good value description for a meter element. */
    938 "critical value" = "critical value";
    939 
    940934/* accessibility role description for link */
    941935"link" = "link";
  • trunk/Source/WebCore/platform/LocalizedStrings.cpp

    r208858 r208930  
    10621062String validationMessageValueMissingText()
    10631063{
    1064     return WEB_UI_STRING("Please fill out this field.", "Validation message for required form control elements that have no value");
     1064    return WEB_UI_STRING("Fill out this field", "Validation message for required form control elements that have no value");
    10651065}
    10661066
    10671067String validationMessageValueMissingForCheckboxText()
    10681068{
    1069     return WEB_UI_STRING("Please check this box if you want to proceed.", "Validation message for required checkboxes that have not be checked");
     1069    return WEB_UI_STRING("Check this box", "Validation message for required checkboxes that have not be checked");
    10701070}
    10711071
    10721072String validationMessageValueMissingForFileText()
    10731073{
    1074     return WEB_UI_STRING("Please select a file.", "Validation message for required file inputs that have no value");
     1074    return WEB_UI_STRING("Select a file", "Validation message for required file inputs that have no value");
    10751075}
    10761076
     
    10821082String validationMessageValueMissingForRadioText()
    10831083{
    1084     return WEB_UI_STRING("Please select one of these options.", "Validation message for required radio boxes that have no selection");
     1084    return WEB_UI_STRING("Select one of these options", "Validation message for required radio boxes that have no selection");
    10851085}
    10861086
    10871087String validationMessageValueMissingForSelectText()
    10881088{
    1089     return WEB_UI_STRING("Please select an item in the list.", "Validation message for required menu list controls that have no selection");
     1089    return WEB_UI_STRING("Select an item in the list", "Validation message for required menu list controls that have no selection");
    10901090}
    10911091
    10921092String validationMessageTypeMismatchText()
    10931093{
    1094     return WEB_UI_STRING("Invalid value.", "Validation message for input form controls with a value not matching type");
     1094    return WEB_UI_STRING("Invalid value", "Validation message for input form controls with a value not matching type");
    10951095}
    10961096
    10971097String validationMessageTypeMismatchForEmailText()
    10981098{
    1099     return WEB_UI_STRING("Please enter an email address.", "Validation message for input form controls of type 'email' that have an invalid value");
     1099    return WEB_UI_STRING("Enter an email address", "Validation message for input form controls of type 'email' that have an invalid value");
    11001100}
    11011101
     
    11071107String validationMessageTypeMismatchForURLText()
    11081108{
    1109     return WEB_UI_STRING("Please enter a URL.", "Validation message for input form controls of type 'url' that have an invalid value");
     1109    return WEB_UI_STRING("Enter a URL", "Validation message for input form controls of type 'url' that have an invalid value");
    11101110}
    11111111
    11121112String validationMessagePatternMismatchText()
    11131113{
    1114     return WEB_UI_STRING("Please match the requested format.", "Validation message for input form controls requiring a constrained value according to pattern");
     1114    return WEB_UI_STRING("Match the requested format", "Validation message for input form controls requiring a constrained value according to pattern");
    11151115}
    11161116
    11171117String validationMessageTooShortText(int, int minLength)
    11181118{
    1119     return formatLocalizedString(WEB_UI_STRING("Please use at least %d characters.", "Validation message for form control elements with a value shorter than minimum allowed length"), minLength);
     1119    return formatLocalizedString(WEB_UI_STRING("Use at least %d characters", "Validation message for form control elements with a value shorter than minimum allowed length"), minLength);
    11201120}
    11211121
    11221122String validationMessageTooLongText(int, int maxLength)
    11231123{
    1124     return formatLocalizedString(WEB_UI_STRING("Please use no more than %d characters.", "Validation message for form control elements with a value shorter than maximum allowed length"), maxLength);
     1124    return formatLocalizedString(WEB_UI_STRING("Use no more than %d characters", "Validation message for form control elements with a value shorter than maximum allowed length"), maxLength);
    11251125}
    11261126
     
    11281128{
    11291129#if PLATFORM(COCOA)
    1130     return formatLocalizedString(WEB_UI_STRING("Value must be greater than or equal to %@.", "Validation message for input form controls with value lower than allowed minimum"), minimum.createCFString().get());
     1130    return formatLocalizedString(WEB_UI_STRING("Value must be greater than or equal to %@", "Validation message for input form controls with value lower than allowed minimum"), minimum.createCFString().get());
    11311131#else
    11321132    UNUSED_PARAM(minimum);
     
    11381138{
    11391139#if PLATFORM(COCOA)
    1140     return formatLocalizedString(WEB_UI_STRING("Value must be less than or equal to %@.", "Validation message for input form controls with value higher than allowed maximum"), maximum.createCFString().get());
     1140    return formatLocalizedString(WEB_UI_STRING("Value must be less than or equal to %@", "Validation message for input form controls with value higher than allowed maximum"), maximum.createCFString().get());
    11411141#else
    11421142    UNUSED_PARAM(maximum);
     
    11471147String validationMessageStepMismatchText(const String&, const String&)
    11481148{
    1149     return WEB_UI_STRING("Please enter a valid value.", "Validation message for input form controls with value not respecting the step attribute");
     1149    return WEB_UI_STRING("Enter a valid value", "Validation message for input form controls with value not respecting the step attribute");
    11501150}
    11511151
    11521152String validationMessageBadInputForNumberText()
    11531153{
    1154     return WEB_UI_STRING("Please enter a number.", "Validation message for number fields where the user entered a non-number string");
     1154    return WEB_UI_STRING("Enter a number", "Validation message for number fields where the user entered a non-number string");
    11551155}
    11561156
Note: See TracChangeset for help on using the changeset viewer.