From 8dffbaf503aef4a3f35b4ef2f31a69ab419bec2a Mon Sep 17 00:00:00 2001
From: mihai sirghe <32762007+smihai78@users.noreply.github.com>
Date: Tue, 24 Oct 2017 22:10:26 +0300
Subject: [PATCH] [ADF-1759] updated the process attachments header language
keys (using the existing ones) (#2535)
* Created language keys for the header labels in proccess atachment list component
Updated the component
* [ADF-1759] updated the process attachments header language keys (using the existing ones)
* added menu actions key for process attachment language support
* updated the view download and remove action (hardcoded)labels with the appropriate translation keys
---
.../src/components/process-attachment-list.component.html | 4 ++--
.../src/components/process-attachment-list.component.ts | 6 +++---
ng2-components/ng2-activiti-processlist/src/i18n/en.json | 7 +++++++
3 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html
index 5e6cd3b598..d2aaf865d4 100644
--- a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html
+++ b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.html
@@ -14,8 +14,8 @@
-
-
+
+
diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.ts b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.ts
index b88d273c77..7a17ec8040 100644
--- a/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.ts
+++ b/ng2-components/ng2-activiti-processlist/src/components/process-attachment-list.component.ts
@@ -128,17 +128,17 @@ export class ProcessAttachmentListComponent implements OnChanges {
onShowRowActionsMenu(event: any) {
let viewAction = {
- title: 'View',
+ title: 'ADF_PROCESS_LIST.MENU_ACTIONS.VIEW_CONTENT',
name: 'view'
};
let removeAction = {
- title: 'Remove',
+ title: 'ADF_PROCESS_LIST.MENU_ACTIONS.REMOVE_CONTENT',
name: 'remove'
};
let downloadAction = {
- title: 'Download',
+ title: 'ADF_PROCESS_LIST.MENU_ACTIONS.DOWNLOAD_CONTENT',
name: 'download'
};
diff --git a/ng2-components/ng2-activiti-processlist/src/i18n/en.json b/ng2-components/ng2-activiti-processlist/src/i18n/en.json
index 46a7c4b1bc..ed9fad0390 100644
--- a/ng2-components/ng2-activiti-processlist/src/i18n/en.json
+++ b/ng2-components/ng2-activiti-processlist/src/i18n/en.json
@@ -25,6 +25,13 @@
"DESCRIPTION_DEFAULT": "No description",
"ID": "Id"
},
+ "MENU_ACTIONS": {
+ "VIEW_CONTENT": "View",
+ "REMOVE_CONTENT": "Remove",
+ "DOWNLOAD_CONTENT": "Download",
+ "DOWNLOAD_AUDIT": "Download audit",
+ "VIEW_TASK": "View Task"
+ },
"DETAILS": {
"LABELS": {
"STARTED_BY": "Started by",