From 57126d1e3df1c2ee0c9b883aa5cbafe7684175b9 Mon Sep 17 00:00:00 2001 From: Pascal Repond Date: Thu, 7 Nov 2024 08:50:08 +0100 Subject: [PATCH] fix(deduplication): add missing translations Co-Authored-by: Pascal Repond --- .../migration-data-deduplication.component.ts | 8 +++++--- projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json | 3 +++ .../admin/src/assets/rero-ils-ui/admin/i18n/en_US.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json | 3 +++ projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json | 3 +++ 9 files changed, 29 insertions(+), 3 deletions(-) diff --git a/projects/admin/src/app/migration/deduplication/record/brief-view/migration-data-deduplication/migration-data-deduplication.component.ts b/projects/admin/src/app/migration/deduplication/record/brief-view/migration-data-deduplication/migration-data-deduplication.component.ts index b8275f77c..f67e3451b 100644 --- a/projects/admin/src/app/migration/deduplication/record/brief-view/migration-data-deduplication/migration-data-deduplication.component.ts +++ b/projects/admin/src/app/migration/deduplication/record/brief-view/migration-data-deduplication/migration-data-deduplication.component.ts @@ -16,6 +16,7 @@ */ import { Component, computed, inject, input, OnInit, output } from '@angular/core'; +import { TranslateService } from '@ngx-translate/core'; import { RecordService } from '@rero/ng-core'; import { MessageService } from 'primeng/api'; @@ -28,6 +29,7 @@ export class MigrationDataDeduplicationBriefComponent implements OnInit { // services protected toastService: MessageService = inject(MessageService); protected recordService: RecordService = inject(RecordService); + protected translateService: TranslateService = inject(TranslateService); // current record record = input(); @@ -121,7 +123,7 @@ export class MigrationDataDeduplicationBriefComponent implements OnInit { this.updateIlsPid(); } else { // no document from the backend - this.toastService.add({ severity: 'warn', summary: 'Record not found.' }); + this.toastService.add({ severity: 'warn', summary: this.translateService.instant('Record not found.') }); } }); } @@ -213,8 +215,8 @@ export class MigrationDataDeduplicationBriefComponent implements OnInit { this.refresh.emit(true); this.toastService.add({ severity: 'success', - summary: `${record.id} has been sucessfully updated`, - detail: `the status is now: ${record.deduplication.status}`, + summary: `${record.id} ` + this.translateService.instant('has been sucessfully updated.'), + detail: this.translateService.instant('The status is now:') + ' ' + this.translateService.instant(record.deduplication.status), }); }); } diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json index 17b04a12e..36ae27b55 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json @@ -425,6 +425,7 @@ "has 1 report attached": "has 1 report attached", "has 1 template attached": "has 1 template attached", "has 1 transaction attached": "has 1 transaction attached", + "has been sucessfully updated.": "has been sucessfully updated.", "Help": "المساعدة", "hiddenUrl": "URL مخفي", "History": "تاريخ", @@ -782,6 +783,7 @@ "Reception date": "Reception date", "Recipients": "Recipients", "Record created!": "تم إنشاء التسجيلة", + "Record not found.": "Record not found.", "Record to Import": "Record to Import", "Record Updated!": "تم تحديث التسجيلة", "Reference": "Reference", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "The request cannot be cancelled", "The request has been cancelled.": "The request has been cancelled.", "The requested entity body is short and stout": "The requested entity body is short and stout", + "The status is now:": "The status is now:", "The two periods are overlapping.": "الفترتين متداخلة", "Thesis": "Thesis", "This date will override the circulation policy behavior": "This date will override the circulation policy behavior", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json index 563a3370e..902d2c7b3 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json @@ -425,6 +425,7 @@ "has 1 report attached": "hat 1 Bericht angehängt", "has 1 template attached": "hat 1 Vorlage angehängt", "has 1 transaction attached": "hat 1 Transaktion angehängt", + "has been sucessfully updated.": "erfolgreich aktualisiert.", "Help": "Hilfe", "hiddenUrl": "Versteckte URL", "History": "Historie", @@ -782,6 +783,7 @@ "Reception date": "Empfangsdatum", "Recipients": "Empfänger", "Record created!": "Datensatz erstellt!", + "Record not found.": "Datensatz nicht gefunden.", "Record to Import": "Zu importierende Ressource", "Record Updated!": "Datensatz aktualisiert!", "Reference": "Referenz", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "Die Bestellung kann nicht gelöscht werden", "The request has been cancelled.": "Die Bestellung wurde abgebrochen.", "The requested entity body is short and stout": "Der angeforderte Entitätskörper ist kurz und stämmig", + "The status is now:": "Der Status ist jetzt:", "The two periods are overlapping.": "Die Zeiträume überlappen sich.", "Thesis": "Dissertation, Abschlussarbeit", "This date will override the circulation policy behavior": "Dieses Datum wird die übliche Ausleihfrist übergehen", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json index 638d55582..c8b46fce6 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json @@ -425,6 +425,7 @@ "has 1 report attached": "has 1 report attached", "has 1 template attached": "has 1 template attached", "has 1 transaction attached": "has 1 transaction attached", + "has been sucessfully updated.": "has been sucessfully updated.", "Help": "Help", "hiddenUrl": "hidden URL", "History": "History", @@ -782,6 +783,7 @@ "Reception date": "Date of receipt", "Recipients": "Recipients", "Record created!": "Record created!", + "Record not found.": "Record not found.", "Record to Import": "Record to Import", "Record Updated!": "Record Updated!", "Reference": "Reference", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "The request cannot be cancelled", "The request has been cancelled.": "The request has been cancelled.", "The requested entity body is short and stout": "The requested entity body is short and stout", + "The status is now:": "The status is now:", "The two periods are overlapping.": "The two periods are overlapping.", "Thesis": "Thesis", "This date will override the circulation policy behavior": "This date will override the circulation policy behavior", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/en_US.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/en_US.json index b6a40eec2..929cd6813 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/en_US.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/en_US.json @@ -425,6 +425,7 @@ "has 1 report attached": "has 1 report attached", "has 1 template attached": "has 1 template attached", "has 1 transaction attached": "has 1 transaction attached", + "has been sucessfully updated.": "has been sucessfully updated.", "Help": "Help", "hiddenUrl": "hiddenUrl", "History": "History", @@ -782,6 +783,7 @@ "Reception date": "Reception date", "Recipients": "Recipients", "Record created!": "Record created!", + "Record not found.": "Record not found.", "Record to Import": "Record to Import", "Record Updated!": "Record Updated!", "Reference": "Reference", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "The request cannot be cancelled", "The request has been cancelled.": "The request has been cancelled.", "The requested entity body is short and stout": "The requested entity body is short and stout", + "The status is now:": "The status is now:", "The two periods are overlapping.": "The two periods are overlapping.", "Thesis": "Thesis", "This date will override the circulation policy behavior": "This date will override the circulation policy behavior", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json index 1ce036df7..e70923df1 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json @@ -425,6 +425,7 @@ "has 1 report attached": "has 1 report attached", "has 1 template attached": "has 1 template attached", "has 1 transaction attached": "has 1 transaction attached", + "has been sucessfully updated.": "has been sucessfully updated.", "Help": "Ayuda", "hiddenUrl": "URL oculto", "History": "Histórico", @@ -782,6 +783,7 @@ "Reception date": "Fecha de recepción", "Recipients": "Destinatarios", "Record created!": "¡El recurso ha sido creado!", + "Record not found.": "Record not found.", "Record to Import": "Record to Import", "Record Updated!": "¡Recurso actualizado!", "Reference": "Reference", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "La solicitud no se puede cancelar", "The request has been cancelled.": "La solicitud ha sido cancelada.", "The requested entity body is short and stout": "El ente de entidad pedido es corto y fuerte", + "The status is now:": "The status is now:", "The two periods are overlapping.": "Los dos períodos se superponen.", "Thesis": "Tesis", "This date will override the circulation policy behavior": "Esta fecha anulará el comportamiento de la política de circulación", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json index bf1450b4c..b63043643 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json @@ -425,6 +425,7 @@ "has 1 report attached": "a 1 rapport lié", "has 1 template attached": "a 1 modèle lié", "has 1 transaction attached": "a 1 transaction liée", + "has been sucessfully updated.": "mis à jour avec succès.", "Help": "Aide", "hiddenUrl": "URL cachée", "History": "Historique", @@ -782,6 +783,7 @@ "Reception date": "Date de réception", "Recipients": "Destinataires", "Record created!": "La ressource a été créée !", + "Record not found.": "Ressource non trouvée.", "Record to Import": "Ressource à importer", "Record Updated!": "La ressource a été mise à jour !", "Reference": "Référence", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "La demande ne peut pas être annulée", "The request has been cancelled.": "La demande a été annulée.", "The requested entity body is short and stout": "Le corps de l'entité demandée est court et solide", + "The status is now:": "Le statut est maintenant :", "The two periods are overlapping.": "Les deux périodes se chevauchent.", "Thesis": "Thèse, mémoire", "This date will override the circulation policy behavior": "Cette date outrepassera le comportement de la politique de prêt", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json index 000e7acd2..0bb8feefd 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json @@ -425,6 +425,7 @@ "has 1 report attached": "a 1 rapporto allegato", "has 1 template attached": "a 1 modello allegato", "has 1 transaction attached": "a 1 transazione allegata", + "has been sucessfully updated.": "aggiornato con successo.", "Help": "Aiuto", "hiddenUrl": "URL nascosta", "History": "Storico", @@ -782,6 +783,7 @@ "Reception date": "Data di ricezione", "Recipients": "Destinatari", "Record created!": "Record creato!", + "Record not found.": "Record non trovato.", "Record to Import": "Risorsa da importare", "Record Updated!": "Il record è stato aggiornato!", "Reference": "Riferimento", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "La richiesta non può essere annullata", "The request has been cancelled.": "La richiesta è stata annullata.", "The requested entity body is short and stout": "L'ente richiesto è corto e robusto", + "The status is now:": "Lo stato è ora:", "The two periods are overlapping.": "I due periodi si sovrappongono.", "Thesis": "Tesi, dissertazione", "This date will override the circulation policy behavior": "Questa data scavalcherà il comportamento della politica di prestito", diff --git a/projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json b/projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json index b0693a1dc..042204f8f 100644 --- a/projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json +++ b/projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json @@ -425,6 +425,7 @@ "has 1 report attached": "has 1 report attached", "has 1 template attached": "has 1 template attached", "has 1 transaction attached": "has 1 transaction attached", + "has been sucessfully updated.": "has been sucessfully updated.", "Help": "Hulp", "hiddenUrl": "verborgen Url", "History": "Historiek", @@ -782,6 +783,7 @@ "Reception date": "Reception date", "Recipients": "Recipients", "Record created!": "Record gecreëerd!", + "Record not found.": "Record not found.", "Record to Import": "Record to Import", "Record Updated!": "Record bijgewerkt!", "Reference": "Reference", @@ -943,6 +945,7 @@ "The request cannot be cancelled": "The request cannot be cancelled", "The request has been cancelled.": "The request has been cancelled.", "The requested entity body is short and stout": "The requested entity body is short and stout", + "The status is now:": "The status is now:", "The two periods are overlapping.": "De twee periodes overlappen elkaar.", "Thesis": "Thesis", "This date will override the circulation policy behavior": "This date will override the circulation policy behavior",