You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
should default reset/submit button text and default summary text use node's language rather than being locale-specific? #10437
i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.topic: formsForms and form controls: input types, submission, constraint validation and autofill
Previously the HTML specification's wording for what language to use for the presentation of dates, times, and numbers, was changed (or maybe was always?) to refer to the node's language rather than to use the browser or system locale. However, the language used for the default text of <input type=submit> and <input type=reset> buttons and (now, also, as of #10265) for the text in the default summary of a <details> (when no <summary> is present) says to use implementation defined behavior that is probably locale-specific (which I presume means matching the browser or system locale).
@annevk suggested in #10265 (comment) that this follow the node's language to match the date/time/number rules.
It does seem to me that rules for words have some substantive differences from those for dates/times/numbers so it's not obvious to me that they should be the same. But it's also worth considering what the right thing is here.
One advantage of doing this is that websites designed for a single locale were likely created by web developers using the same locale and thus might not anticipate other dimensions for the buttons and such.
In I18N's 2024-07-04 call, we talked about this issue. In general, we think that page author's would like to be able to control the appearance and localization of their pages. Having default controls such as submit, reset, etc. be localized (to the extent of the browser's capability) according to the lang of the node makes sense to use. The page author might be able to get default user-agent locale behavior by neutralizing the language (lang="")?
Reacted by Anne van Kesteren, Raura, Fuqiao Xue and sb3nder
i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.topic: formsForms and form controls: input types, submission, constraint validation and autofill
Activity
annevk commentedon Jun 27, 2024
One advantage of doing this is that websites designed for a single locale were likely created by web developers using the same locale and thus might not anticipate other dimensions for the buttons and such.
aphillips commentedon Jul 4, 2024
In I18N's 2024-07-04 call, we talked about this issue. In general, we think that page author's would like to be able to control the appearance and localization of their pages. Having default controls such as submit, reset, etc. be localized (to the extent of the browser's capability) according to the
langof the node makes sense to use. The page author might be able to get default user-agent locale behavior by neutralizing the language (lang="")?