add translations

This commit is contained in:
amentis 2024-07-11 15:15:29 +03:00
parent cccce8de88
commit 0d127807f7
12 changed files with 82 additions and 5 deletions

View File

@ -538,19 +538,19 @@ export class PlanBlueprintEditorComponent extends BaseEditor<PlanBlueprintEditor
this.formService.touchAllFormFields(this.formGroup);
let errorMessages = [];
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()) {
errorMessages.push("Description should be set.");
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.DESCRIPTION-REQUIRED'));
}
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()) {
errorMessages.push("Access should be set.");
errorMessages.push(this.language.instant('PLAN-BLUEPRINT-EDITOR.FORM-VALIDATION-DISPLAY-DIALOG.ACCESS-REQUIRED'));
}
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) {
this.showValidationErrorsDialog(undefined, errorMessages);

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {

View File

@ -1627,6 +1627,13 @@
"LOCKED-DIALOG": {
"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."
},
"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": {