Skip to content

Commit

Permalink
Updated translations
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelschuetze committed Jul 12, 2023
1 parent 42069f8 commit 11035b5
Show file tree
Hide file tree
Showing 8 changed files with 824 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Injectable } from '@angular/core';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { Id } from 'src/app/domain/definitions/key-types';
import { Identifiable } from 'src/app/domain/interfaces';
import { PointOfOrderCategory } from 'src/app/domain/models/point-of-order-category/point-of-order-category';
Expand All @@ -24,7 +23,7 @@ export class PointOfOrderCategoryRepositoryService
}

public getVerboseName = (plural?: boolean): string =>
plural ? _(`Point of order categories`) : _(`Point of order category`);
plural ? `Point of order categories` : `Point of order category`;
public getTitle = (viewModel: PointOfOrderCategory): string => viewModel.text;

public create(pointOfOrderCategory: any, meeting_id: Id = this.activeMeetingId): Action<Identifiable> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2 mat-dialog-title>
<form class="edit-form" [formGroup]="editForm" (ngSubmit)="onOk()">
<mat-dialog-content>
<mat-form-field *ngIf="showCategorySelect">
<mat-label>{{ 'Point of order category' | translate }}</mat-label>
<mat-label>{{ 'Possible points of order' | translate }}</mat-label>
<mat-select osAutofocus formControlName="category">
<mat-option *ngFor="let category of categoriesSubject | async" [value]="category.id">
{{ category.getTitle() | translate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2>{{ 'Call list' | translate }}</h2>
<mat-menu #mainMenu="matMenu">
<button mat-menu-item (click)="sortMotionsByNumber()">
<mat-icon>sort</mat-icon>
<span>{{ 'Sort by number' | translate }}</span>
<span>{{ 'Sort by identifier' | translate }}</span>
</button>

<mat-divider></mat-divider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ <h4>{{ 'Creation date' | translate }}</h4>

<!-- Workflow timestamp -->
<div *ngIf="motion?.workflow_timestamp">
<h4>{{ 'Submit date' | translate }}</h4>
<h4>{{ 'Submission date' | translate }}</h4>
<div>{{ motion.workflow_timestamp | localizedDate }}</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Prerequisites:
type: `check`
},
{
name: _(`Set number`),
name: _(`Set identifier`),
help_text: _(
`Activates the automatic setting of a number for motions that reach this state. The scheme for numbering can be customized under > [Settings] > [Motions].`
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,12 @@ export const meetingSettings: SettingsGroup[] = fillInSettingsDefaults([
},
{
key: `list_of_speakers_enable_point_of_order_categories`,
label: _(`Enable point of order categories`),
label: _(`Enable specifications and ranking for possible motions`),
type: `boolean`
},
{
key: `point_of_order_category_ids`,
label: _(`Point of order categories`),
label: `Point of order specifications`,
type: `ranking`,
useRelation: true,
keyTransformationConfig: [
Expand Down Expand Up @@ -536,7 +536,7 @@ export const meetingSettings: SettingsGroup[] = fillInSettingsDefaults([
label: _(`Sort motions by`),
type: `choice`,
choices: {
number: _(`Number`),
number: _(`Identifier`),
weight: _(`Call list`)
}
}
Expand All @@ -547,7 +547,7 @@ export const meetingSettings: SettingsGroup[] = fillInSettingsDefaults([
settings: [
{
key: `motions_number_type`,
label: _(`Motion number`),
label: _(`Motion identifier`),
type: `choice`,
choices: {
per_category: _(`Numbered per category`),
Expand All @@ -557,9 +557,9 @@ export const meetingSettings: SettingsGroup[] = fillInSettingsDefaults([
},
{
key: `motions_number_min_digits`,
label: _(`Minimum number of digits for motion number`),
label: _(`Minimum number of digits for motion identifier`),
type: `integer`,
helpText: _(`Uses leading zeros to sort motions correctly by number.`),
helpText: _(`Uses leading zeros to sort motions correctly by identifier.`),
validators: [Validators.min(1)]
},
{
Expand Down Expand Up @@ -590,7 +590,7 @@ export const meetingSettings: SettingsGroup[] = fillInSettingsDefaults([
},
{
key: `motions_amendments_prefix`,
label: _(`Prefix for the motion number for amendments`)
label: _(`Prefix for the motion identifier of amendments`)
},
{
key: `motions_amendments_text_mode`,
Expand Down
Loading

0 comments on commit 11035b5

Please sign in to comment.