Skip to content

Commit

Permalink
Added missing translations for the user admin page [comixed#307]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Jun 6, 2020
1 parent 83c2e7d commit 4670bd6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Expand Up @@ -4,7 +4,7 @@
pButton
type='button'
[style]='{ float: "right" }'
label='{{"admin.users.button.new-user"|translate}}'
label='{{"button.new-user"|translate}}'
icon='fa fa-fw fa-user-plus'
(click)='setNewUser()'></button>
</div>
Expand All @@ -15,7 +15,7 @@

<div *ngIf='current'
id='user-editor-container'>
<h2>{{current?.email || "admin.user-editor.label.new-user"|translate}}</h2>
<h2>{{current?.email || "user-details.title.new-user"|translate}}</h2>
<app-user-details-editor *ngIf='current'
[user]='current'
[isAdmin]='isAdmin'
Expand All @@ -34,10 +34,10 @@ <h2>{{current?.email || "admin.user-editor.label.new-user"|translate}}</h2>
<ng-template pTemplate='header'>
<tr>
<th id='user-list-action'></th>
<th id='user-list-email'>{{'admin.users.label.email'|translate}}</th>
<th id='user-list-roles'>{{'admin.users.label.roles'|translate}}</th>
<th id='user-list-member-since'>{{'admin.users.label.member-since'|translate}}</th>
<th id='user-list-last-logged-in'>{{'admin.users.label.last-logged-on'|translate}}</th>
<th id='user-list-email'>{{'user-details.label.email-address'|translate}}</th>
<th id='user-list-roles'>{{'user-details.label.roles'|translate}}</th>
<th id='user-list-member-since'>{{'user-details.label.member-since'|translate}}</th>
<th id='user-list-last-logged-in'>{{'user-details.label.last-logged-on'|translate}}</th>
</tr>
</ng-template>
<ng-template pTemplate='body'
Expand Down
8 changes: 6 additions & 2 deletions comixed-frontend/src/assets/i18n/app-en.json
Expand Up @@ -138,11 +138,14 @@
}
},
"user-details": {
"title": {
"new-user": "Create New User"
},
"label": {
"email-address": "Email Address",
"roles": "Roles",
"member-since": "Member Since",
"last-logged-in": "Last Logged In"
"last-logged-on": "Last Logged On"
}
},
"account-page": {
Expand Down Expand Up @@ -342,7 +345,8 @@
"show-comics": "Show Comics",
"start-scraping": "Start Scraping...",
"selected": "Selected",
"not-selected": "Not Selected"
"not-selected": "Not Selected",
"new-user": "New User"
},
"user-effects": {
"login": {
Expand Down

0 comments on commit 4670bd6

Please sign in to comment.