add translations
This commit is contained in:
parent
cccce8de88
commit
0d127807f7
|
@ -538,19 +538,19 @@ export class PlanBlueprintEditorComponent extends BaseEditor<PlanBlueprintEditor
|
||||||
this.formService.touchAllFormFields(this.formGroup);
|
this.formService.touchAllFormFields(this.formGroup);
|
||||||
let errorMessages = [];
|
let errorMessages = [];
|
||||||
if (!this.hasTitle()) {
|
if (!this.hasTitle()) {
|
||||||
errorMessages.push("Title should be set.");
|
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.TITLE-REQUIRED'));
|
||||||
}
|
}
|
||||||
if (!this.hasDescription()) {
|
if (!this.hasDescription()) {
|
||||||
errorMessages.push("Description should be set.");
|
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.DESCRIPTION-REQUIRED'));
|
||||||
}
|
}
|
||||||
if (!this.hasLanguage()) {
|
if (!this.hasLanguage()) {
|
||||||
errorMessages.push("Language should be set.");
|
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.LANGUAGE-REQUIRED'));
|
||||||
}
|
}
|
||||||
if (!this.hasAccess()) {
|
if (!this.hasAccess()) {
|
||||||
errorMessages.push("Access should be set.");
|
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.ACCESS-REQUIRED'));
|
||||||
}
|
}
|
||||||
if (!this.hasDescriptionTemplates()) {
|
if (!this.hasDescriptionTemplates()) {
|
||||||
errorMessages.push("At least one section should have description templates.");
|
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.DESCRIPTION-TEMPLATES-REQUIRED'));
|
||||||
}
|
}
|
||||||
if (errorMessages.length > 0) {
|
if (errorMessages.length > 0) {
|
||||||
this.showValidationErrorsDialog(undefined, errorMessages);
|
this.showValidationErrorsDialog(undefined, errorMessages);
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
|
@ -1627,6 +1627,13 @@
|
||||||
"LOCKED-DIALOG": {
|
"LOCKED-DIALOG": {
|
||||||
"TITLE": "Plan Blueprint is locked",
|
"TITLE": "Plan Blueprint is locked",
|
||||||
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
"MESSAGE": "Somebody else is modifying the Plan Blueprint at this moment. You may view the Plan Blueprint but you cannot make any changes. If you would like to modify it please come back later."
|
||||||
|
},
|
||||||
|
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||||
|
"TITLE-REQUIRED": "Title should be set.",
|
||||||
|
"DESCRIPTION-REQUIRED": "Description should be set.",
|
||||||
|
"LANGUAGE-REQUIRED": "Language should be set.",
|
||||||
|
"ACCESS-REQUIRED": "Access should be set.",
|
||||||
|
"DESCRIPTION-TEMPLATES-REQUIRED": "At least one section should have description templates."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PLAN-EDITOR": {
|
"PLAN-EDITOR": {
|
||||||
|
|
Loading…
Reference in New Issue