summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-03-28 15:30:28 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-28 15:47:19 +0100
commit635df15ff2e42424ffa6d1935ddd8e9829b24587 (patch)
tree958972682804dcbe5f203978d2bf31175a1a2497 /core
parentcfa6c7cb7191b88622264b011f529dc18f625d9b (diff)
downloadnextcloud-server-635df15ff2e42424ffa6d1935ddd8e9829b24587.tar.gz
nextcloud-server-635df15ff2e42424ffa6d1935ddd8e9829b24587.zip
Move translations to core
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/src/OCP/collaboration.js13
1 files changed, 12 insertions, 1 deletions
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 */