mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-3777] Add localization to About Page on Demo Shell (#4094)
This commit is contained in:
parent
7f106f7a56
commit
06e45bb29e
@ -279,5 +279,17 @@
|
|||||||
},
|
},
|
||||||
"TASK_LIST_CLOUD_DEMO": {
|
"TASK_LIST_CLOUD_DEMO": {
|
||||||
"CUSTOMIZE_FILTERS": "Customise your filter"
|
"CUSTOMIZE_FILTERS": "Customise your filter"
|
||||||
|
},
|
||||||
|
"ABOUT": {
|
||||||
|
"TITLE": "Plugins",
|
||||||
|
"TABLE_HEADERS": {
|
||||||
|
"ID": "ID",
|
||||||
|
"NAME": "Name",
|
||||||
|
"VERSION": "Version",
|
||||||
|
"VENDOR": "Vendor",
|
||||||
|
"LICENSE": "License",
|
||||||
|
"RUNTIME": "Runtime",
|
||||||
|
"DESCRIPTION": "Description"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,45 +1,45 @@
|
|||||||
<h3>Plugins</h3>
|
<h3>{{ 'ABOUT.TITLE' | translate }}</h3>
|
||||||
<div class="adf-extension-details-container">
|
<div class="adf-extension-details-container">
|
||||||
<mat-table [dataSource]="extensions$ | async">
|
<mat-table [dataSource]="extensions$ | async">
|
||||||
<!-- $id Column -->
|
<!-- $id Column -->
|
||||||
<ng-container matColumnDef="$id">
|
<ng-container matColumnDef="$id">
|
||||||
<mat-header-cell *matHeaderCellDef>ID</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.ID' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$id}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$id}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $name Column -->
|
<!-- $name Column -->
|
||||||
<ng-container matColumnDef="$name">
|
<ng-container matColumnDef="$name">
|
||||||
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.NAME' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$name}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$name}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $version Column -->
|
<!-- $version Column -->
|
||||||
<ng-container matColumnDef="$version">
|
<ng-container matColumnDef="$version">
|
||||||
<mat-header-cell *matHeaderCellDef>Version</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.VERSION' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$version}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$version}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $vendor Column -->
|
<!-- $vendor Column -->
|
||||||
<ng-container matColumnDef="$vendor">
|
<ng-container matColumnDef="$vendor">
|
||||||
<mat-header-cell *matHeaderCellDef>Vendor</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.VENDOR' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$vendor}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$vendor}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $license Column -->
|
<!-- $license Column -->
|
||||||
<ng-container matColumnDef="$license">
|
<ng-container matColumnDef="$license">
|
||||||
<mat-header-cell *matHeaderCellDef>License</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.LICENSE' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$license}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$license}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $runtime Column -->
|
<!-- $runtime Column -->
|
||||||
<ng-container matColumnDef="$runtime">
|
<ng-container matColumnDef="$runtime">
|
||||||
<mat-header-cell *matHeaderCellDef>Runtime</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.RUNTIME' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$runtime}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$runtime}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- $description Column -->
|
<!-- $description Column -->
|
||||||
<ng-container matColumnDef="$description">
|
<ng-container matColumnDef="$description">
|
||||||
<mat-header-cell *matHeaderCellDef>Description</mat-header-cell>
|
<mat-header-cell *matHeaderCellDef>{{ 'ABOUT.TABLE_HEADERS.DESCRIPTION' | translate }}</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let element">{{element.$description}}</mat-cell>
|
<mat-cell *matCellDef="let element">{{element.$description}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
<h3>Product Versions</h3>
|
<h3>{{ 'ABOUT.VERSIONS.TITLE' | translate }}</h3>
|
||||||
<div *ngIf="bpmVersion">
|
<div *ngIf="bpmVersion">
|
||||||
<h3>{{ 'ABOUT.VERSIONS.PROCESS_SERVICE' | translate }}</h3>
|
<h3>{{ 'ABOUT.VERSIONS.PROCESS_SERVICE' | translate }}</h3>
|
||||||
<label> {{ 'ABOUT.VERSIONS.LABELS.EDITION' | translate }} </label> {{ bpmVersion.edition }}
|
<label> {{ 'ABOUT.VERSIONS.LABELS.EDITION' | translate }} </label> {{ bpmVersion.edition }}
|
||||||
|
@ -56,30 +56,30 @@ export class AboutComponent implements OnInit {
|
|||||||
this.ecmVersion = ecmVers;
|
this.ecmVersion = ecmVers;
|
||||||
|
|
||||||
this.modules = new ObjectDataTableAdapter(this.ecmVersion.modules, [
|
this.modules = new ObjectDataTableAdapter(this.ecmVersion.modules, [
|
||||||
{ type: 'text', key: 'id', title: 'ID', sortable: true },
|
{ type: 'text', key: 'id', title: 'ABOUT.TABLE_HEADERS.MODULES.ID', sortable: true },
|
||||||
{ type: 'text', key: 'title', title: 'Title', sortable: true },
|
{ type: 'text', key: 'title', title: 'ABOUT.TABLE_HEADERS.MODULES.TITLE', sortable: true },
|
||||||
{ type: 'text', key: 'version', title: 'Description', sortable: true },
|
{ type: 'text', key: 'version', title: 'ABOUT.TABLE_HEADERS.MODULES.DESCRIPTION', sortable: true },
|
||||||
{ type: 'text', key: 'installDate', title: 'Install Date', sortable: true },
|
{ type: 'text', key: 'installDate', title: 'ABOUT.TABLE_HEADERS.MODULES.INSTALL_DATE', sortable: true },
|
||||||
{ type: 'text', key: 'installState', title: 'Install State', sortable: true },
|
{ type: 'text', key: 'installState', title: 'ABOUT.TABLE_HEADERS.MODULES.INSTALL_STATE', sortable: true },
|
||||||
{ type: 'text', key: 'versionMin', title: 'Version Minor', sortable: true },
|
{ type: 'text', key: 'versionMin', title: 'ABOUT.TABLE_HEADERS.MODULES.VERSION_MIN', sortable: true },
|
||||||
{ type: 'text', key: 'versionMax', title: 'Version Max', sortable: true }
|
{ type: 'text', key: 'versionMax', title: 'ABOUT.TABLE_HEADERS.MODULES.VERSION_MAX', sortable: true }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
this.status = new ObjectDataTableAdapter([this.ecmVersion.status], [
|
this.status = new ObjectDataTableAdapter([this.ecmVersion.status], [
|
||||||
{ type: 'text', key: 'isReadOnly', title: 'ReadOnly', sortable: true },
|
{ type: 'text', key: 'isReadOnly', title: 'ABOUT.TABLE_HEADERS.STATUS.READ_ONLY', sortable: true },
|
||||||
{ type: 'text', key: 'isAuditEnabled', title: 'Is Audit Enable', sortable: true },
|
{ type: 'text', key: 'isAuditEnabled', title: 'ABOUT.TABLE_HEADERS.STATUS.AUDIT_ENABLED', sortable: true },
|
||||||
{ type: 'text', key: 'isQuickShareEnabled', title: 'Is quick shared enable', sortable: true },
|
{ type: 'text', key: 'isQuickShareEnabled', title: 'ABOUT.TABLE_HEADERS.STATUS.QUICK_SHARE_ENABLED', sortable: true },
|
||||||
{ type: 'text', key: 'isThumbnailGenerationEnabled', title: 'Thumbnail Generation', sortable: true }
|
{ type: 'text', key: 'isThumbnailGenerationEnabled', title: 'ABOUT.TABLE_HEADERS.STATUS.THUMBNAIL_ENABLED', sortable: true }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
this.license = new ObjectDataTableAdapter([this.ecmVersion.license], [
|
this.license = new ObjectDataTableAdapter([this.ecmVersion.license], [
|
||||||
{ type: 'text', key: 'issuedAt', title: 'Issued At', sortable: true },
|
{ type: 'text', key: 'issuedAt', title: 'ABOUT.TABLE_HEADERS.LICENSE.ISSUES_AT', sortable: true },
|
||||||
{ type: 'text', key: 'expiresAt', title: 'Expires At', sortable: true },
|
{ type: 'text', key: 'expiresAt', title: 'ABOUT.TABLE_HEADERS.LICENSE.EXPIRES_AT', sortable: true },
|
||||||
{ type: 'text', key: 'remainingDays', title: 'Remaining Days', sortable: true },
|
{ type: 'text', key: 'remainingDays', title: 'ABOUT.TABLE_HEADERS.LICENSE.REMAINING_DAYS', sortable: true },
|
||||||
{ type: 'text', key: 'holder', title: 'Holder', sortable: true },
|
{ type: 'text', key: 'holder', title: 'ABOUT.TABLE_HEADERS.LICENSE.HOLDER', sortable: true },
|
||||||
{ type: 'text', key: 'mode', title: 'Mode', sortable: true },
|
{ type: 'text', key: 'mode', title: 'ABOUT.TABLE_HEADERS.LICENSE.MODE', sortable: true },
|
||||||
{ type: 'text', key: 'isClusterEnabled', title: 'Is Cluster Enabled', sortable: true },
|
{ type: 'text', key: 'isClusterEnabled', title: 'ABOUT.TABLE_HEADERS.LICENSE.CLUSTER_ENABLED', sortable: true },
|
||||||
{ type: 'text', key: 'isCryptodocEnabled', title: 'Is Cryptodoc Enable', sortable: true }
|
{ type: 'text', key: 'isCryptodocEnabled', title: 'ABOUT.TABLE_HEADERS.LICENSE.CRYPTODOC_ENABLED', sortable: true }
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -336,6 +336,7 @@
|
|||||||
"PROCESS_SERVICE_HOST": "Alfresco Process Services URL: {{ value }}"
|
"PROCESS_SERVICE_HOST": "Alfresco Process Services URL: {{ value }}"
|
||||||
},
|
},
|
||||||
"VERSIONS": {
|
"VERSIONS": {
|
||||||
|
"TITLE": "Product Versions",
|
||||||
"CONTENT_SERVICE": "ECM",
|
"CONTENT_SERVICE": "ECM",
|
||||||
"PROCESS_SERVICE": "BPM",
|
"PROCESS_SERVICE": "BPM",
|
||||||
"LABELS": {
|
"LABELS": {
|
||||||
@ -353,6 +354,33 @@
|
|||||||
"PACKAGES": {
|
"PACKAGES": {
|
||||||
"TITLE": "Packages",
|
"TITLE": "Packages",
|
||||||
"DESCRIPTION": "Current project is using the following ADF libraries:"
|
"DESCRIPTION": "Current project is using the following ADF libraries:"
|
||||||
|
},
|
||||||
|
"TABLE_HEADERS": {
|
||||||
|
"MODULES": {
|
||||||
|
"ID": "ID",
|
||||||
|
"TITLE": "Title",
|
||||||
|
"DESCRIPTION": "Description",
|
||||||
|
"INSTALL_DATE": "Install Date",
|
||||||
|
"INSTALL_STATE": "Install State",
|
||||||
|
"VERSION_MIN": "Version Minor",
|
||||||
|
"VERSION_MAX": "Version Max"
|
||||||
|
},
|
||||||
|
"STATUS": {
|
||||||
|
"READ_ONLY": "ReadOnly",
|
||||||
|
"AUDIT_ENABLED": "Is Audit Enabled",
|
||||||
|
"QUICK_SHARE_ENABLED": "Is Quick Shared Enabled",
|
||||||
|
"THUMBNAIL_ENABLED": "Thumbnail Generation"
|
||||||
|
},
|
||||||
|
"LICENSE": {
|
||||||
|
"ISSUES_AT": "Issued At",
|
||||||
|
"EXPIRES_AT": "Expires At",
|
||||||
|
"REMAINING_DAYS": "Remaining Days",
|
||||||
|
"HOLDER": "Holder",
|
||||||
|
"MODE": "Mode",
|
||||||
|
"CLUSTER_ENABLED": "Is Cluster Enabled",
|
||||||
|
"CRYPTODOC_ENABLED": "Is Cryptodoc Enabled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user