Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deduplication): add missing translations #1219

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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<any>();
Expand Down Expand Up @@ -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.') });
}
});
}
Expand Down Expand Up @@ -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),
});
});
}
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "تاريخ",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions projects/admin/src/assets/rero-ils-ui/admin/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading