mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Wrong grammar with single file uploaded (#1468)
#1449 Wrong grammar with single file upload
This commit is contained in:
parent
f5d2269c2e
commit
aba4c8ef3e
@ -1,7 +1,7 @@
|
|||||||
<div class="file-dialog" [ngClass]="{show: isDialogActive}">
|
<div class="file-dialog" [ngClass]="{show: isDialogActive}">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span id="total-upload-completed">{{totalCompleted}}</span> {{'FILE_UPLOAD.MESSAGES.COMPLETED' | translate}}
|
<span id="total-upload-completed">{{totalCompleted}}</span> {{ totalCompletedMsg | translate}}
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<div class="minimize-button" [ngClass]="{active: _isDialogMinimized}" (keyup.enter)="toggleDialogMinimize()" (click)="toggleDialogMinimize()" tabindex="0">
|
<div class="minimize-button" [ngClass]="{active: _isDialogMinimized}" (keyup.enter)="toggleDialogMinimize()" (click)="toggleDialogMinimize()" tabindex="0">
|
||||||
|
@ -46,6 +46,8 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
totalCompleted: number = 0;
|
totalCompleted: number = 0;
|
||||||
|
|
||||||
|
totalCompletedMsg: string = 'FILE_UPLOAD.MESSAGES.SINGLE_COMPLETED';
|
||||||
|
|
||||||
private _isDialogMinimized: boolean = false;
|
private _isDialogMinimized: boolean = false;
|
||||||
|
|
||||||
private listSubscription: any;
|
private listSubscription: any;
|
||||||
@ -72,6 +74,9 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
|||||||
if (this.uploadService.totalCompleted$) {
|
if (this.uploadService.totalCompleted$) {
|
||||||
this.counterSubscription = this.uploadService.totalCompleted$.subscribe((total: number) => {
|
this.counterSubscription = this.uploadService.totalCompleted$.subscribe((total: number) => {
|
||||||
this.totalCompleted = total;
|
this.totalCompleted = total;
|
||||||
|
if (this.totalCompleted > 1) {
|
||||||
|
this.totalCompletedMsg = 'FILE_UPLOAD.MESSAGES.COMPLETED';
|
||||||
|
}
|
||||||
this.cd.detectChanges();
|
this.cd.detectChanges();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
"CANCEL": "CANCEL"
|
"CANCEL": "CANCEL"
|
||||||
},
|
},
|
||||||
"MESSAGES": {
|
"MESSAGES": {
|
||||||
|
"SINGLE_COMPLETED": "upload complete",
|
||||||
"COMPLETED": "uploads complete",
|
"COMPLETED": "uploads complete",
|
||||||
"PROGRESS": "Upload in progress...",
|
"PROGRESS": "Upload in progress...",
|
||||||
"FOLDER_ALREADY_EXIST": "The folder {0} already exist",
|
"FOLDER_ALREADY_EXIST": "The folder {0} already exist",
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
"CANCEL": "CANCELLA"
|
"CANCEL": "CANCELLA"
|
||||||
},
|
},
|
||||||
"MESSAGES": {
|
"MESSAGES": {
|
||||||
|
"SINGLE_COMPLETED": "caricamento completato",
|
||||||
"COMPLETED": "caricamenti completati",
|
"COMPLETED": "caricamenti completati",
|
||||||
"PROGRESS": "caricamento in corso...",
|
"PROGRESS": "caricamento in corso...",
|
||||||
"FOLDER_ALREADY_EXIST": "Cartella {0} già presente",
|
"FOLDER_ALREADY_EXIST": "Cartella {0} già presente",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user