Externalise process comments UI strings

Refs #775
This commit is contained in:
Will Abson
2016-12-05 12:27:18 +00:00
parent f42c08fe10
commit d193b56b41
2 changed files with 19 additions and 6 deletions
@@ -2,7 +2,7 @@
[attr.data-badge]="comments?.length">{{ 'DETAILS.LABELS.COMMENTS' |translate }}</span>
<div id="addComment" (click)="showDialog()" class="icon material-icons">add</div>
<div class="mdl-tooltip" for="addComment">
Add a comment
{{ 'DETAILS.COMMENTS.BUTTON.ADD' |translate }}
</div>
<div class="menu-container" *ngIf="comments?.length > 0">
@@ -21,15 +21,15 @@
<dialog class="mdl-dialog" #dialog>
<h4 class="mdl-dialog__title">New comment</h4>
<h4 class="mdl-dialog__title">{{ 'DETAILS.COMMENTS.ADD_DIALOG.TITLE' |translate }}</h4>
<div class="mdl-dialog__content">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<textarea class="mdl-textfield__input" type="text" [(ngModel)]="message" rows="1" id="commentText"></textarea>
<label class="mdl-textfield__label" for="commentText">Message</label>
<label class="mdl-textfield__label" for="commentText">{{ 'DETAILS.COMMENTS.ADD_DIALOG.LABEL.MESSAGE' |translate }}</label>
</div>
</div>
<div class="mdl-dialog__actions">
<button type="button" (click)="add()" class="mdl-button">Add Comment</button>
<button type="button" (click)="cancel()" class="mdl-button close">Cancel</button>
<button type="button" (click)="add()" class="mdl-button">{{ 'DETAILS.COMMENTS.ADD_DIALOG.BUTTON.ADD' |translate }}</button>
<button type="button" (click)="cancel()" class="mdl-button close">{{ 'DETAILS.COMMENTS.ADD_DIALOG.BUTTON.CANCEL' |translate }}</button>
</div>
</dialog>
@@ -36,7 +36,20 @@
"TASK_CLOSE": "Close"
},
"COMMENTS": {
"NONE": "No comments."
"NONE": "No comments.",
"BUTTON": {
"ADD": "Add a comment"
},
"ADD_DIALOG": {
"TITLE": "New comment",
"LABEL": {
"MESSAGE": "Message"
},
"BUTTON": {
"ADD": "Add Comment",
"CANCEL": "Cancel"
}
}
},
"VARIABLES": {
"NONE": "No variables set.",