Skip to content

Commit c25d9e2

Browse files
committed
Adding missing translations and fixing Danish translations and tests accordinbly.
1 parent 68e3d84 commit c25d9e2

File tree

28 files changed

+41
-15
lines changed

28 files changed

+41
-15
lines changed

eform-client/cypress/e2e/plugins/time-planning-pn/f/dashboard-edit-a.spec.cy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('Dashboard edit values', () => {
5151
it('should show an error when planned stop time is before start time', () => {
5252
setTimepickerValue('#plannedStartOfShift1', '10', '00');
5353
setTimepickerValue('#plannedEndOfShift1', '9', '00');
54-
assertInputError('plannedEndOfShift1-Error', 'Stoptidspunktet må ikke være før starttidspunktet');
54+
assertInputError('plannedEndOfShift1-Error', 'Stop må ikke være før start');
5555
});
5656

5757
it('should show an error when planned break is longer than the shift duration', () => {
@@ -64,15 +64,15 @@ describe('Dashboard edit values', () => {
6464
it('should show an error when planned start and stop are the same', () => {
6565
setTimepickerValue('#plannedStartOfShift1', '9', '00');
6666
setTimepickerValue('#plannedEndOfShift1', '9', '00');
67-
assertInputError('plannedEndOfShift1-Error', 'Starttidspunkt og Stoptidspunkt kan ikke være det samme');
67+
assertInputError('plannedEndOfShift1-Error', 'Start og stop kan ikke være det samme');
6868
});
6969

7070
// --- Actual Shift Duration Validator ---
7171
it('should show an error when actual stop time is before start time', () => {
7272
setTimepickerValue('#start1StartedAt', '11', '00');
7373
setTimepickerValue('#stop1StoppedAt', '9', '00');
7474
setTimepickerValue('#pause1Id', '0', '00');
75-
assertInputError('stop1StoppedAt-Error', 'Stoptidspunktet må ikke være før starttidspunktet');
75+
assertInputError('stop1StoppedAt-Error', 'Stop må ikke være før start');
7676
});
7777

7878
it('should show an error when actual pause is longer than the shift duration', () => {
@@ -86,22 +86,22 @@ describe('Dashboard edit values', () => {
8686
setTimepickerValue('#start1StartedAt', '9', '00');
8787
setTimepickerValue('#stop1StoppedAt', '9', '00');
8888
setTimepickerValue('#pause1Id', '0', '00');
89-
assertInputError('stop1StoppedAt-Error', 'Starttidspunkt og Stoptidspunkt kan ikke være det samme');
89+
assertInputError('stop1StoppedAt-Error', 'Start og stop kan ikke være det samme');
9090
});
9191

9292
// --- Shift-Wise Validator ---
9393
it('should show an error if planned Shift 2 starts before planned Shift 1 ends', () => {
9494
setTimepickerValue('#plannedStartOfShift1', '8', '00');
9595
setTimepickerValue('#plannedEndOfShift1', '12', '00');
9696
setTimepickerValue('#plannedStartOfShift2', '11', '00');
97-
assertInputError('plannedStartOfShift2-Error', 'Start time cannot be earlier than previous shift\'s end time');
97+
assertInputError('plannedStartOfShift2-Error', 'Start kan ikke være tidligere end stop for den forrige skift');
9898
});
9999

100100
it('should show an error if actual Shift 2 starts before actual Shift 1 ends', () => {
101101
setTimepickerValue('#start1StartedAt', '8', '00');
102102
setTimepickerValue('#stop1StoppedAt', '12', '00');
103103
setTimepickerValue('#start2StartedAt', '11', '00');
104-
assertInputError('start2StartedAt-Error', 'Start time cannot be earlier than previous shift\'s end time');
104+
assertInputError('start2StartedAt-Error', 'Start kan ikke være tidligere end stop for den forrige skift');
105105
});
106106

107107

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ export class WorkdayEntityDialogComponent implements OnInit {
676676
if (prevEnd !== null && (currStart !== null && currStart !== 0)) {
677677
if (currStart < prevEnd) {
678678
currShift.get('start')?.setErrors({
679-
hierarchyError: this.translateService.instant(`Start time cannot be earlier than previous shift's end time`),
679+
hierarchyError: this.translateService.instant('Start time cannot be earlier than previous shift`s end time'),
680680
});
681681

682682
if (!formError) {

eform-client/src/app/plugins/modules/time-planning-pn/i18n/bgBG.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const bgBG = {
139139
'Start and Stop cannot be the same': 'Старт и стоп не могат да бъдат едно и също нещо',
140140
'Stop time is required': 'Необходимо е време за спиране',
141141
'Start time is required': 'Необходимо е да се посочи начален час',
142+
'Start time cannot be earlier than previous shift`s end time': 'Началният час не може да бъде по-ранен от крайния час на предишната смяна',
142143
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/csCZ.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const csCZ = {
139139
'Start and Stop cannot be the same': 'Start a Stop nemohou být stejné',
140140
'Stop time is required': 'Je vyžadován čas zastavení',
141141
'Start time is required': 'Čas zahájení je povinný',
142+
'Start time cannot be earlier than previous shift`s end time': 'Čas zahájení nemůže být dříve než čas ukončení předchozí směny',
142143
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/da.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const da = {
107107
'Total breaktime': 'Samlet pausetid',
108108
'Total working hours': 'Samlede arbejdstimer',
109109
'Enter start time, stop time, and total break. Select Allow editing of work hours on mobile to edit times.': 'Indtast starttidspunkt, sluttidspunkt og samlet pause. Vælg Tillad redigering af arbejdstimer på mobilen for at redigere tider.',
110-
'Start time, stop time and breaks can be edited.': 'Starttidspunkt, stoptidspunkt og pauser kan redigeres.',
110+
'Start time, stop time and breaks can be edited.': 'Start, stop og pauser kan redigeres.',
111111
'Working hours are recorded by pressing Start/Stop working hours. Breaks are recorded by pressing Start/Stop break time. Select Allow editing of working hours on mobile to edit times.': 'Arbejdstimer registreres ved at trykke på Start/Stop arbejdstimer. Pauser registreres ved at trykke på Start/Stop pausetid. Vælg Tillad redigering af arbejdstimer på mobil for at redigere tider.',
112112
'Enter start time, stop time, and total break time back in time. Select Allow editing of work hours on mobile to edit times.': 'Indtast starttidspunkt, sluttidspunkt og samlet pausetid tilbage i tiden. Vælg Tillad redigering af arbejdstimer på mobilen for at redigere tider.',
113113
'Scheduled working hours can be approved with a single click. Scheduled working hours cannot be edited.': 'Planlagte arbejdstider kan godkendes med et enkelt klik. Planlagte arbejdstider kan ikke redigeres.',
@@ -129,12 +129,13 @@ export const da = {
129129
Resigned: 'Fratrådt',
130130
'Resigned at date': 'Fratrådte på datoen',
131131
'NettoHours override': 'Netto timer overskrivning',
132-
'Break must be shorter than shift duration': 'Pausen skal være kortere end vagtens varighed',
133-
'Shift duration cannot exceed 24 hours': 'Vagtens varighed må ikke overstige 24 timer',
134-
'Break cannot be equal or longer than shift duration': 'Pausen må ikke være lige så lang som eller længere end vagtens varighed',
132+
'Break must be shorter than shift duration': 'Pausen skal være kortere end skiftets varighed',
133+
'Shift duration cannot exceed 24 hours': 'Skiftets varighed må ikke overstige 24 timer',
134+
'Break cannot be equal or longer than shift duration': 'Pausen må ikke være lige så lang som eller længere end skiftets varighed',
135135
'Break cannot be negative': 'Pausen kan ikke være negativ',
136-
'Stop time cannot be before start time': 'Stoptidspunktet må ikke være før starttidspunktet',
137-
'Start and Stop cannot be the same': 'Starttidspunkt og Stoptidspunkt kan ikke være det samme',
138-
'Stop time is required': 'Stoptidspunkt er påkrævet',
139-
'Start time is required': 'Starttidspunkt er påkrævet',
136+
'Stop time cannot be before start time': 'Stop må ikke være før start',
137+
'Start and Stop cannot be the same': 'Start og stop kan ikke være det samme',
138+
'Stop time is required': 'Stop er påkrævet',
139+
'Start time is required': 'Start er påkrævet',
140+
'Start time cannot be earlier than previous shift`s end time': 'Start kan ikke være tidligere end stop for den forrige skift',
140141
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/deDE.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const deDE = {
139139
'Start and Stop cannot be the same': 'Start und Stopp können nicht identisch sein',
140140
'Stop time is required': 'Stoppzeit ist erforderlich',
141141
'Start time is required': 'Startzeit ist erforderlich',
142+
'Start time cannot be earlier than previous shift`s end time': 'Die Startzeit kann nicht vor der Endzeit der vorherigen Schicht liegen',
142143
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/elGR.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const elGR = {
139139
'Start and Stop cannot be the same': 'Η έναρξη και η διακοπή δεν μπορούν να είναι ίδιες',
140140
'Stop time is required': 'Απαιτείται χρόνος διακοπής',
141141
'Start time is required': 'Απαιτείται ώρα έναρξης',
142+
'Start time cannot be earlier than previous shift`s end time': 'Η ώρα έναρξης δεν μπορεί να είναι προγενέστερη από την ώρα λήξης της προηγούμενης βάρδιας',
142143
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/enUS.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ export const enUS = {
137137
'Start and Stop cannot be the same': 'Start and Stop cannot be the same',
138138
'Stop time is required': 'Stop time is required',
139139
'Start time is required': 'Start time is required',
140+
'Start time cannot be earlier than previous shift`s end time': 'Start time cannot be earlier than previous shift`s end time',
140141
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/esES.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const esES = {
139139
'Start and Stop cannot be the same': 'Inicio y parada no pueden ser lo mismo',
140140
'Stop time is required': 'Se requiere tiempo de parada',
141141
'Start time is required': 'Se requiere hora de inicio',
142+
'Start time cannot be earlier than previous shift`s end time': 'La hora de inicio no puede ser anterior a la hora de finalización del turno anterior',
142143
};

eform-client/src/app/plugins/modules/time-planning-pn/i18n/etET.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ export const etET = {
139139
'Start and Stop cannot be the same': 'Start ja Stop ei saa olla samad',
140140
'Stop time is required': 'Peatumisaeg on kohustuslik',
141141
'Start time is required': 'Algusaeg on kohustuslik',
142+
'Start time cannot be earlier than previous shift`s end time': 'Algusaeg ei saa olla varasem kui eelmise vahetuse lõppaeg',
142143
};

0 commit comments

Comments
 (0)