Verified Commit e9c2002c authored by Alex ORLUC's avatar Alex ORLUC

FIX #11291 TIME 0:10 add var lang

parent 1949c3ab
......@@ -342,7 +342,7 @@ export class FolderTreeComponent implements OnInit {
}
moveFolder(ev: any, node: any) {
this.dialogRef = this.dialog.open(ConfirmComponent, { autoFocus: false, disableClose: true, data: { title: 'Déplacer ' + ev.item.data.alt_identifier, msg: 'Voulez-vous déplacer <b>' + ev.item.data.alt_identifier + '</b> dans <b>' + node.label + '</b> ?' } });
this.dialogRef = this.dialog.open(ConfirmComponent, { autoFocus: false, disableClose: true, data: { title: this.lang.move + ' ' + ev.item.data.alt_identifier, msg: this.lang.moveQuestion + ' <b>' + ev.item.data.alt_identifier + '</b> ' + this.lang.in + ' <b>' + node.label + '</b>&nbsp;?' } });
this.dialogRef.afterClosed().pipe(
filter((data: string) => data === 'ok'),
......@@ -361,7 +361,7 @@ export class FolderTreeComponent implements OnInit {
}
classifyDocument(ev: any, node: any) {
this.dialogRef = this.dialog.open(ConfirmComponent, { autoFocus: false, disableClose: true, data: { title: 'Classer ' + ev.item.data.alt_identifier, msg: 'Voulez-vous classer <b>' + ev.item.data.alt_identifier + '</b> dans <b>' + node.label + '</b> ?' } });
this.dialogRef = this.dialog.open(ConfirmComponent, { autoFocus: false, disableClose: true, data: { title: this.lang.classify + ' ' + ev.item.data.alt_identifier, msg: this.lang.classifyQuestion + ' <b>' + ev.item.data.alt_identifier + '</b> ' + this.lang.in + ' <b>' + node.label + '</b>&nbsp;?' } });
this.dialogRef.afterClosed().pipe(
filter((data: string) => data === 'ok'),
......
......@@ -181,7 +181,7 @@ export class FolderUpdateComponent implements OnInit {
this.http.put('../../rest/folders/' + this.folder.id, this.folder).pipe(
exhaustMap(() => this.http.put('../../rest/folders/' + this.folder.id + '/sharing', { public: this.folder.sharing.entities.length > 0, sharing: this.folder.sharing })),
tap((data: any) => {
this.notify.success('Dossier modifié');
this.notify.success(this.lang.folderUpdated);
this.dialogRef.close('success');
}),
catchError((err: any) => {
......
......@@ -1064,4 +1064,9 @@ export const LANG_EN = {
"less" : "Less",
"actionsAlt": "Actions",
"addRootFolder": "Add root folder",
"folderUpdated" : "Folder updated",
"in" : "in",
"classifyQuestion" : "Do you want classify",
"moveQuestion" : "Do you want move",
"classify" : "Classify",
};
......@@ -1101,4 +1101,9 @@ export const LANG_FR = {
"less" : "Moins",
"actionsAlt": "Actions",
"addRootFolder": "Nouveau dossier racine",
"folderUpdated" : "Dossier modifié",
"in" : "dans",
"classifyQuestion" : "Voulez-vous classer",
"moveQuestion" : "Voulez-vous déplacer",
"classify" : "Classer",
};
......@@ -1090,4 +1090,9 @@ export const LANG_NL = {
"less" : "Less", //_TO_TRANSLATE
"actionsAlt": "Actions", //_TO_TRANSLATE
"addRootFolder": "Add root folder", //_TO_TRANSLATE
"folderUpdated" : "Folder updated", //_TO_TRANSLATE
"in" : "in", //_TO_TRANSLATE
"classifyQuestion" : "Do you want classify", //_TO_TRANSLATE
"moveQuestion" : "Do you want move", //_TO_TRANSLATE
"classify" : "Classify", //_TO_TRANSLATE
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment