Updated translations

This commit is contained in:
Emanuel Schütze 2019-05-07 23:14:10 +02:00
parent f22596a98b
commit bbe0b16701
14 changed files with 134 additions and 21 deletions

View File

@ -194,8 +194,8 @@ export class AgendaSortComponent extends BaseViewComponent implements CanCompone
*/ */
public async canDeactivate(): Promise<boolean> { public async canDeactivate(): Promise<boolean> {
if (this.hasChanged) { if (this.hasChanged) {
const title = this.translate.instant('You made changes.'); const title = this.translate.instant('Do you really want to exit this page?');
const content = this.translate.instant('Do you really want to exit?'); const content = this.translate.instant('You made changes.');
return await this.promptService.open(title, content); return await this.promptService.open(title, content);
} }
return true; return true;

View File

@ -221,7 +221,7 @@
/> />
</mat-form-field> </mat-form-field>
</div> </div>
<h4 translate>Description:</h4> <h4>{{ 'Description' | translate }}:</h4>
<!-- description: HTML Editor --> <!-- description: HTML Editor -->
<editor <editor

View File

@ -32,7 +32,7 @@
[value]="getSumValue(sumValue)" [value]="getSumValue(sumValue)"
(change)="setSumValue(sumValue, $event.target.value)" (change)="setSumValue(sumValue, $event.target.value)"
/> />
<mat-label>{{ pollService.getLabel(sumValue) }}</mat-label> <mat-label>{{ pollService.getLabel(sumValue) | translate }}</mat-label>
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>

View File

@ -201,7 +201,7 @@ export class AssignmentPollComponent extends BaseViewComponent implements OnInit
// TODO deep copy of this.poll (JSON parse is ugly workaround) or sending just copy of the options // TODO deep copy of this.poll (JSON parse is ugly workaround) or sending just copy of the options
data: this.poll.copy(), data: this.poll.copy(),
maxHeight: '90vh', maxHeight: '90vh',
minWidth: '300px', minWidth: '450px',
maxWidth: '80vw', maxWidth: '80vw',
disableClose: true disableClose: true
}); });

View File

@ -31,7 +31,7 @@ export class AssignmentPdfExportService {
*/ */
public exportSingleAssignment(assignment: ViewAssignment): void { public exportSingleAssignment(assignment: ViewAssignment): void {
const doc = this.assignmentPdfService.assignmentToDocDef(assignment); const doc = this.assignmentPdfService.assignmentToDocDef(assignment);
const filename = `${this.translate.instant('Assignments')} ${assignment.title}`; const filename = `${this.translate.instant('Election')}_${assignment.title}`;
const metadata = { const metadata = {
title: filename title: filename
}; };

View File

@ -1,6 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GlobalSpinnerComponent } from './global-spinner.component'; import { GlobalSpinnerComponent } from './global-spinner.component';
import { E2EImportsModule } from 'e2e-imports.module';
describe('GlobalSpinnerComponent', () => { describe('GlobalSpinnerComponent', () => {
let component: GlobalSpinnerComponent; let component: GlobalSpinnerComponent;
@ -8,7 +9,7 @@ describe('GlobalSpinnerComponent', () => {
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [GlobalSpinnerComponent] imports: [E2EImportsModule]
}).compileComponents(); }).compileComponents();
})); }));

View File

@ -1,6 +1,7 @@
// External imports // External imports
import { Component, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core'; import { Component, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { TranslateService } from '@ngx-translate/core';
// Internal imports // Internal imports
import { SpinnerService } from 'app/core/ui-services/spinner.service'; import { SpinnerService } from 'app/core/ui-services/spinner.service';
@ -32,7 +33,7 @@ export class GlobalSpinnerComponent implements OnInit, OnDestroy {
/** /**
* Constant string as default message when the spinner is shown. * Constant string as default message when the spinner is shown.
*/ */
private LOADING = 'Loading data. Please wait...'; private LOADING = this.translate.instant('Loading data. Please wait...');
/** /**
* *
@ -40,7 +41,11 @@ export class GlobalSpinnerComponent implements OnInit, OnDestroy {
* @param translate Service to get translations for the messages. * @param translate Service to get translations for the messages.
* @param detector Service to manual initiate a change of the UI. * @param detector Service to manual initiate a change of the UI.
*/ */
public constructor(private spinnerService: SpinnerService, private detector: ChangeDetectorRef) {} public constructor(
private spinnerService: SpinnerService,
protected translate: TranslateService,
private detector: ChangeDetectorRef
) {}
/** /**
* Init method * Init method
@ -50,8 +55,7 @@ export class GlobalSpinnerComponent implements OnInit, OnDestroy {
.getVisibility() .getVisibility()
.subscribe((value: { isVisible: boolean; text: string }) => { .subscribe((value: { isVisible: boolean; text: string }) => {
this.isVisible = value.isVisible; this.isVisible = value.isVisible;
this.text = value.text; this.text = this.translate.instant(value.text);
if (!this.text) { if (!this.text) {
this.text = this.LOADING; this.text = this.LOADING;
} }

View File

@ -121,8 +121,8 @@ export class CallListComponent extends BaseViewComponent implements CanComponent
*/ */
public async canDeactivate(): Promise<boolean> { public async canDeactivate(): Promise<boolean> {
if (this.hasChanged) { if (this.hasChanged) {
const title = this.translate.instant('You made changes.'); const title = this.translate.instant('Do you really want to exit this page?');
const content = this.translate.instant('Do you really want to exit?'); const content = this.translate.instant('You made changes.');
return await this.promptService.open(title, content); return await this.promptService.open(title, content);
} }
return true; return true;

View File

@ -177,9 +177,8 @@ export class CategorySortComponent extends BaseViewComponent implements OnInit,
* Only an array containing ids from the motions will be sent. * Only an array containing ids from the motions will be sent.
*/ */
public async sendUpdate(): Promise<void> { public async sendUpdate(): Promise<void> {
const title = this.translate.instant('Save changes'); const title = this.translate.instant('Do you really want to save your changes?');
const content = this.translate.instant('Do you really want to save your changes?'); if (await this.promptService.open(title, null)) {
if (await this.promptService.open(title, content)) {
const ids = this.motionsCopy.map(motion => motion.id); const ids = this.motionsCopy.map(motion => motion.id);
this.repo.sortMotionsInCategory(this.category.category, ids); this.repo.sortMotionsInCategory(this.category.category, ids);
this.hasChanged = false; this.hasChanged = false;
@ -226,8 +225,8 @@ export class CategorySortComponent extends BaseViewComponent implements OnInit,
*/ */
public async canDeactivate(): Promise<boolean> { public async canDeactivate(): Promise<boolean> {
if (this.hasChanged) { if (this.hasChanged) {
const title = this.translate.instant('You made changes.'); const title = this.translate.instant('Do you really want to exit this page?');
const content = this.translate.instant('Do you really want to exit?'); const content = this.translate.instant('You made changes.');
return await this.promptService.open(title, content); return await this.promptService.open(title, content);
} }
return true; return true;

View File

@ -103,7 +103,7 @@ export class MotionBlockListComponent extends ListViewBaseComponent<ViewMotionBl
* Observe the agendaItems for changes. * Observe the agendaItems for changes.
*/ */
public ngOnInit(): void { public ngOnInit(): void {
super.setTitle('Motion Blocks'); super.setTitle('Motion blocks');
this.initTable(); this.initTable();
this.items = this.itemRepo.getViewModelListBehaviorSubject(); this.items = this.itemRepo.getViewModelListBehaviorSubject();

View File

@ -47,7 +47,7 @@
<p class="toggle-group-head" translate>Meta information</p> <p class="toggle-group-head" translate>Meta information</p>
<mat-button-toggle-group class="smaller-buttons" multiple formControlName="metaInfo"> <mat-button-toggle-group class="smaller-buttons" multiple formControlName="metaInfo">
<mat-button-toggle *ngFor="let metaInfo of metaInfoExportOrder" [value]="metaInfo"> <mat-button-toggle *ngFor="let metaInfo of metaInfoExportOrder" [value]="metaInfo">
<span translate>{{ getLabelForMetadata(metaInfo) }}</span> <span>{{ getLabelForMetadata(metaInfo) | translate }}</span>
</mat-button-toggle> </mat-button-toggle>
<mat-button-toggle value="polls" #votingResultButton> <mat-button-toggle value="polls" #votingResultButton>
<span translate>Voting result</span> <span translate>Voting result</span>

File diff suppressed because one or more lines are too long

View File

@ -260,10 +260,16 @@ msgid "Are you sure you want to renumber all motions of this category?"
msgstr "" msgstr ""
"Sollen alle Anträge dieses Sachgebiets wirklich neu nummeriert werden?" "Sollen alle Anträge dieses Sachgebiets wirklich neu nummeriert werden?"
msgid "Are you sure you want to send an invitation email to the user?"
msgstr "Soll wirklich eine E-Mail den diesen Nutzer gesendet werden?"
msgid "Are you sure you want to send emails to all selected participants?" msgid "Are you sure you want to send emails to all selected participants?"
msgstr "" msgstr ""
"Sollen E-Mails wirklich an alle ausgewählten Teilnehmende gesendet werden?" "Sollen E-Mails wirklich an alle ausgewählten Teilnehmende gesendet werden?"
msgid "Assignments"
msgstr ""
msgid "" msgid ""
"At least given name or surname have to be filled in. All other fields are " "At least given name or surname have to be filled in. All other fields are "
"optional and may be empty." "optional and may be empty."
@ -456,6 +462,9 @@ msgstr "Geänderte Fassung"
msgid "Changed version in line" msgid "Changed version in line"
msgstr "Geänderte Fassung in Zeile" msgstr "Geänderte Fassung in Zeile"
msgid "Check for updates"
msgstr "Auf Updates prüfen"
msgid "Check in or check out participants based on their participant numbers:" msgid "Check in or check out participants based on their participant numbers:"
msgstr "" msgstr ""
"An- oder Abmeldung von Teilnehmenden basierend auf ihren Teilnehmernummern:" "An- oder Abmeldung von Teilnehmenden basierend auf ihren Teilnehmernummern:"
@ -652,6 +661,9 @@ msgstr "Chronik löschen"
msgid "Deletion" msgid "Deletion"
msgstr "Streichung" msgstr "Streichung"
msgid "Description"
msgstr "Beschreibung"
msgid "Deselect all" msgid "Deselect all"
msgstr "Alle abwählen" msgstr "Alle abwählen"
@ -686,6 +698,12 @@ msgstr "Nicht befassen"
msgid "Do not decide" msgid "Do not decide"
msgstr "Nicht entscheiden" msgstr "Nicht entscheiden"
msgid "Do you really want to exit this page?"
msgstr "Wollen Sie diese Seite wirklich verlassen?"
msgid "Do you really want to save your changes?"
msgstr "Wollen Sie wirklich Ihre Änderungen speichern?"
msgid "Does not have notes" msgid "Does not have notes"
msgstr "Hat keine Notizen" msgstr "Hat keine Notizen"
@ -739,6 +757,9 @@ msgstr "Gewählt"
msgid "Election" msgid "Election"
msgstr "Wahl" msgstr "Wahl"
msgid "Election documents"
msgstr "Wahlunterlagen"
msgid "Election method" msgid "Election method"
msgstr "Wahlmethode" msgstr "Wahlmethode"
@ -760,6 +781,9 @@ msgstr "Nachrichtentext"
msgid "Email sender" msgid "Email sender"
msgstr "Absender" msgstr "Absender"
msgid "Email sent"
msgstr "E-Mail gesendet"
msgid "Email subject" msgid "Email subject"
msgstr "Betreff" msgstr "Betreff"
@ -800,6 +824,9 @@ msgstr ""
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
msgid "Error during PDF creation of motion:"
msgstr "Fehler bei der PDF-Erstellung in Antrag"
msgid "Error: The new passwords do not match." msgid "Error: The new passwords do not match."
msgstr "Fehler: Die neuen Passwörter stimmen nicht überein." msgstr "Fehler: Die neuen Passwörter stimmen nicht überein."
@ -1020,6 +1047,9 @@ msgstr "Laufende Nummer im PDF und DOCX anzeigen"
msgid "Initial password" msgid "Initial password"
msgstr "Initiales Passwort" msgstr "Initiales Passwort"
msgid "Initiate update check for all clients"
msgstr "Update-Prüfung für alle Clients starten"
msgid "Inline" msgid "Inline"
msgstr "innerhalb" msgstr "innerhalb"
@ -1104,6 +1134,9 @@ msgstr "Beschriftungsfarbe"
msgid "Last email send" msgid "Last email send"
msgstr "Letzte gesendet E-Mail" msgstr "Letzte gesendet E-Mail"
msgid "Last email sent"
msgstr "Letzte gesendete E-Mail"
msgid "Last modified" msgid "Last modified"
msgstr "Zuletzt geändert" msgstr "Zuletzt geändert"
@ -1140,6 +1173,9 @@ msgstr "Redeliste"
msgid "List of speakers overlay" msgid "List of speakers overlay"
msgstr "Redelisten-Einblendung" msgstr "Redelisten-Einblendung"
msgid "Loading data. Please wait..."
msgstr "Daten werden geladen. Bitte warten..."
msgid "Login" msgid "Login"
msgstr "Anmelden" msgstr "Anmelden"
@ -1311,6 +1347,9 @@ msgstr "Keine Daten"
msgid "No decision" msgid "No decision"
msgstr "Keine Entscheidung" msgstr "Keine Entscheidung"
msgid "No email sent"
msgstr "Keine E-Mail gesendet"
msgid "No emails were send." msgid "No emails were send."
msgstr "Es wurden keine E-Mails versandt." msgstr "Es wurden keine E-Mails versandt."
@ -1716,6 +1755,9 @@ msgstr "Erforderliche Mehrheit"
msgid "Reset" msgid "Reset"
msgstr "Zurücksetzen" msgstr "Zurücksetzen"
msgid "Reset cache"
msgstr "Cache leeren"
msgid "Reset password" msgid "Reset password"
msgstr "Passwort zurücksetzen" msgstr "Passwort zurücksetzen"
@ -1794,6 +1836,9 @@ msgstr "Ausgewählte Werte"
msgid "Send invitation email" msgid "Send invitation email"
msgstr "Einladungs-E-Mail senden" msgstr "Einladungs-E-Mail senden"
msgid "Sending an invitation email"
msgstr "Einladungs-E-Mail senden"
msgid "Separator used for all csv exports and examples" msgid "Separator used for all csv exports and examples"
msgstr "Feldtrenner für alle CSV-Exporte und -Beispiele" msgstr "Feldtrenner für alle CSV-Exporte und -Beispiele"
@ -2135,6 +2180,10 @@ msgstr ""
"Alle ausgewählten Anträge unter oder nach dem folgenden Antrag in der " "Alle ausgewählten Anträge unter oder nach dem folgenden Antrag in der "
"Aufrufliste verschieben:" "Aufrufliste verschieben:"
msgid "This will send an update notification to all active clients"
msgstr ""
"Es wird eine Update-Benachrichtigung an alle aktiven Clients gesendet."
msgid "This will set the favorite status for all selected motions:" msgid "This will set the favorite status for all selected motions:"
msgstr "Favoriten-Markierung für alle ausgewählten Anträge setzen:" msgstr "Favoriten-Markierung für alle ausgewählten Anträge setzen:"
@ -2363,6 +2412,9 @@ msgstr "Sie können {event_name} und {username} als Platzhalter verwenden."
msgid "You do not have the required permission to see that page!" msgid "You do not have the required permission to see that page!"
msgstr "Sie haben leider keine Berechtigung diese Seite zu sehen." msgstr "Sie haben leider keine Berechtigung diese Seite zu sehen."
msgid "You made changes."
msgstr "Sie haben Änderungen vorgenommen."
msgid "You override the personally set password!" msgid "You override the personally set password!"
msgstr "Sie überschreiben hiermit das persönlich gesetzte Passwort!" msgstr "Sie überschreiben hiermit das persönlich gesetzte Passwort!"
@ -2448,6 +2500,9 @@ msgstr "inaktiv"
msgid "inline" msgid "inline"
msgstr "innerhalb" msgstr "innerhalb"
msgid "is elected"
msgstr "gewählt"
msgid "is hidden" msgid "is hidden"
msgstr "ist versteckt" msgstr "ist versteckt"

View File

@ -242,9 +242,15 @@ msgstr ""
msgid "Are you sure you want to renumber all motions of this category?" msgid "Are you sure you want to renumber all motions of this category?"
msgstr "" msgstr ""
msgid "Are you sure you want to send an invitation email to the user?"
msgstr ""
msgid "Are you sure you want to send emails to all selected participants?" msgid "Are you sure you want to send emails to all selected participants?"
msgstr "" msgstr ""
msgid "Assignments"
msgstr ""
msgid "" msgid ""
"At least given name or surname have to be filled in. All other fields are " "At least given name or surname have to be filled in. All other fields are "
"optional and may be empty." "optional and may be empty."
@ -433,6 +439,9 @@ msgstr ""
msgid "Changed version in line" msgid "Changed version in line"
msgstr "" msgstr ""
msgid "Check for updates"
msgstr ""
msgid "Check in or check out participants based on their participant numbers:" msgid "Check in or check out participants based on their participant numbers:"
msgstr "" msgstr ""
@ -612,6 +621,9 @@ msgstr ""
msgid "Deletion" msgid "Deletion"
msgstr "" msgstr ""
msgid "Description"
msgstr ""
msgid "Deselect all" msgid "Deselect all"
msgstr "" msgstr ""
@ -644,6 +656,12 @@ msgstr ""
msgid "Do not decide" msgid "Do not decide"
msgstr "" msgstr ""
msgid "Do you really want to exit this page?"
msgstr ""
msgid "Do you really want to save your changes?"
msgstr ""
msgid "Does not have notes" msgid "Does not have notes"
msgstr "" msgstr ""
@ -694,6 +712,9 @@ msgstr ""
msgid "Election" msgid "Election"
msgstr "" msgstr ""
msgid "Election documents"
msgstr ""
msgid "Election method" msgid "Election method"
msgstr "" msgstr ""
@ -715,6 +736,9 @@ msgstr ""
msgid "Email sender" msgid "Email sender"
msgstr "" msgstr ""
msgid "Email sent"
msgstr ""
msgid "Email subject" msgid "Email subject"
msgstr "" msgstr ""
@ -751,6 +775,9 @@ msgstr ""
msgid "Error" msgid "Error"
msgstr "" msgstr ""
msgid "Error during PDF creation of motion:"
msgstr ""
msgid "Error: The new passwords do not match." msgid "Error: The new passwords do not match."
msgstr "" msgstr ""
@ -969,6 +996,9 @@ msgstr ""
msgid "Initial password" msgid "Initial password"
msgstr "" msgstr ""
msgid "Initiate update check for all clients"
msgstr ""
msgid "Inline" msgid "Inline"
msgstr "" msgstr ""
@ -1053,6 +1083,9 @@ msgstr ""
msgid "Last email send" msgid "Last email send"
msgstr "" msgstr ""
msgid "Last email sent"
msgstr ""
msgid "Last modified" msgid "Last modified"
msgstr "" msgstr ""
@ -1089,6 +1122,9 @@ msgstr ""
msgid "List of speakers overlay" msgid "List of speakers overlay"
msgstr "" msgstr ""
msgid "Loading data. Please wait..."
msgstr ""
msgid "Login" msgid "Login"
msgstr "" msgstr ""
@ -1260,6 +1296,9 @@ msgstr ""
msgid "No decision" msgid "No decision"
msgstr "" msgstr ""
msgid "No email sent"
msgstr ""
msgid "No emails were send." msgid "No emails were send."
msgstr "" msgstr ""
@ -1656,6 +1695,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset cache"
msgstr ""
msgid "Reset password" msgid "Reset password"
msgstr "" msgstr ""
@ -1734,6 +1776,9 @@ msgstr ""
msgid "Send invitation email" msgid "Send invitation email"
msgstr "" msgstr ""
msgid "Sending an invitation email"
msgstr ""
msgid "Separator used for all csv exports and examples" msgid "Separator used for all csv exports and examples"
msgstr "" msgstr ""
@ -2047,6 +2092,9 @@ msgid ""
"the call list:" "the call list:"
msgstr "" msgstr ""
msgid "This will send an update notification to all active clients"
msgstr ""
msgid "This will set the favorite status for all selected motions:" msgid "This will set the favorite status for all selected motions:"
msgstr "" msgstr ""
@ -2262,6 +2310,9 @@ msgstr ""
msgid "You do not have the required permission to see that page!" msgid "You do not have the required permission to see that page!"
msgstr "" msgstr ""
msgid "You made changes."
msgstr ""
msgid "You override the personally set password!" msgid "You override the personally set password!"
msgstr "" msgstr ""
@ -2346,6 +2397,9 @@ msgstr ""
msgid "inline" msgid "inline"
msgstr "" msgstr ""
msgid "is elected"
msgstr ""
msgid "is hidden" msgid "is hidden"
msgstr "" msgstr ""