Commit 38676178 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Override default accessible description of name input

Some screen readers (e.g. orca) do not read '<' and '>' that are listed as
invalid characters for the name. Explicitly set an accessible description
where the names of the characters are spelled out.

GnuPG-bug-id: 5916
parent 7d9c716e
Pipeline #162603 failed with stage
in 25 seconds
......@@ -82,12 +82,17 @@ public:
ui.nameInput->setValidator(Validation::simpleName(Validation::Optional, q));
ui.nameInput->setToolTip(xi18n(
"<para>The name must not contain any of the following characters: &lt;, &gt;, @.</para>"));
ui.nameInput->setAccessibleDescription(i18nc("text for screen readers",
"The name must not contain any of the following characters: less-than sign, greater-than sign, at sign."));
ui.nameInput->setErrorMessage(i18n("Error: The entered name contains invalid characters."));
} else {
ui.nameInput->setValidator(Validation::simpleName(regexp, Validation::Optional, q));
ui.nameInput->setToolTip(xi18n(
"<para>The name must not contain any of the following characters: &lt;, &gt;, @. "
"Additionally, the name must follow the rules set by your organization.</para>"));
ui.nameInput->setAccessibleDescription(i18nc("text for screen readers",
"The name must not contain any of the following characters: less-than sign, greater-than sign, at sign. "
"Additionally, the name must follow the rules set by your organization."));
ui.nameInput->setErrorMessage(i18n(
"Error: The entered name contains invalid characters "
"or it does not follow your organization's rules."));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment