diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-10-18 00:28:46 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-10-18 00:28:46 +0400 |
commit | 9f01cd05fb152d6346ac2ba0d739cb77eea8aa8f (patch) | |
tree | d7ffb4cae841ee819376c9fb20eb03ea29419176 /core | |
parent | 04824162d9230faaf0992b3b0e3e52e01011bf78 (diff) | |
parent | c814a7a8411d709efd56b884f0219a18c544fcc0 (diff) |
Merge pull request #37 from scambra/js-interpolation-l10n
use interpolation for some translations in js
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 6 |
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 { |