summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorscambra <sergio@entrecables.com>2012-09-26 07:46:04 +0200
committerscambra <sergio@entrecables.com>2012-10-16 20:53:31 +0200
commitc814a7a8411d709efd56b884f0219a18c544fcc0 (patch)
tree21d5bea0b0f39d8f09212e83a4f4059146f22b3b /core
parente7c9d5fe54ec619793ae77829b93df4635279662 (diff)
downloadnextcloud-server-c814a7a8411d709efd56b884f0219a18c544fcc0.tar.gz
nextcloud-server-c814a7a8411d709efd56b884f0219a18c544fcc0.zip
use interpolation for some translations in js
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 7968edebb7a..de50e53a441 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -127,9 +127,9 @@ OC.Share={
var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
if (data.reshare) {
if (data.reshare.share_type == OC.Share.SHARE_TYPE_GROUP) {
- html += '<span class="reshare">'+t('core', 'Shared with you and the group')+' '+data.reshare.share_with+' '+t('core', 'by')+' '+data.reshare.uid_owner+'</span>';
+ html += '<span class="reshare">'+t('core', 'Shared with you and the group {group} by {owner}', {group: data.reshare.share_with, owner: data.reshare.uid_owner})+'</span>';
} else {
- html += '<span class="reshare">'+t('core', 'Shared with you by')+' '+data.reshare.uid_owner+'</span>';
+ html += '<span class="reshare">'+t('core', 'Shared with you by {owner}', {owner: data.reshare.uid_owner})+'</span>';
}
html += '<br />';
}
@@ -247,7 +247,7 @@ OC.Share={
if (collectionList.length > 0) {
$(collectionList).append(', '+shareWith);
} else {
- var html = '<li style="clear: both;" data-collection="'+item+'">'+t('core', 'Shared in')+' '+item+' '+t('core', 'with')+' '+shareWith+'</li>';
+ var html = '<li style="clear: both;" data-collection="'+item+'">'+t('core', 'Shared in {item} with {user}', {'item': item, user: shareWith})+'</li>';
$('#shareWithList').prepend(html);
}
} else {