From b479af83f06ae4d5330827a78d278d9266f514c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 8 Apr 2019 16:01:52 +0200 Subject: [PATCH] Use label from apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files_sharing/src/collaborationresourceshandler.js | 3 +-- core/src/OCP/collaboration.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/src/collaborationresourceshandler.js b/apps/files_sharing/src/collaborationresourceshandler.js index ef7b271f78..8a668b3ce9 100644 --- a/apps/files_sharing/src/collaborationresourceshandler.js +++ b/apps/files_sharing/src/collaborationresourceshandler.js @@ -14,7 +14,6 @@ window.OCP.Collaboration.registerType('file', { }, false); }); }, - /** used in "Link to a {typeString}" */ - typeString: t('files_sharing', 'file'), + typeString: t('files_sharing', 'Link to a file'), typeIconClass: 'icon-files-dark' }); diff --git a/core/src/OCP/collaboration.js b/core/src/OCP/collaboration.js index 394e1d3451..efc495b8bf 100644 --- a/core/src/OCP/collaboration.js +++ b/core/src/OCP/collaboration.js @@ -64,7 +64,7 @@ export default { return types[type].typeIconClass || ''; }, getLabel(type) { - return t('core', 'Link to a {label}', { label: types[type].typeString || type }, 1) + return escapeHTML(types[type].typeString || type) }, getLink(type, id) { /* TODO: Allow action to be executed instead of href as well */