diff options
-rw-r--r-- | apps/files_sharing/src/views/CollaborationView.vue | 7 | ||||
-rw-r--r-- | core/src/OCP/collaboration.js | 13 |
2 files changed, 12 insertions, 8 deletions
diff --git a/apps/files_sharing/src/views/CollaborationView.vue b/apps/files_sharing/src/views/CollaborationView.vue index 9049db9f635..6ecc43710c4 100644 --- a/apps/files_sharing/src/views/CollaborationView.vue +++ b/apps/files_sharing/src/views/CollaborationView.vue @@ -27,13 +27,6 @@ <script> import { CollectionList } from 'nextcloud-vue-collections' - /** - * Those translations will be used by the vue component but they should be shipped with the server - * t('files_sharing', 'Add to a collection') - * t('files_sharing', 'Details') - * t('files_sharing', 'Rename collection') - */ - export default { name: 'CollaborationView', computed: { diff --git a/core/src/OCP/collaboration.js b/core/src/OCP/collaboration.js index cfbdb467f5e..c56dea12047 100644 --- a/core/src/OCP/collaboration.js +++ b/core/src/OCP/collaboration.js @@ -32,6 +32,17 @@ **/ let types = {}; +/** + * Those translations will be used by the vue component but they should be shipped with the server + * t('core', 'Add to a collection') + * t('core', 'Show details') + * t('core', 'Hide details') + * t('core', 'Rename collection') + * t('core', 'Failed to rename collection') + * t('core', 'Failed to create collection') + * t('core', 'Failed to add resource to collection') + */ + export default { /** * @@ -51,7 +62,7 @@ export default { return types[type].typeIconClass || ''; }, getLabel(type) { - return t('files_sharing', 'Link to a {label}', { label: types[type].typeString || type }, 1) + return t('core', 'Link to a {label}', { label: types[type].typeString || type }, 1) }, getLink(type, id) { /* TODO: Allow action to be executed instead of href as well */ |