Bug 125005 - [GTK] HTML5 required attribute validation messages implemented
Summary: [GTK] HTML5 required attribute validation messages implemented
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 02:10 PST by Attila Dusnoki
Modified: 2017-03-11 10:48 PST (History)
8 users (show)

See Also:


Attachments
Proposed patch (4.72 KB, patch)
2013-11-29 02:12 PST, Attila Dusnoki
no flags Details | Formatted Diff | Diff
Proposed patch (6.54 KB, patch)
2013-12-02 06:01 PST, Attila Dusnoki
mcatanzaro: review-
mcatanzaro: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Dusnoki 2013-11-29 02:10:49 PST
Implemented missing HTML5 validation messages.
Comment 1 Attila Dusnoki 2013-11-29 02:12:51 PST
Created attachment 218044 [details]
Proposed patch
Comment 2 Kent Tamura 2013-12-01 17:42:47 PST
Comment on attachment 218044 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=218044&action=review

The change affects fast/forms/validationMessage.html.


> Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp:753
> +    return String::fromUTF8(_("Value must be greater than or equal to ")) + minimum;

This doesn't look a correct formatting way for l10n strings.  This can't be translated to some languages.
You should use g_strdup_printf() like imageTitle() in LocalizedStringsGtk,cpp, right?
Comment 3 Attila Dusnoki 2013-12-02 06:01:16 PST
Created attachment 218165 [details]
Proposed patch

in trunk/LayoutTests/platform/gtk/fast/forms/validation-message-appearance-expected.txt in line 27 "value missing" should be "Please fill out this field." but unfortunately I currently don't have a working build, so I didn't know the correct pixel size and just left it unchanged.
Comment 4 Kent Tamura 2013-12-02 20:39:21 PST
Comment on attachment 218165 [details]
Proposed patch

I have no additional comments.  Please ask GTK reviewers to approve this.
Comment 5 Michael Catanzaro 2016-01-06 19:51:10 PST
Comment on attachment 218165 [details]
Proposed patch

Sorry for the late review. Thanks for working on this. This patch looks good, except new translatable strings really need to have translator comments. Please leave a comment on the line above each new string, to help translators figure out what the string is for. For example:

// Translators: Displayed when required form field is left empty.
return String::fromUTF8(_("Please fill out this field."));

We ought to add comments for the other strings in this file as well, but for now let's just worry about not introducing new strings that lack comments.
Comment 6 Attila Dusnoki 2016-01-12 00:58:12 PST
(In reply to comment #5)
> Comment on attachment 218165 [details]
> Proposed patch
> 
> Sorry for the late review. Thanks for working on this. This patch looks
> good, except new translatable strings really need to have translator
> comments. Please leave a comment on the line above each new string, to help
> translators figure out what the string is for. For example:
> 
> // Translators: Displayed when required form field is left empty.
> return String::fromUTF8(_("Please fill out this field."));
> 
> We ought to add comments for the other strings in this file as well, but for
> now let's just worry about not introducing new strings that lack comments.

Hi!

Sorry, but I don't work on this project anymore.
Comment 7 holger.frohloff 2016-12-08 02:46:47 PST
(In reply to comment #6)
> (In reply to comment #5)
> > Comment on attachment 218165 [details]
> > Proposed patch
> > 
> > Sorry for the late review. Thanks for working on this. This patch looks
> > good, except new translatable strings really need to have translator
> > comments. Please leave a comment on the line above each new string, to help
> > translators figure out what the string is for. For example:
> > 
> > // Translators: Displayed when required form field is left empty.
> > return String::fromUTF8(_("Please fill out this field."));
> > 
> > We ought to add comments for the other strings in this file as well, but for
> > now let's just worry about not introducing new strings that lack comments.
> 
> Hi!
> 
> Sorry, but I don't work on this project anymore.

Hey.
Is this still worked on? Do you need help implementing these comments?
I'd really like to see webkit give feedback to users when validating form fields with the HTML5 required attribute.

What could I do to help?
Holger