summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-27 09:56:43 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-27 18:38:56 +0200
commit7de4c809eff92ea37d4badb1e3342975a4b362f8 (patch)
treec1bd071c575633c7bfc077661ea685323e8800b8 /apps/files/js
parent6ca8ce62288aa5b181f97c45ad62c35976dbb65f (diff)
downloadnextcloud-server-7de4c809eff92ea37d4badb1e3342975a4b362f8.tar.gz
nextcloud-server-7de4c809eff92ea37d4badb1e3342975a4b362f8.zip
Translate file summary connector (#26221)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filesummary.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/filesummary.js b/apps/files/js/filesummary.js
index 519718cfc82..7545654ec44 100644
--- a/apps/files/js/filesummary.js
+++ b/apps/files/js/filesummary.js
@@ -23,7 +23,7 @@
var INFO_TEMPLATE =
'<span class="info">' +
'<span class="dirinfo"></span>' +
- '<span class="connector"> and </span>' +
+ '<span class="connector">{{connectorLabel}}</span>' +
'<span class="fileinfo"></span>' +
'<span class="hiddeninfo"></span>' +
'<span class="filter"></span>' +
@@ -203,7 +203,9 @@
if (!this._infoTemplateCompiled) {
this._infoTemplateCompiled = Handlebars.compile(INFO_TEMPLATE);
}
- return this._infoTemplateCompiled(data);
+ return this._infoTemplateCompiled(_.extend({
+ connectorLabel: t('files', '{dirs} and {files}', {dirs: '', files: ''})
+ }, data));
},
/**