Commit a00ebf11 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #14136 TIME 3 end front language

parent 872b192c
import { Component, OnInit } from '@angular/core';
import { LANG } from './translate.component';
import { TranslateService } from '@ngx-translate/core';
import { HeaderService } from '../service/header.service';
import { AppService } from '../service/app.service';
......@@ -16,7 +15,7 @@ import {NotificationService} from '../service/notification/notification.service'
export class AboutUsComponent implements OnInit {
applicationVersion: string;
lang: any = LANG;
loading: boolean = false;
......
import { Component, OnInit, Input, ViewChild, Output, EventEmitter } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { LANG } from '../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../service/notification/notification.service';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
......@@ -19,7 +18,7 @@ import { FunctionsService } from '../../service/functions.service';
})
export class ActionsListComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild(MatMenuTrigger, { static: false }) contextMenu: MatMenuTrigger;
......
import { Injectable, OnDestroy } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { LANG } from '../../app/translate.component';
import { TranslateService } from '@ngx-translate/core';
import { tap, catchError, filter, finalize, exhaustMap } from 'rxjs/operators';
import { of, Subject, Observable } from 'rxjs';
......@@ -45,8 +44,6 @@ import { PrintRegisteredMailActionComponent } from './print-registered-mail-acti
@Injectable()
export class ActionsService implements OnDestroy {
lang: any = LANG;
mode: string = 'indexing';
currentResourceLock: any = null;
......
......@@ -16,12 +16,12 @@
</div>
<div class="alert-message alert-message-info" *ngIf="data.resIds.length == 1 && !noResourceToProcess"
role="alert" style="margin-top: 30px;"
[innerHTML]="'<b>' + ownerOpinion + '</b> '+ lang.askOpinionUser + ' :<br/><br/>' + opinionContent">
[innerHTML]="'<b>' + ownerOpinion + '</b> '+ this.translate.instant('lang.askOpinionUser') + ' :<br/><br/>' + opinionContent">
</div>
<div class="alert-message alert-message-info"
*ngIf="data.resIds.length == 1 && appAvisWorkflow !== undefined && appAvisWorkflow.getNextAvisUser() !== ''"
role="alert" style="margin-top: 30px;"
[innerHTML]="lang.sendToDocTo + ' <b>' + appAvisWorkflow.getNextAvisUser().labelToDisplay + '</b>'">
[innerHTML]="this.translate.instant('lang.sendToDocTo') + ' <b>' + appAvisWorkflow.getNextAvisUser().labelToDisplay + '</b>'">
</div>
<div class="alert-message alert-message-info"
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -16,7 +15,7 @@ import { AvisWorkflowComponent } from '../../avis/avis-workflow.component';
})
export class ContinueAvisCircuitActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
resourcesWarnings: any[] = [];
......
......@@ -16,7 +16,7 @@
</div>
<div class="alert-message alert-message-info" *ngIf="data.resIds.length == 1 && !noResourceToProcess"
role="alert" style="margin-top: 30px;"
[innerHTML]="'<b>' + ownerOpinion + '</b> '+ lang.askOpinionUser + ' :<br/><br/>' + opinionContent">
[innerHTML]="'<b>' + ownerOpinion + '</b> '+ this.translate.instant('lang.askOpinionUser') + ' :<br/><br/>' + opinionContent">
</div>
<div class="alert-message alert-message-info" *ngIf="data.resIds.length > 1 && !noResourceToProcess"
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -15,7 +14,7 @@ import { FunctionsService } from '../../../service/functions.service';
})
export class GiveAvisParallelActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
resourcesWarnings: any[] = [];
......
import { Component, OnInit, Inject, ViewChild, AfterViewInit } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -16,7 +15,7 @@ import { AvisWorkflowComponent } from '../../avis/avis-workflow.component';
})
export class SendAvisParallelComponent implements AfterViewInit {
lang: any = LANG;
loading: boolean = false;
resourcesError: any[] = [];
......
......@@ -16,7 +16,7 @@
</div>
<div class="alert-message alert-message-info" *ngIf="data.resIds.length == 1 && !noResourceToProcess"
role="alert" style="margin-top: 30px;"
[innerHTML]="lang.validateAvisParallelSingle + ' <b>' + ownerOpinion + '</b>'">
[innerHTML]="this.translate.instant('lang.validateAvisParallelSingle') + ' <b>' + ownerOpinion + '</b>'">
</div>
<div class="alert-message alert-message-info" *ngIf="data.resIds.length > 1 && !noResourceToProcess"
......
import { Component, OnInit, Inject, ViewChild, AfterViewInit } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -17,7 +16,7 @@ import { HeaderService } from '../../../service/header.service';
})
export class ValidateAvisParallelComponent implements OnInit, AfterViewInit {
lang: any = LANG;
loading: boolean = false;
resourcesWarnings: any[] = [];
......
import { Component, OnInit, Inject, ViewChild, AfterViewInit } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -16,7 +15,7 @@ import { AvisWorkflowComponent } from '../../avis/avis-workflow.component';
})
export class SendAvisWorkflowComponent implements AfterViewInit {
lang: any = LANG;
loading: boolean = false;
resourcesError: any[] = [];
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -14,7 +13,7 @@ import { of } from 'rxjs';
})
export class CloseAndIndexActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -15,7 +14,7 @@ import { FunctionsService } from '../../../service/functions.service';
})
export class CloseMailActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -14,7 +13,7 @@ import { of } from 'rxjs';
})
export class closeMailWithAttachmentsOrNotesActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
loadingInit: boolean = false;
resourcesInfo: any = {
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -14,7 +13,7 @@ import { of } from 'rxjs';
})
export class ConfirmActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
......
......@@ -69,7 +69,7 @@
<p><b>{{acknowledgement.noSendAR.number}}</b> {{'lang.canNotSendAr' | translate}} :</p>
<ul>
<li *ngFor="let info of acknowledgement.noSendAR.list">
<b>{{info.alt_identifier != null ? info.alt_identifier : lang.undefined}}</b> :
<b>{{info.alt_identifier != null ? info.alt_identifier : this.translate.instant('lang.undefined')}}</b> :
{{info.info}}
</li>
</ul>
......
import { Component, OnInit, Inject, ViewChild, OnDestroy } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -18,7 +17,7 @@ declare var tinymce: any;
})
export class CreateAcknowledgementReceiptActionComponent implements OnInit, OnDestroy {
lang: any = LANG;
loading: boolean = false;
loadingInit: boolean = false;
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -14,7 +13,7 @@ import { of } from 'rxjs';
})
export class DisabledBasketPersistenceActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -14,7 +13,7 @@ import { of } from 'rxjs';
})
export class EnabledBasketPersistenceActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
......
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { LANG } from '../../translate.component';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '../../../service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
......@@ -15,7 +14,7 @@ import { FunctionsService } from '../../../service/functions.service';
})
export class PrintRegisteredMailActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent;
......
Supports Markdown
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