Merge pull request #22383 from owncloud/better-sharee-translations

Do not use string concatination for translations
This commit is contained in:
Thomas Müller 2016-02-15 11:16:16 +01:00
commit be65ba4089

View file

@ -243,12 +243,19 @@
var insert = $("<a>"); var insert = $("<a>");
var text = item.label; var text = item.label;
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) { 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) { } else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
if (item.value.server) { 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 { } else {
text = text + ' (' + t('core', 'remote') + ')'; text = t('core', '{sharee} (remote)', {
sharee: text
});
} }
} }
insert.text(text); insert.text(text);