Adds: Translate

This commit is contained in:
apapachristou 2019-05-28 16:37:39 +03:00
parent 9580f89eea
commit 3a83ab4c1c
14 changed files with 44 additions and 23 deletions

View File

@ -1,8 +1,8 @@
<div class="card card-draft">
<div class="card-header card-header-plain">
<div class="card-desc">
<h4 class="card-title">DRAFTS</h4>
<p class="card-category">Draft Registrations</p>
<h4 class="card-title">{{ 'TYPES.DATASET-STATUS.DRAFT' | translate }}</h4>
<p class="card-category">{{ 'TYPES.DATASET-STATUS.DRAFT-DESC' | translate }}</p>
</div>
<div class="view-all" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
</div>
@ -20,7 +20,7 @@
<i class="material-icons more-icon">more_horiz</i>
</div>
<div class="draft-title">
Dataset: {{ dataset.label }} For Dmp: {{ dataset.dmp }} For Project: {{ dataset.project }}
{{'GENERAL.NAMES.DATASET' | translate}}: {{ dataset.label }} {{'DRAFTS.FOR-DMP' | translate}} {{ dataset.dmp }} {{'DRAFTS.FOR-PROJECT' | translate}} {{ dataset.project }}
</div>
<div class="draft-subtitle">{{ dataset.created | date: "shortDate"}}</div>
<div class="draft-desc">{{ dataset.description }}</div>

View File

@ -13,7 +13,7 @@
<div class="col-12 title">
<mat-icon *ngIf="isDraft" class="draft-bookmark">bookmark</mat-icon>
<mat-icon *ngIf="!isDraft" class="finalized-bookmark">bookmark</mat-icon>
<h4 *ngIf="isDraft"><span>DRAFT:</span> {{ dataset.label }}</h4>
<h4 *ngIf="isDraft"><span>{{ 'TYPES.DATASET-STATUS.DRAFT' | translate }}:</span> {{ dataset.label }}</h4>
<h4 *ngIf="!isDraft">{{ dataset.label }}</h4>
</div>
</div>
@ -36,7 +36,7 @@
<div class="pt-1">
<div matTooltip="{{ dataset.profile }}" class="chip ml-2 mr-2">{{ dataset.profile }}</div>
</div>
<p>Published {{ dataset.created | date: "shortDate"}}</p>
<p>{{'DATASET-LISTING.COLUMNS.PUBLISHED' | translate}} {{ dataset.created | date: "shortDate"}}</p>
</div>
</div>
<!-- <div class="info">

View File

@ -1,7 +1,7 @@
<div class="container-fluid">
<div class="row d-flex">
<div class="col-12 add-dataset" (click)="addDataset(dmp.id)">
<mat-icon>add</mat-icon><span>Add Dataset to Dmp</span>
<mat-icon>add</mat-icon><span>{{ 'DMP-LISTING.ACTIONS.ADD-DATASET' | translate }}</span>
</div>
</div>
<div class="row pt-2 pb-4" *ngIf="dmp.datasets">
@ -9,7 +9,7 @@
<div class="dataset-card" (click)="datasetClicked(dataset.id)">
<mat-icon *ngIf="isDraft(dataset)" class="draft-bookmark">bookmark</mat-icon>
<mat-icon *ngIf="!isDraft(dataset)" class="finalized-bookmark">bookmark</mat-icon>
<h4 *ngIf="isDraft(dataset)"><span>DRAFT:</span> {{ dataset.label }}</h4>
<h4 *ngIf="isDraft(dataset)"><span>{{ 'TYPES.DATASET-STATUS.DRAFT' | translate }}:</span> {{ dataset.label }}</h4>
<h4 *ngIf="!isDraft(dataset)">{{ dataset.label }}</h4>
<div matTooltip="{{ dataset.profile }}" class="chip">
{{ dataset.profile }}</div>

View File

@ -69,3 +69,9 @@
cursor: pointer;
color: #0070c0;
}
h4 span {
color: #619ce3;
font-weight: 600;
text-transform: uppercase;
}

View File

@ -5,7 +5,8 @@
<div *ngIf="datasetsFinalized.length > 0">
<h4>{{'DMP-FINALISE-DIALOG.ALREADY-FINALISED-DATASETS' | translate}}</h4>
<mat-list>
<mat-list-item *ngFor="let dataset of datasetsFinalized; let len = length">
<!-- <mat-list-item *ngFor="let dataset of datasetsFinalized; let len = length"> -->
<mat-list-item *ngFor="let dataset of datasetsFinalized">
<div>{{ dataset.label }}</div>
</mat-list-item>
</mat-list>
@ -13,13 +14,14 @@
<div *ngIf="datasetsDraft.length > 0">
<h4>{{'DMP-FINALISE-DIALOG.FINALISE-TITLE' | translate}}</h4>
<mat-selection-list #datasetsDraftSelectionList [formControl]="this.formGroup.get('datasets')">
<div class="styleBorder" *ngFor="let dataset of datasetsDraft; let len = length">
<!-- <div class="styleBorder" *ngFor="let dataset of datasetsDraft; let len = length"> -->
<div class="styleBorder" *ngFor="let dataset of datasetsDraft">
<mat-list-option [value]='dataset'>
{{ dataset.label }}
</mat-list-option>
</div>
</mat-selection-list>
</div>
</div>minLengthArray
<mat-error *ngIf="formGroup.get('datasets').errors?.minLengthArray">{{'DMP-FINALISE-DIALOG.VALIDATION.AT-LEAST-ONE-DATASET-FINALISED'
| translate}}</mat-error>
</div>

View File

@ -91,7 +91,7 @@
</mat-form-field>
<!-- <app-dynamic-dmp-field-resolver *ngIf="dmp.definition" class="col-md-12" [formGroup]="formGroup" [dmpProfileDefinition]=dmp.definition></app-dynamic-dmp-field-resolver> -->
<div class="col-auto mb-2">
Versioning is automated.
{{ 'DATASET-EDITOR.VERSION-DIALOG.ABOUT' | translate }}
</div>
<!-- Versioning Actions -->
<!-- <div class="col-auto d-flex align-content-center mb-1" style="cursor: pointer;">

View File

@ -10,9 +10,9 @@
<div class="table-container">
<table>
<tr>
<th>NAME</th>
<th>EMAIL</th>
<th>PERMISSIONS</th>
<th>{{'USERS.LISTING.NAME' | translate}}</th>
<th>{{'USERS.LISTING.EMAIL' | translate}}</th>
<th>{{'USERS.LISTING.PERMISSIONS' | translate}}</th>
</tr>
<tr *ngFor="let user of people">
<td>{{user.name}}</td>

View File

@ -41,4 +41,5 @@ th {
background: linear-gradient(180deg, #f6f6f6, #fff);
padding: 8px;
text-align: left;
text-transform: uppercase;
}

View File

@ -31,7 +31,7 @@
<div class="col-12 about-item">
<mat-icon *ngIf="isDraft" class="draft-icon">lock</mat-icon>
<mat-icon *ngIf="!isDraft">lock</mat-icon>
<h4 class="title" *ngIf="isDraft"><span>DRAFT:</span>{{dmp.label}}</h4>
<h4 class="title" *ngIf="isDraft"><span>{{ 'TYPES.DMP.DRAFT' | translate }}:</span>{{dmp.label}}</h4>
<h4 class="title" *ngIf="!isDraft">{{dmp.label}}</h4>
</div>
</div>
@ -56,7 +56,7 @@
<div *ngFor="let profile of dmp.associatedProfiles" class="pt-1">
<div matTooltip="{{profile.label}}" class="chip ml-2 mr-2">{{profile.label}}</div>
</div>
<p>Published {{dmp.creationTime | date: "shortDate"}}</p>
<p>{{'DMP-PROFILE-LISTING.COLUMNS.PUBLISHED' | translate}} {{dmp.creationTime | date: "shortDate"}}</p>
</div>
</div>
<!-- <div class="row d-flex align-items-center my-1">

View File

@ -39,6 +39,7 @@
.about-item .title {
margin: 2px 10px;
text-transform: uppercase;
}
.about-item p {

View File

@ -65,7 +65,7 @@
<div class="dataset-card" (click)="datasetClicked(dataset.id)">
<mat-icon *ngIf="isDraft(dataset)" class="draft-bookmark">bookmark</mat-icon>
<mat-icon *ngIf="!isDraft(dataset)" class="finalized-bookmark">bookmark</mat-icon>
<h4 *ngIf="isDraft(dataset)"><span>DRAFT:</span> {{ dataset.label }}</h4>
<h4 *ngIf="isDraft(dataset)"><span>{{ 'TYPES.DMP.DRAFT' | translate }}:</span> {{ dataset.label }}</h4>
<h4 *ngIf="!isDraft(dataset)">{{ dataset.label }}</h4>
<div matTooltip="{{ dataset.datasetTemplate.label }}" class="chip">
{{ dataset.datasetTemplate.label }}</div>

View File

@ -134,6 +134,7 @@
h4 span {
color: #619ce3;
font-weight: 600;
text-transform: uppercase;
}
.chip {

View File

@ -13,7 +13,7 @@
<div class="col-12 title">
<mat-icon *ngIf="isDraft" class="draft-bookmark">bookmark</mat-icon>
<mat-icon *ngIf="!isDraft" class="finalized-bookmark">bookmark</mat-icon>
<h4 *ngIf="isDraft"><span>DRAFT:</span> {{ dataset.label }}</h4>
<h4 *ngIf="isDraft"><span>{{ 'TYPES.DATASET-STATUS.DRAFT' | translate }}:</span> {{ dataset.label }}</h4>
<h4 *ngIf="!isDraft">{{ dataset.label }}</h4>
</div>
</div>
@ -34,7 +34,7 @@
<div class="pt-1">
<div matTooltip="{{ dataset.profile }}" class="chip ml-2 mr-2">{{ dataset.profile }}</div>
</div>
<p>Published {{dataset.created | date: "shortDate"}}</p>
<p>{{'DATASET-LISTING.COLUMNS.PUBLISHED' | translate}} {{dataset.created | date: "shortDate"}}</p>
</div>
</div>
<!-- <div class="info">

View File

@ -333,6 +333,7 @@
"STATUS": "Status",
"DESCRIPTION": "Description",
"CREATED": "Created",
"PUBLISHED": "Published",
"ACTIONS": "Actions",
"DMP": "Dmp",
"PROFILE": "Profile",
@ -472,7 +473,8 @@
"COLUMNS": {
"NAME": "Name",
"STATUS": "Status",
"CREATED": "Created"
"CREATED": "Created",
"PUBLISHED": "Published"
},
"UPLOAD": {
"UPLOAD-XML": "Import",
@ -569,6 +571,7 @@
"DELETE": "Delete"
},
"VERSION-DIALOG": {
"ABOUT": "Versioning is automated.",
"QUESTION": "It seems your Dataset Profile is outdated. Do you want to update it to the latest version?"
}
},
@ -598,7 +601,9 @@
"EMAIL": "Email",
"LAST-LOGGED-IN": "Last Logged In",
"LABEL": "Label",
"ROLES": "Roles"
"ROLES": "Roles",
"NAME": "Name",
"PERMISSIONS": "Permissions"
}
},
"TYPES": {
@ -620,7 +625,8 @@
"DATASET-STATUS": {
"DRAFT": "Draft",
"FINALISED": "Finalized",
"ANY": "Any dmp status"
"ANY": "Any dmp status",
"DRAFT-DESC": "Draft Registrations"
},
"DATASET-ROLE": {
"OWNER": "Owner",
@ -810,6 +816,10 @@
"AT-LEAST-ONE-DATASET-FINALISED": "You need to have at least one Dataset Finalized"
}
},
"DRAFTS": {
"FOR-DMP": "For Dmp:",
"FOR-PROJECT": "For Project:"
},
"QUICKWIZARD": {
"CREATE-ADD": {
"CREATE": {