diff --git a/src/app/components/shared/footer/footer.component.html b/src/app/components/shared/footer/footer.component.html index fa56e27e9e9133d5076a177edb4cf60fc0d99bae..f73fdb3f2c9ae1c2773ea58c1a97aaf67424dd63 100644 --- a/src/app/components/shared/footer/footer.component.html +++ b/src/app/components/shared/footer/footer.component.html @@ -14,7 +14,7 @@ </button> <span class="fill-remaining-space"></span> - <button mat-button [matMenuTriggerFor]="themeMenu" aria-labelledby="style-label"> + <button mat-button aria-labelledby="style-label" [matMenuTriggerFor]="themeMenu"> <mat-icon>palette</mat-icon> <span *ngIf="deviceType === 'desktop'"> {{'footer.style' | translate}} @@ -22,7 +22,7 @@ </button> <span class="fill-remaining-space"></span> - <button mat-button [matMenuTriggerFor]="langMenu" aria-labelledby="languange-label"> + <button mat-button aria-labelledby="language-label" [matMenuTriggerFor]="langMenu"> <mat-icon>language</mat-icon> <span *ngIf="deviceType === 'desktop'"> {{'footer.language' | translate}} @@ -33,14 +33,14 @@ <button mat-button routerLink="/data-protection" aria-labelledby="data-protection-label"> <mat-icon>security</mat-icon> <span *ngIf="deviceType === 'desktop'"> - {{ 'footer.dsgvo' | translate}} + {{'footer.dsgvo' | translate}} </span> </button> <span class="fill-remaining-space"></span> <button mat-button routerLink="/imprint" aria-labelledby="imprint-label"> <mat-icon>info</mat-icon> <span *ngIf="deviceType === 'desktop'"> - {{ 'footer.imprint' | translate}} + {{'footer.imprint' | translate}} </span> </button> @@ -84,7 +84,7 @@ <div id="help-label">{{'footer.accessibility-help' | translate}}</div> <div id="demo-label">{{'footer.accessibility-demo' | translate}}</div> <div id="style-label">{{'footer.accessibility-style' | translate}}</div> - <div id="languange-label">{{'footer.accessibility-language' | translate}}</div> + <div id="language-label">{{'footer.accessibility-language' | translate}}</div> <div id="data-protection-label">{{'footer.accessibility-data-protection' | translate}}</div> <div id="imprint-label">{{'footer.accessibility-imprint' | translate}}</div> </div> diff --git a/src/app/components/shared/footer/footer.component.ts b/src/app/components/shared/footer/footer.component.ts index 1caaee707be9320a62f2e2fa1c6deda48c3f4b96..e086758fca25888b6f4de5d2d2a67288219cb98c 100644 --- a/src/app/components/shared/footer/footer.component.ts +++ b/src/app/components/shared/footer/footer.component.ts @@ -18,11 +18,6 @@ import { CookiesComponent } from '../../home/_dialogs/cookies/cookies.component' }) export class FooterComponent implements OnInit { - blogUrl = 'https://arsnova.thm.de/blog/'; - dsgvoUrl = 'https://arsnova.thm.de/blog/datenschutzerklaerung/'; - imprUrl = 'https://arsnova.thm.de/blog/impressum/'; - demoId = '78844652'; - room: Room; user: User; @@ -54,19 +49,6 @@ export class FooterComponent implements OnInit { } - navToBlog() { - this.translateService.get('footer.will-open').subscribe(message => { - this.notificationService.show('Blog' + message, this.open, { - duration: 4000 - }); - }); - this.notificationService.snackRef.afterDismissed().subscribe(info => { - if (info.dismissedByAction === true) { - window.open(this.blogUrl, '_blank'); - } - }); - } - showDemo() { const dialogRef = this.dialog.open(DemoVideoComponent, { position: { diff --git a/src/assets/i18n/home/de.json b/src/assets/i18n/home/de.json index 4dc02261b7bdf633d28001f3beb8f06006e89d24..8681a5bbfdf1ec25715bc8cbf17c3672a1ffbe64 100644 --- a/src/assets/i18n/home/de.json +++ b/src/assets/i18n/home/de.json @@ -91,22 +91,28 @@ }, "footer": { "demo": "Demo", + "accessibility-demo": "Öffnet eine Demoversion von frag.jetzt", "dsgvo": "Datenschutz", + "accessibility-data-protection": "Öffnet ein Dokument zur Datenschtzverordnung in einem neuen Dialogfenster", "imprint": "Impressum", + "accessibility-imprint": "Öffnet das Impressum in einem neuen Dialogfenster", "will-open": " wird in einem neuen Fenster geöffnet...", "open": "Öffnen", "help": "Hilfe", + "accessibility-help": "Öffnet einen Hilfetext in einem neuen Dialogfenster", "dark": "Dunkler Hintergrund", "bright": "Heller Hintergrund", "beamer": "Für den Beamer optimiert (in Arbeit)", "wai": "Barrierefrei nach WCAG 2.1 (in Arbeit)", "style": "Stil", + "accessibility-style": "Öffnet eine Auswahl an verschiedenen Farbschemata", "language": "Sprache", + "accessibility-language": "Sprachauswahl kann verändert werden", "english": "Englisch", "german": "Deutsch" }, "cookies": { "accept": "Bestätigen", - "accessibility-accept": "lalla" + "accessibility-accept": "Bestätigen um cookies zu akzeptieren." } } diff --git a/src/assets/i18n/home/en.json b/src/assets/i18n/home/en.json index d8a7088d0e5fe921e34b99805c2233791fc454d8..efd5b9c9b06cc6f397e36bfe5d263e4cbf506228 100644 --- a/src/assets/i18n/home/en.json +++ b/src/assets/i18n/home/en.json @@ -91,22 +91,28 @@ }, "footer": { "demo": "Demo", + "accessibility-demo": "Shows demo version of frag.jetzt", "dsgvo": "Data Protection", + "accessibility-data-protection": "Opens data protection document in a new dialog", "imprint": "Imprint", + "accessibility-imprint": "Opens the imprint in a new dialog", "will-open": " will be opened in a new tab...", "open": "Open", "help": "Help", + "accessibility-help": "Opens a help text in a new dialog", "dark": "Dark background", "bright": "Bright background", "beamer": "Optimized for the projector (work in progress)", "wai": "Accessible according to WCAG 2.1 (work in progress)", "style": "Style", + "accessibility-style": "Opens a selection of different color schemes", "language": "Language", + "accessibility-language": "Press button to change language", "english": "English", "german": "German" }, "cookies": { "accept": "Accept", - "accept-label": "lololo" + "accessibilty-accept": "Push button to accept cookies" } } diff --git a/src/assets/i18n/data-protection/data-protection-de.html b/src/assets/i18n/shared/data-protection/data-protection-de.html similarity index 100% rename from src/assets/i18n/data-protection/data-protection-de.html rename to src/assets/i18n/shared/data-protection/data-protection-de.html diff --git a/src/assets/i18n/data-protection/data-protection-en.html b/src/assets/i18n/shared/data-protection/data-protection-en.html similarity index 100% rename from src/assets/i18n/data-protection/data-protection-en.html rename to src/assets/i18n/shared/data-protection/data-protection-en.html