diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-02-21 16:31:50 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-02-21 16:31:50 +0100 |
commit | 50e5f7ca9e65ecf6744351f3c746c69981b83f76 (patch) | |
tree | 1302b26fb05a8677f42093342a88f952a423c972 /apps/accessibility/src/App.vue | |
parent | 0816123f67c57487072e3b6208bbc3017ada175c (diff) | |
download | nextcloud-server-50e5f7ca9e65ecf6744351f3c746c69981b83f76.tar.gz nextcloud-server-50e5f7ca9e65ecf6744351f3c746c69981b83f76.zip |
Fix html rendering and default checkbox
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility/src/App.vue')
-rw-r--r-- | apps/accessibility/src/App.vue | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/apps/accessibility/src/App.vue b/apps/accessibility/src/App.vue index 892e1ae8288..2a3316e59a1 100644 --- a/apps/accessibility/src/App.vue +++ b/apps/accessibility/src/App.vue @@ -50,13 +50,28 @@ export default { }; }, description() { - return t('accessibility', 'Universal access is very important to us. We follow web standards and check to make everything usable also without mouse, and assistive software such as screenreaders. We aim to be compliant with the {guidelines} 2.1 on AA level, with the high contrast theme even on AAA level.', {guidelines: this.guidelinesLink}) + // using the `t` replace method escape html, we have to do it manually :/ + return t( + 'accessibility', + `Universal access is very important to us. We follow web standards + and check to make everything usable also without mouse, + and assistive software such as screenreaders. + We aim to be compliant with the {guidelines} 2.1 on AA level, + with the high contrast theme even on AAA level.` + ) + .replace('{guidelines}', this.guidelinesLink) }, guidelinesLink() { return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">${t('accessibility', 'Web Content Accessibility Guidelines')}</a>` }, descriptionDetail() { - return t('accessibility', 'If you find any issues, don’t hesitate to report them on {issuetracker}. And if you want to get involved, come join {designteam}!', {issuetracker: this.issuetrackerLink, designteam: this.designteamLink}) + return t( + 'accessibility', + `If you find any issues, don’t hesitate to report them on {issuetracker}. + And if you want to get involved, come join {designteam}!` + ) + .replace('{issuetracker}', this.issuetrackerLink) + .replace('{designteam}', this.designteamLink) }, issuetrackerLink() { return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">${t('accessibility', 'our issue tracker')}</a>` |