From 643921ae30f44b973fe203b983e2190cc44d53d1 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 18 Oct 2017 14:21:56 +0100 Subject: [PATCH] [ADF-829] i18n support for Viewer (#2489) * i18n support for viewer * remove commented out info drawer placeholder * remove demo buttons --- demo-shell-ng2/app/app.component.ts | 3 +- .../src/components/pdfViewer.component.html | 14 ++++----- .../unknown-format.component.html | 2 +- .../src/components/viewer.component.html | 29 ++++++------------- .../ng2-alfresco-viewer/src/i18n/en.json | 25 ++++++++++++++-- 5 files changed, 42 insertions(+), 31 deletions(-) diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index d25c345123..433e567b77 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -17,7 +17,7 @@ import { Component, ViewEncapsulation } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; -import { AlfrescoSettingsService, PageTitleService, StorageService } from 'ng2-alfresco-core'; +import { AlfrescoSettingsService, PageTitleService, StorageService, TranslationService } from 'ng2-alfresco-core'; @Component({ selector: 'adf-app', @@ -30,6 +30,7 @@ export class AppComponent { constructor(private settingsService: AlfrescoSettingsService, private storage: StorageService, + private translateService: TranslationService, pageTitleService: PageTitleService, route: ActivatedRoute, router: Router) { diff --git a/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html b/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html index 292b93a883..a7bd395f93 100644 --- a/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html +++ b/ng2-components/ng2-alfresco-viewer/src/components/pdfViewer.component.html @@ -20,7 +20,7 @@
- Showing + {{ 'ADF_VIEWER.PAGE_LABEL.SHOWING' | translate }} - of {{ totalPages }} + {{ 'ADF_VIEWER.PAGE_LABEL.OF' | translate }} {{ totalPages }}
@@ -22,7 +22,7 @@ @@ -43,20 +43,20 @@ - - - - @@ -78,7 +78,7 @@ -