summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogview.js
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-15 09:20:15 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-15 09:20:15 +0100
commitc8ddbc385c301b0b8c98c63a0dfd1f1752ee94be (patch)
tree46264209f9ebe29b1523d62416b313233954d0d7 /core/js/sharedialogview.js
parentbe34cea970b9953ba70ddcec296ad48cd36df797 (diff)
downloadnextcloud-server-c8ddbc385c301b0b8c98c63a0dfd1f1752ee94be.tar.gz
nextcloud-server-c8ddbc385c301b0b8c98c63a0dfd1f1752ee94be.zip
Do not use string concatination for translations
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r--core/js/sharedialogview.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 225c9bffd62..09188642946 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -243,12 +243,19 @@
var insert = $("<a>");
var text = item.label;
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
- text = text + ' ('+t('core', 'group')+')';
+ text = t('core', '{sharee} (group)', {
+ sharee: text
+ });
} else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
if (item.value.server) {
- text = text + ' (' + t('core', 'at') + ' ' + item.value.server + ')';
+ text = t('core', '{sharee} (at {server})', {
+ sharee: text,
+ server: item.value.server
+ });
} else {
- text = text + ' (' + t('core', 'remote') + ')';
+ text = t('core', '{sharee} (remote)', {
+ sharee: text
+ });
}
}
insert.text(text);