Update translations

This commit is contained in:
Emanuel Schütze 2019-02-14 22:17:16 +01:00
parent 4025e27e4a
commit ff407468f0
10 changed files with 139 additions and 76 deletions

View File

@ -6,6 +6,7 @@ import { ViewMediafile } from '../models/view-mediafile';
import { StorageService } from 'app/core/core-services/storage.service'; import { StorageService } from 'app/core/core-services/storage.service';
import { MediafileRepositoryService } from 'app/core/repositories/mediafiles/mediafile-repository.service'; import { MediafileRepositoryService } from 'app/core/repositories/mediafiles/mediafile-repository.service';
import { OperatorService } from 'app/core/core-services/operator.service'; import { OperatorService } from 'app/core/core-services/operator.service';
import { TranslateService } from '@ngx-translate/core';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@ -18,15 +19,15 @@ export class MediafileFilterListService extends BaseFilterListService<Mediafile,
*/ */
public pdfOption: OsFilter = { public pdfOption: OsFilter = {
property: 'type', property: 'type',
label: 'Is PDF', label: 'PDF',
options: [ options: [
{ {
condition: 'application/pdf', condition: 'application/pdf',
label: 'Is PDF file' label: this.translate.instant('Is PDF file')
}, },
{ {
condition: null, condition: null,
label: 'Is no PDF file' label: this.translate.instant('Is no PDF file')
} }
] ]
}; };
@ -36,8 +37,11 @@ export class MediafileFilterListService extends BaseFilterListService<Mediafile,
*/ */
public hiddenOptions: OsFilter = { public hiddenOptions: OsFilter = {
property: 'is_hidden', property: 'is_hidden',
label: 'Hidden', label: this.translate.instant('Hidden'),
options: [{ condition: true, label: 'is hidden' }, { condition: false, label: 'is not hidden', isActive: true }] options: [
{ condition: true, label: this.translate.instant('is hidden') },
{ condition: false, label: this.translate.instant('is not hidden'), isActive: true }
]
}; };
/** /**
@ -45,8 +49,14 @@ export class MediafileFilterListService extends BaseFilterListService<Mediafile,
* @param store * @param store
* @param repo * @param repo
* @param operator * @param operator
* @param translate
*/ */
public constructor(store: StorageService, repo: MediafileRepositoryService, operator: OperatorService) { public constructor(
store: StorageService,
repo: MediafileRepositoryService,
operator: OperatorService,
private translate: TranslateService
) {
super(store, repo); super(store, repo);
const filterOptions = operator.hasPerms('mediafiles.can_see_hidden') const filterOptions = operator.hasPerms('mediafiles.can_see_hidden')
? [this.hiddenOptions, this.pdfOption] ? [this.hiddenOptions, this.pdfOption]

View File

@ -58,7 +58,7 @@
</mat-button-toggle-group> </mat-button-toggle-group>
</div> </div>
<div *ngIf="commentsToExport.length && exportForm.get('format').value === 'pdf'"> <div *ngIf="commentsToExport.length && exportForm.get('format').value === 'pdf'">
<p class="toggle-group-head" translate>Comments information</p> <p class="toggle-group-head" translate>Comments</p>
<mat-button-toggle-group <mat-button-toggle-group
class="smaller-buttons" class="smaller-buttons"
multiple multiple

View File

@ -171,7 +171,7 @@ export class MotionFilterListService extends BaseFilterListService<Motion, ViewM
motionBlockOptions.push('-'); motionBlockOptions.push('-');
motionBlockOptions.push({ motionBlockOptions.push({
condition: null, condition: null,
label: 'No motion block set', label: this.translate.instant('No motion block set'),
isActive: false isActive: false
}); });
} }
@ -196,7 +196,7 @@ export class MotionFilterListService extends BaseFilterListService<Motion, ViewM
if (categories.length) { if (categories.length) {
categoryOptions.push('-'); categoryOptions.push('-');
categoryOptions.push({ categoryOptions.push({
label: 'No category set', label: this.translate.instant('No category set'),
condition: null condition: null
}); });
} }
@ -275,14 +275,14 @@ export class MotionFilterListService extends BaseFilterListService<Motion, ViewM
condition: finalStates condition: finalStates
}); });
workflowOptions.push({ workflowOptions.push({
label: 'Undone', label: this.translate.instant('Undone'),
condition: nonFinalStates condition: nonFinalStates
}); });
} }
if (recommendationOptions.length) { if (recommendationOptions.length) {
recommendationOptions.push('-'); recommendationOptions.push('-');
recommendationOptions.push({ recommendationOptions.push({
label: 'No recommendation', label: this.translate.instant('No recommendation'),
condition: null condition: null
}); });
} }
@ -307,7 +307,7 @@ export class MotionFilterListService extends BaseFilterListService<Motion, ViewM
if (comments.length) { if (comments.length) {
commentOptions.push('-'); commentOptions.push('-');
commentOptions.push({ commentOptions.push({
label: 'No comment', label: this.translate.instant('No comment'),
condition: null condition: null
}); });
} }

View File

@ -104,7 +104,7 @@
<button type="button" mat-icon-button (click)="project(message)"> <button type="button" mat-icon-button (click)="project(message)">
<mat-icon>videocam</mat-icon> <mat-icon>videocam</mat-icon>
</button> </button>
<span translate>{{ message.getPreview(40) }}</span> <span>{{ message.getPreview(40) }}</span>
</mat-list-item> </mat-list-item>
</mat-list> </mat-list>
</div> </div>

View File

@ -54,7 +54,7 @@
</form> </form>
<ng-container *ngIf="editId !== message.id"> <ng-container *ngIf="editId !== message.id">
<div class="message" *ngIf="message.message" [innerHTML]="getSafeMessage(message)"></div> <div class="message" *ngIf="message.message" [innerHTML]="getSafeMessage(message)"></div>
<div *ngIf="!message.message" class="no-content" translate>No message</div> <div *ngIf="!message.message" class="no-content" translate>No messages</div>
</ng-container> </ng-container>
<mat-action-row> <mat-action-row>
<button *ngIf="editId !== message.id" mat-button class="on-transition-fade" (click)="onEditButton(message)" <button *ngIf="editId !== message.id" mat-button class="on-transition-fade" (click)="onEditButton(message)"

View File

@ -59,11 +59,10 @@
</div> </div>
</mat-nav-list> </mat-nav-list>
</mat-expansion-panel> </mat-expansion-panel>
<!-- TODO: Could use translate.getLangs() to fetch available languages -->
<mat-menu #languageMenu="matMenu"> <mat-menu #languageMenu="matMenu">
<button mat-menu-item (click)="selectLang('en')" translate>English</button> <button mat-menu-item (click)="selectLang('en')">{{ getLangName('en') }}</button>
<button mat-menu-item (click)="selectLang('de')" translate>German</button> <button mat-menu-item (click)="selectLang('de')">{{ getLangName('de') }}</button>
<button mat-menu-item (click)="selectLang('cs')" translate>Czech</button> <button mat-menu-item (click)="selectLang('cs')">{{ getLangName('cs') }}</button>
</mat-menu> </mat-menu>
<!-- navigation --> <!-- navigation -->

View File

@ -142,11 +142,11 @@ export class SiteComponent extends BaseComponent implements OnInit {
*/ */
public getLangName(abbreviation: string): string { public getLangName(abbreviation: string): string {
if (abbreviation === 'en') { if (abbreviation === 'en') {
return this.translate.instant('English'); return 'English';
} else if (abbreviation === 'de') { } else if (abbreviation === 'de') {
return this.translate.instant('German'); return 'Deutsch';
} else if (abbreviation === 'cs') { } else if (abbreviation === 'cs') {
return this.translate.instant('Czech'); return 'Čeština';
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -119,9 +119,6 @@ msgstr "Alle abgegebenen Stimmzettel"
msgid "All selected files will be deleted!" msgid "All selected files will be deleted!"
msgstr "Alle ausgewählten Dateien werden gelöscht!" msgstr "Alle ausgewählten Dateien werden gelöscht!"
msgid "All users"
msgstr ""
msgid "All valid ballots" msgid "All valid ballots"
msgstr "Alle gültigen Stimmzettel" msgstr "Alle gültigen Stimmzettel"
@ -407,6 +404,9 @@ msgstr "Kommentar"
msgid "Comment fields" msgid "Comment fields"
msgstr "Kommentarfelder" msgstr "Kommentarfelder"
msgid "Comments"
msgstr "Kommentare"
msgid "Committees" msgid "Committees"
msgstr "Gremien" msgstr "Gremien"
@ -467,9 +467,6 @@ msgstr "Benutzerdefinierte Anzahl von Stimmzetteln"
msgid "Custom translations" msgid "Custom translations"
msgstr "Benutzerdefinierte Übersetzungen" msgstr "Benutzerdefinierte Übersetzungen"
msgid "Czech"
msgstr "Tschechisch"
msgid "" msgid ""
"Dear {name},\n" "Dear {name},\n"
"\n" "\n"
@ -597,6 +594,13 @@ msgstr ""
"Verschieben Sie Einträge, um die Reihenfolge der Tagesordnung zu ändern. " "Verschieben Sie Einträge, um die Reihenfolge der Tagesordnung zu ändern. "
"Ihre Änderungen werden sofort gespeichert." "Ihre Änderungen werden sofort gespeichert."
msgid ""
"Drag and drop motions to reorder the category. Then click the button to "
"renumber."
msgstr ""
"Verschieben Sie die Anträge um das Sachgebiet neu zu ordnen. Klicken Sie "
"anschließend auf die Schaltfläche um neu zu nummerieren."
msgid "Drop files into this area OR select files" msgid "Drop files into this area OR select files"
msgstr "Dateien auf diesen Bereich ziehen ODER Dateien auswählen" msgstr "Dateien auf diesen Bereich ziehen ODER Dateien auswählen"
@ -606,9 +610,6 @@ msgstr "Dauer"
msgid "Edit" msgid "Edit"
msgstr "Bearbeiten" msgstr "Bearbeiten"
msgid "Edit category"
msgstr "Sachgebiet bearbeiten"
msgid "Edit comment field:" msgid "Edit comment field:"
msgstr "Kommentarfeld bearbeiten:" msgstr "Kommentarfeld bearbeiten:"
@ -621,6 +622,9 @@ msgstr "Details bearbeiten"
msgid "Edit details for" msgid "Edit details for"
msgstr "Details bearbeiten für" msgstr "Details bearbeiten für"
msgid "Edit message"
msgstr "Mitteilung bearbeiten"
msgid "Edit statute paragraph:" msgid "Edit statute paragraph:"
msgstr "Satzungsabschnitt bearbeiten:" msgstr "Satzungsabschnitt bearbeiten:"
@ -672,9 +676,6 @@ msgstr "Encoding der Datei"
msgid "End speech" msgid "End speech"
msgstr "Rede beenden" msgstr "Rede beenden"
msgid "English"
msgstr "Englisch"
msgid "Enter duration in seconds. Choose 0 to disable warning color." msgid "Enter duration in seconds. Choose 0 to disable warning color."
msgstr "" msgstr ""
"Geben Sie die Dauer in Sekunden an. Zum Deaktivieren der Warn-Farbe 0 " "Geben Sie die Dauer in Sekunden an. Zum Deaktivieren der Warn-Farbe 0 "
@ -724,6 +725,9 @@ msgstr "Exportieren als CSV"
msgid "Export as PDF" msgid "Export as PDF"
msgstr "Als PDF exportieren" msgstr "Als PDF exportieren"
msgid "Export comment"
msgstr "Kommentar exportieren"
msgid "Export motions" msgid "Export motions"
msgstr "Anträge exportieren" msgstr "Anträge exportieren"
@ -802,9 +806,6 @@ msgstr "Neue Passwörter generieren"
msgid "Generate password" msgid "Generate password"
msgstr "Passwort generieren" msgstr "Passwort generieren"
msgid "German"
msgstr "Deutsch"
msgid "Given name" msgid "Given name"
msgstr "Vorname" msgstr "Vorname"
@ -917,6 +918,9 @@ msgstr "Ungültige Eingabe."
msgid "Invalid line number" msgid "Invalid line number"
msgstr "Ungültige Zeilennummer" msgstr "Ungültige Zeilennummer"
msgid "Is PDF file"
msgstr "Ist eine PDF-Datei"
msgid "Is a committee" msgid "Is a committee"
msgstr "Ist ein Gremium" msgstr "Ist ein Gremium"
@ -929,6 +933,9 @@ msgstr "Ist Gremium"
msgid "Is favorite" msgid "Is favorite"
msgstr "Ist Favorit" msgstr "Ist Favorit"
msgid "Is no PDF file"
msgstr "Ist keine PDF-Datei"
msgid "Is not favorite" msgid "Is not favorite"
msgstr "Ist kein Favorit" msgstr "Ist kein Favorit"
@ -995,9 +1002,6 @@ msgstr "Redeliste verwalten für..."
msgid "Mark speaker" msgid "Mark speaker"
msgstr "Redner/in markieren" msgstr "Redner/in markieren"
msgid "Message"
msgstr "Mitteilung"
msgid "Messages" msgid "Messages"
msgstr "Mitteilungen" msgstr "Mitteilungen"
@ -1085,6 +1089,9 @@ msgstr "Neuer Dateiname"
msgid "New group name" msgid "New group name"
msgstr "Neuer Gruppenname" msgstr "Neuer Gruppenname"
msgid "New message"
msgstr "Neue Mitteilung"
msgid "New motion" msgid "New motion"
msgstr "Neuer Antrag" msgstr "Neuer Antrag"
@ -1121,6 +1128,9 @@ msgstr "Nein"
msgid "No category" msgid "No category"
msgstr "Kein Sachgebiet" msgstr "Kein Sachgebiet"
msgid "No category set"
msgstr "Kein Sachgebiet gesetzt"
msgid "No change recommendations yet" msgid "No change recommendations yet"
msgstr "Bisher keine Änderungsempfehlungen" msgstr "Bisher keine Änderungsempfehlungen"
@ -1136,6 +1146,9 @@ msgstr "Nichtbefassung"
msgid "No countdowns" msgid "No countdowns"
msgstr "Keine Countdowns" msgstr "Keine Countdowns"
msgid "No data"
msgstr "Keine Daten"
msgid "No decision" msgid "No decision"
msgstr "Keine Entscheidung" msgstr "Keine Entscheidung"
@ -1151,9 +1164,18 @@ msgstr "Keine Gruppen ausgewählt"
msgid "No information available" msgid "No information available"
msgstr "Keine Informationen verfügbar" msgstr "Keine Informationen verfügbar"
msgid "No messages"
msgstr "Keine Mitteilungen"
msgid "No motion block set"
msgstr "Kein Antragsblock gesetzt"
msgid "No personal note" msgid "No personal note"
msgstr "Keine persönliche Notiz" msgstr "Keine persönliche Notiz"
msgid "No recommendation"
msgstr "Keine Empfehlung gesetzt"
msgid "No search result found for" msgid "No search result found for"
msgstr "Keine Suchergebnisse gefunden für" msgstr "Keine Suchergebnisse gefunden für"
@ -1163,6 +1185,9 @@ msgstr "Keine Satzungsabschnitte vorhanden"
msgid "None" msgid "None"
msgstr "aus" msgstr "aus"
msgid "Number motions"
msgstr "Anträgg nummerieren"
msgid "Number of (minimum) required supporters for a motion" msgid "Number of (minimum) required supporters for a motion"
msgstr "Mindestanzahl erforderlicher Unterstützer/innen für einen Antrag" msgstr "Mindestanzahl erforderlicher Unterstützer/innen für einen Antrag"
@ -1361,15 +1386,9 @@ msgstr "Datenschutzerklärung"
msgid "Project" msgid "Project"
msgstr "Projizieren" msgstr "Projizieren"
msgid "Project motion {{ projectorElementBuildDescriptor.getTitle() }}?"
msgstr "Antrag {{ projectorElementBuildDescriptor.getTitle() }} projizieren?"
msgid "Project now" msgid "Project now"
msgstr "Jetzt projizieren" msgstr "Jetzt projizieren"
msgid "Project {{ projectorElementBuildDescriptor.getTitle() }}?"
msgstr "{{ projectorElementBuildDescriptor.getTitle() }} projizieren?"
msgid "Projector" msgid "Projector"
msgstr "Projektor" msgstr "Projektor"
@ -1655,6 +1674,9 @@ msgstr "Tagesordnung sortieren"
msgid "Sort categories by" msgid "Sort categories by"
msgstr "Sachgebiete sortieren nach" msgstr "Sachgebiete sortieren nach"
msgid "Sort motions"
msgstr "Anträge sortieren"
msgid "Sort name of participants by" msgid "Sort name of participants by"
msgstr "Namen der Teilnehmenden sortieren nach" msgstr "Namen der Teilnehmenden sortieren nach"
@ -1908,6 +1930,9 @@ msgstr "Zweidrittelmehrheit"
msgid "Type" msgid "Type"
msgstr "Typ" msgstr "Typ"
msgid "Undone"
msgstr "unerledigt"
msgid "Unsupport" msgid "Unsupport"
msgstr "Unterstützung zurückziehen" msgstr "Unterstützung zurückziehen"
@ -2121,6 +2146,12 @@ msgstr "Beispiel"
msgid "inline" msgid "inline"
msgstr "innerhalb" msgstr "innerhalb"
msgid "is hidden"
msgstr "ist versteckt"
msgid "is not hidden"
msgstr "ist nicht versteckt"
msgid "is now" msgid "is now"
msgstr "ist jetzt" msgstr "ist jetzt"
@ -2151,9 +2182,6 @@ msgstr "abwesend"
msgid "not reached." msgid "not reached."
msgstr "nicht erreicht." msgstr "nicht erreicht."
msgid "not set"
msgstr "nicht gesetzt"
msgid "of" msgid "of"
msgstr "von" msgstr "von"

View File

@ -108,9 +108,6 @@ msgstr ""
msgid "All selected files will be deleted!" msgid "All selected files will be deleted!"
msgstr "" msgstr ""
msgid "All users"
msgstr ""
msgid "All valid ballots" msgid "All valid ballots"
msgstr "" msgstr ""
@ -389,6 +386,9 @@ msgstr ""
msgid "Comment fields" msgid "Comment fields"
msgstr "" msgstr ""
msgid "Comments"
msgstr ""
msgid "Committees" msgid "Committees"
msgstr "" msgstr ""
@ -449,9 +449,6 @@ msgstr ""
msgid "Custom translations" msgid "Custom translations"
msgstr "" msgstr ""
msgid "Czech"
msgstr ""
msgid "" msgid ""
"Dear {name},\n" "Dear {name},\n"
"\n" "\n"
@ -560,6 +557,11 @@ msgid ""
"will be saved immediately." "will be saved immediately."
msgstr "" msgstr ""
msgid ""
"Drag and drop motions to reorder the category. Then click the button to "
"renumber."
msgstr ""
msgid "Drop files into this area OR select files" msgid "Drop files into this area OR select files"
msgstr "" msgstr ""
@ -569,9 +571,6 @@ msgstr ""
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
msgid "Edit category"
msgstr ""
msgid "Edit comment field:" msgid "Edit comment field:"
msgstr "" msgstr ""
@ -584,6 +583,9 @@ msgstr ""
msgid "Edit details for" msgid "Edit details for"
msgstr "" msgstr ""
msgid "Edit message"
msgstr ""
msgid "Edit statute paragraph:" msgid "Edit statute paragraph:"
msgstr "" msgstr ""
@ -635,9 +637,6 @@ msgstr ""
msgid "End speech" msgid "End speech"
msgstr "" msgstr ""
msgid "English"
msgstr ""
msgid "Enter duration in seconds. Choose 0 to disable warning color." msgid "Enter duration in seconds. Choose 0 to disable warning color."
msgstr "" msgstr ""
@ -683,6 +682,9 @@ msgstr ""
msgid "Export as PDF" msgid "Export as PDF"
msgstr "" msgstr ""
msgid "Export comment"
msgstr ""
msgid "Export motions" msgid "Export motions"
msgstr "" msgstr ""
@ -761,9 +763,6 @@ msgstr ""
msgid "Generate password" msgid "Generate password"
msgstr "" msgstr ""
msgid "German"
msgstr ""
msgid "Given name" msgid "Given name"
msgstr "" msgstr ""
@ -874,6 +873,9 @@ msgstr ""
msgid "Invalid line number" msgid "Invalid line number"
msgstr "" msgstr ""
msgid "Is PDF file"
msgstr ""
msgid "Is a committee" msgid "Is a committee"
msgstr "" msgstr ""
@ -886,6 +888,9 @@ msgstr ""
msgid "Is favorite" msgid "Is favorite"
msgstr "" msgstr ""
msgid "Is no PDF file"
msgstr ""
msgid "Is not favorite" msgid "Is not favorite"
msgstr "" msgstr ""
@ -952,9 +957,6 @@ msgstr ""
msgid "Mark speaker" msgid "Mark speaker"
msgstr "" msgstr ""
msgid "Message"
msgstr ""
msgid "Messages" msgid "Messages"
msgstr "" msgstr ""
@ -1042,6 +1044,9 @@ msgstr ""
msgid "New group name" msgid "New group name"
msgstr "" msgstr ""
msgid "New message"
msgstr ""
msgid "New motion" msgid "New motion"
msgstr "" msgstr ""
@ -1078,6 +1083,9 @@ msgstr ""
msgid "No category" msgid "No category"
msgstr "" msgstr ""
msgid "No category set"
msgstr ""
msgid "No change recommendations yet" msgid "No change recommendations yet"
msgstr "" msgstr ""
@ -1093,6 +1101,9 @@ msgstr ""
msgid "No countdowns" msgid "No countdowns"
msgstr "" msgstr ""
msgid "No data"
msgstr ""
msgid "No decision" msgid "No decision"
msgstr "" msgstr ""
@ -1108,9 +1119,18 @@ msgstr ""
msgid "No information available" msgid "No information available"
msgstr "" msgstr ""
msgid "No messages"
msgstr ""
msgid "No motion block set"
msgstr ""
msgid "No personal note" msgid "No personal note"
msgstr "" msgstr ""
msgid "No recommendation"
msgstr ""
msgid "No search result found for" msgid "No search result found for"
msgstr "" msgstr ""
@ -1120,6 +1140,9 @@ msgstr ""
msgid "None" msgid "None"
msgstr "" msgstr ""
msgid "Number motions"
msgstr ""
msgid "Number of (minimum) required supporters for a motion" msgid "Number of (minimum) required supporters for a motion"
msgstr "" msgstr ""
@ -1315,15 +1338,9 @@ msgstr ""
msgid "Project" msgid "Project"
msgstr "" msgstr ""
msgid "Project motion {{ projectorElementBuildDescriptor.getTitle() }}?"
msgstr ""
msgid "Project now" msgid "Project now"
msgstr "" msgstr ""
msgid "Project {{ projectorElementBuildDescriptor.getTitle() }}?"
msgstr ""
msgid "Projector" msgid "Projector"
msgstr "" msgstr ""
@ -1604,6 +1621,9 @@ msgstr ""
msgid "Sort categories by" msgid "Sort categories by"
msgstr "" msgstr ""
msgid "Sort motions"
msgstr ""
msgid "Sort name of participants by" msgid "Sort name of participants by"
msgstr "" msgstr ""
@ -1830,6 +1850,9 @@ msgstr ""
msgid "Type" msgid "Type"
msgstr "" msgstr ""
msgid "Undone"
msgstr ""
msgid "Unsupport" msgid "Unsupport"
msgstr "" msgstr ""
@ -2029,6 +2052,12 @@ msgstr ""
msgid "inline" msgid "inline"
msgstr "" msgstr ""
msgid "is hidden"
msgstr ""
msgid "is not hidden"
msgstr ""
msgid "is now" msgid "is now"
msgstr "" msgstr ""
@ -2059,9 +2088,6 @@ msgstr ""
msgid "not reached." msgid "not reached."
msgstr "" msgstr ""
msgid "not set"
msgstr ""
msgid "of" msgid "of"
msgstr "" msgstr ""