From c8ddbc385c301b0b8c98c63a0dfd1f1752ee94be Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 15 Feb 2016 09:20:15 +0100 Subject: [PATCH] Do not use string concatination for translations --- core/js/sharedialogview.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 225c9bffd6..0918864294 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -243,12 +243,19 @@ var insert = $(""); 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);