Move selectionVars into if statement
This commit is contained in:
parent
69c550ce51
commit
72799ffba2
1 changed files with 4 additions and 5 deletions
|
@ -1945,12 +1945,11 @@
|
|||
var directoryInfo = n('files', '%n folder', '%n folders', summary.totalDirs);
|
||||
var fileInfo = n('files', '%n file', '%n files', summary.totalFiles);
|
||||
|
||||
var selectionVars = {
|
||||
dirs: directoryInfo,
|
||||
files: fileInfo
|
||||
};
|
||||
|
||||
if (summary.totalDirs > 0 && summary.totalFiles > 0) {
|
||||
var selectionVars = {
|
||||
dirs: directoryInfo,
|
||||
files: fileInfo
|
||||
};
|
||||
var selection = t('files', '{dirs} and {files}', selectionVars);
|
||||
} else if (summary.totalDirs > 0) {
|
||||
var selection = directoryInfo;
|
||||
|
|
Loading…
Reference in a new issue