Project

General

Profile

Fonctionnalité #14136

Refonte gestion des langues

Added by Alex ORLUC almost 2 years ago. Updated 11 months ago.

Status:
Développé / Analysé (S)
Priority:
1-Majeur
Assignee:
Florian AZIZIAN
Target version:
Start date:
06/11/2020
Due date:
Tags Courrier:
ROADMAP:

History

#1 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from A traiter to Etude planifiée

#2 Updated by Florian AZIZIAN almost 2 years ago

  • Project changed from CURRENT SPRINT to Backlog
  • Status changed from Etude planifiée to Prêt à développer

#4 Updated by Emmanuel DILLARD almost 2 years ago

JSON (lang.fr)
Fichiers + Migration (TS et custom)
Prise en compte
analyse Front (Dev SUR US liée)
Brancher l'installeur
DOC
TU

#5 Updated by Emmanuel DILLARD almost 2 years ago

  • Project changed from Backlog to CURRENT SPRINT
  • Status changed from Prêt à développer to En cours de dev (S)

#6 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee deleted (EDI PO)

#8 Updated by Florian AZIZIAN almost 2 years ago

  • Status changed from En cours de dev (S) to A retravailler (S)

#9 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from A retravailler (S) to En cours de dev (S)

#14 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee set to Alex ORLUC

#16 Updated by Alex ORLUC almost 2 years ago

  • Assignee deleted (Alex ORLUC)

#17 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee set to Alex ORLUC

#18 Updated by Alex ORLUC almost 2 years ago

  • Assignee deleted (Alex ORLUC)

#19 Updated by Florian AZIZIAN almost 2 years ago

  • Status changed from En cours de dev (S) to A retravailler (S)

#20 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from A retravailler (S) to En cours de dev (S)

#23 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee set to Florian AZIZIAN

#24 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee deleted (Florian AZIZIAN)

#25 Updated by Alex ORLUC almost 2 years ago

  • Assignee set to Alex ORLUC

#27 Updated by Florian AZIZIAN almost 2 years ago

{{(\s*)lang.([a-zA-Z0-9_])(\s)}}
replace => {{'lang.$2' | translate}}

{{(\s*)this.lang.([a-zA-Z0-9_])(\s)}}
replace => {{'lang.$2' | translate}}

"(\s*)this.lang.([a-zA-Z0-9_]*)"
replace => "this.translate.instant('lang.$2')"

"(\s*)lang.([a-zA-Z0-9_])(\s)"
replace => "this.translate.instant('lang.$2')"

this.lang.([a-zA-Z0-9_]*)
replace => this.translate.instant('lang.$1')

import(\s*){(\s*)lang(\s*)}(\s*)from(\s*)([a-zA-Z'./]*);
replace => import { LANG } from $6;\nimport { TranslateService } from '@ngx-translate/core';

import(\s*){(\s*)TranslateService(\s*)}(\s*)from(\s*)
ajout à la main dans le constructor : private translate: TranslateService

lang(\s*)[
=> remplacement à la main

(\s*)import(\s*){(\s*)LANG(\s*)}(\s*)from(\s*)'([.\/]*)translate.component';\n
replace => \n

lang(\s*):(\s*)any(\s*)=(\s*)LANG(\s*);\n
replace => \n

Remise de lang: any = LANG;
Si translate.component

#28 Updated by Florian AZIZIAN almost 2 years ago

Par quoi il faut remplacer ça ? this.lang['password' + rule.label]
et ça ? this.lang[key.value]
et ça ? {{lang[ressource.reason]}}
et ça ? {{lang[inteKey.key+'_doc']}}

Alex 9 h 37
{{ 'this.lang.password' + rule.label | translate }}

9 h 40
et ca {{lang[ressource.reason]}} par {{ 'this.lang.' + ressource.reason | translate }}

9 h 41
et {{lang[inteKey.key+'_doc']}} par {{ 'this.lang.' + inteKey.key + '_doc' | translate }}

#29 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee changed from Alex ORLUC to Florian AZIZIAN

#31 Updated by Florian AZIZIAN over 1 year ago

  • Status changed from En cours de dev (S) to Développé / Analysé (S)

#32 Updated by Emmanuel DILLARD over 1 year ago

  • Project changed from CURRENT SPRINT to Backlog

#34 Updated by Emmanuel DILLARD 11 months ago

  • Project changed from Backlog to Backlog Courrier
  • Target version changed from 20.10 Develop to 20.10 (Actif)

Also available in: Atom PDF