From e217aa2743a2926ac57eec59d4ac403114dbc4b8 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sat, 14 Mar 2020 14:56:31 +0100 Subject: [PATCH] Use a normal string to translate. Somehow the multi line strings are still a problem for t. Signed-off-by: Daniel Kesselberg --- apps/accessibility/src/Accessibility.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/apps/accessibility/src/Accessibility.vue b/apps/accessibility/src/Accessibility.vue index 63cfec20c94..aaf5dcd8d4c 100644 --- a/apps/accessibility/src/Accessibility.vue +++ b/apps/accessibility/src/Accessibility.vue @@ -62,31 +62,28 @@ export default { // 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.` + '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}Web Content Accessibility Guidelines{linkend} 2.1 on AA level, with the high contrast theme even on AAA level.' ) .replace('{guidelines}', this.guidelinesLink) + .replace('{linkend}', '') }, guidelinesLink() { - return `${t('accessibility', 'Web Content Accessibility Guidelines')}` + return `` }, 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}!` + 'If you find any issues, don’t hesitate to report them on {issuetracker}our issue tracker{linkend}. And if you want to get involved, come join {designteam}our design team{linkend}!' ) .replace('{issuetracker}', this.issuetrackerLink) .replace('{designteam}', this.designteamLink) + .replace(/\{linkend\}/g, '') }, issuetrackerLink() { - return `${t('accessibility', 'our issue tracker')}` + return `` }, designteamLink() { - return `${t('accessibility', 'our design team')}` + return `` }, }, methods: {