summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-15 11:16:16 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-15 11:16:16 +0100
commitbe65ba408933ffed21754a2c310f8ccb6242957d (patch)
treeef8962923cc83e121812943d0b46b9bef3f18825
parent2054dbd4c886e8f4d3fcd02f95bab78fb88cc917 (diff)
parentc8ddbc385c301b0b8c98c63a0dfd1f1752ee94be (diff)
downloadnextcloud-server-be65ba408933ffed21754a2c310f8ccb6242957d.tar.gz
nextcloud-server-be65ba408933ffed21754a2c310f8ccb6242957d.zip
Merge pull request #22383 from owncloud/better-sharee-translations
Do not use string concatination for translations
-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 857d1407ab4..e7435877cb3 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);