summaryrefslogtreecommitdiffstats
path: root/apps/accessibility/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-02-12 15:34:00 +0100
committerJoas Schilling <coding@schilljs.com>2020-02-12 15:34:00 +0100
commit16482efc278b7a88e89aa08cb9dd1a79dcccd416 (patch)
treebb2d3e26f5fac1109f40e2cf5208a4c98a26f0fd /apps/accessibility/src
parente2e42d4ffd2b07c32fde1a36c64e48de334cac56 (diff)
downloadnextcloud-server-16482efc278b7a88e89aa08cb9dd1a79dcccd416.tar.gz
nextcloud-server-16482efc278b7a88e89aa08cb9dd1a79dcccd416.zip
Do not use translation-concatenation
it's as bad as the word itself sounds Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/accessibility/src')
-rw-r--r--apps/accessibility/src/Accessibility.vue14
-rw-r--r--apps/accessibility/src/components/ItemPreview.vue2
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/accessibility/src/Accessibility.vue b/apps/accessibility/src/Accessibility.vue
index 63cfec20c94..b717f4cf9f9 100644
--- a/apps/accessibility/src/Accessibility.vue
+++ b/apps/accessibility/src/Accessibility.vue
@@ -65,28 +65,30 @@ export default {
`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,
+ 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}', '</a>')
},
guidelinesLink() {
- return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">${t('accessibility', 'Web Content Accessibility Guidelines')}</a>`
+ return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">`
},
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}', '</a>')
},
issuetrackerLink() {
- return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">${t('accessibility', 'our issue tracker')}</a>`
+ return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">`
},
designteamLink() {
- return `<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">${t('accessibility', 'our design team')}</a>`
+ return `<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">`
},
},
methods: {
diff --git a/apps/accessibility/src/components/ItemPreview.vue b/apps/accessibility/src/components/ItemPreview.vue
index 9c74eb03fd1..1b6f3ebf01d 100644
--- a/apps/accessibility/src/components/ItemPreview.vue
+++ b/apps/accessibility/src/components/ItemPreview.vue
@@ -8,7 +8,7 @@
v-model="checked"
type="checkbox"
class="checkbox">
- <label :for="'accessibility-' + preview.id">{{ t('accessibility', 'Enable') }} {{ preview.title.toLowerCase() }}</label>
+ <label :for="'accessibility-' + preview.id">{{ preview.enableLabel }}</label>
</div>
</div>
</template>