W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] Localized error messages

From: Olav Junker Kjr <olav@olav.dk>
Date: Thu, 25 Nov 2004 13:02:06 +0100
Message-ID: <41A5C9BE.4050109@olav.dk>
Concerning validation error messages, the spec says:

 > The default action is UA-specific, but is expected to consist of
 > focusing the element (possibly firing focus events if appropriate),
 > and alerting the user (ideally using a non-modal mechanism such as a
 > help balloon) that the entered value is unacceptable in the user's
 > native language along with explanatory text saying why the value is
 > currently invalid.

At first glance it seems reasonable to display errors in the users 
default locale, the same way that date formats etc. follow the users 
locale.
However, it has some ugly consequences when combined with custom 
validation and hints like the title hint to patterns, since these 
messages typically will be in the same language as the page.

Therefore I think the best UI would be to display the messages in the 
same language as the page, rather that in the users default language. 
(We may assume that the the user understands the language of the page 
since the user is in the process of filling out a form on that page)

Olav Junker Kj?r
Received on Thursday, 25 November 2004 04:02:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC