Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move translations to core
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 28, 2019
commit 635df15ff2e42424ffa6d1935ddd8e9829b24587
7 changes: 0 additions & 7 deletions apps/files_sharing/src/views/CollaborationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
13 changes: 12 additions & 1 deletion core/src/OCP/collaboration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
*
Expand All @@ -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 */
Expand Down