From 8e7d6ffc49012d5650f1e0d54bac0c5b2050ee3e Mon Sep 17 00:00:00 2001 From: Arjun-Go Date: Fri, 11 Oct 2024 20:41:40 +0530 Subject: [PATCH] Arjun | add additional tx in french --- src/__mocks__/translations.mock.ts | 11 +-- .../select-test/select-test.tsx | 2 +- translations/en.json | 12 +-- translations/es.json | 12 +-- translations/fr.json | 81 +++++++++---------- translations/it.json | 12 +-- translations/pt_BR.json | 12 +-- 7 files changed, 59 insertions(+), 83 deletions(-) diff --git a/src/__mocks__/translations.mock.ts b/src/__mocks__/translations.mock.ts index f9bfe07..20ddc1c 100644 --- a/src/__mocks__/translations.mock.ts +++ b/src/__mocks__/translations.mock.ts @@ -24,6 +24,7 @@ export const translations = { loading: 'Loading', LOGO_ALT_TEXT: 'Bahmni logo', MAX_FILE_SIZE_MESSAGE: 'Maximum File size allowed: 5MB', + NO_MATCHING_TEXT_FOUND: 'No matching tests found', NO_REPORTS_FOUND_TEXT: 'No previous reports found for this patient', NO_TEST_SELECTED: 'You have not selected any tests', PANEL_LABEL: 'Panel', @@ -32,6 +33,7 @@ export const translations = { PENDING_LAB_ORDERS_TEXT: 'Pending Lab Orders', RECORD_CLINICAL_CONCLUSION_KEY: 'Click to record clinical conclusion', REPORT_CONCLUSION_KEY: 'Report Conclusion', + REPORT_DATE_LABEL: 'Report date', REPORTS_ANDLAB_TESTS_FETCH_ERROR: 'Something went wrong in fetching Report tables or Lab Tests...', REPORTS_TABLE_TEXT: 'Reports table', @@ -44,12 +46,11 @@ export const translations = { SELECT_TESTS_LABEL: 'Select Tests', SELECTED_TESTS_LABEL: 'Selected Tests', UPLOAD_REPORT_TEXT: 'Upload Report', - REPORT_DATE_LABEL: 'Report date', - DATE_LABEL: 'Date', - TEST_LABEL: 'Test', - ORDERED_BY_LABEL: 'Ordered By', - ORDER_NOTES_LABEL: 'Order Notes', TESTS_LABEL: 'Tests', + TEST_LABEL: 'Test', FILE_LABEL: 'File', REQUESTER_LABEL: 'Requester', + ORDERED_BY_LABEL: 'Ordered By', + ORDER_NOTES_LABEL: 'Order Notes', + DATE_LABEL: 'Date', } diff --git a/src/patient-lab-dashboard/select-test/select-test.tsx b/src/patient-lab-dashboard/select-test/select-test.tsx index 0a2dc7e..e44b92a 100644 --- a/src/patient-lab-dashboard/select-test/select-test.tsx +++ b/src/patient-lab-dashboard/select-test/select-test.tsx @@ -273,7 +273,7 @@ const SelectTest = ({isDiscardButtonClicked}) => { ) } - return 'No matching tests found' + return t('NO_MATCHING_TEXT_FOUND', 'No matching tests found') } const renderSearchResults = () => { diff --git a/translations/en.json b/translations/en.json index d1a88ee..33a501d 100644 --- a/translations/en.json +++ b/translations/en.json @@ -23,6 +23,7 @@ "loading": "Loading", "LOGO_ALT_TEXT": "Bahmni logo", "MAX_FILE_SIZE_MESSAGE": "Maximum File size allowed: 5MB", + "NO_MATCHING_TEXT_FOUND": "No matching tests found", "NO_REPORTS_FOUND_TEXT": "No previous reports found for this patient", "NO_TEST_SELECTED": "You have not selected any tests", "PANEL_LABEL": "Panel", @@ -30,6 +31,7 @@ "PENDING_LAB_ORDERS_TEXT": "Pending Lab Orders", "RECORD_CLINICAL_CONCLUSION_KEY": "Click to record clinical conclusion", "REPORT_CONCLUSION_KEY": "Report Conclusion", + "REPORT_DATE_LABEL": "Report Date", "REPORTS_ANDLAB_TESTS_FETCH_ERROR": "Something went wrong in fetching Report tables or Lab Tests...", "REPORTS_TABLE_TEXT": "Reports table", "REQUESTED_BY": "Requested by", @@ -40,13 +42,5 @@ "SELECT_DOCTOR": "Select a Doctor", "SELECT_TESTS_LABEL": "Select Tests", "SELECTED_TESTS_LABEL": "Selected Tests", - "UPLOAD_REPORT_TEXT": "Upload Report", - "REPORT_DATE_LABEL": "Report Date", - "DATE_LABEL": "Date", - "TEST_LABEL": "Test", - "ORDERED_BY_LABEL": "Ordered By", - "ORDER_NOTES_LABEL": "Order Notes", - "TESTS_LABEL": "Tests", - "FILE_LABEL": "File", - "REQUESTER_LABEL": "Requester" + "UPLOAD_REPORT_TEXT": "Upload Report" } diff --git a/translations/es.json b/translations/es.json index 4b313b9..936223d 100644 --- a/translations/es.json +++ b/translations/es.json @@ -23,6 +23,7 @@ "loading": "Cargando", "LOGO_ALT_TEXT": "Logotipo de Bahmni", "MAX_FILE_SIZE_MESSAGE": "Tamaño máximo de archivo permitido: 5MB", + "NO_MATCHING_TEXT_FOUND": "No se encontraron pruebas coincidentes", "NO_REPORTS_FOUND_TEXT": "No se encontraron informes previos para este paciente", "NO_TEST_SELECTED": "No ha seleccionado ninguna prueba", "PANEL_LABEL": "Panel", @@ -30,6 +31,7 @@ "PENDING_LAB_ORDERS_TEXT": "Órdenes de laboratorio pendientes", "RECORD_CLINICAL_CONCLUSION_KEY": "Haga clic para registrar la conclusión clínica", "REPORT_CONCLUSION_KEY": "Conclusión del informe", + "REPORT_DATE_LABEL": "Fecha del informe", "REPORTS_ANDLAB_TESTS_FETCH_ERROR": "Algo salió mal al obtener las tablas de informes o las pruebas de laboratorio...", "REPORTS_TABLE_TEXT": "Tabla de informes", "REQUESTED_BY": "Solicitado por", @@ -40,13 +42,5 @@ "SELECT_DOCTOR": "Seleccionar un médico", "SELECT_TESTS_LABEL": "Seleccionar pruebas", "SELECTED_TESTS_LABEL": "Pruebas seleccionadas", - "UPLOAD_REPORT_TEXT": "Cargar informe", - "REPORT_DATE_LABEL": "Fecha del informe", - "DATE_LABEL": "Fecha", - "TEST_LABEL": "Prueba", - "ORDERED_BY_LABEL": "Ordenado por", - "ORDER_NOTES_LABEL": "Notas del pedido", - "TESTS_LABEL": "Pruebas", - "FILE_LABEL": "Archivo", - "REQUESTER_LABEL": "Solicitante" + "UPLOAD_REPORT_TEXT": "Cargar informe" } diff --git a/translations/fr.json b/translations/fr.json index 0848bde..361d13b 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -1,54 +1,53 @@ -{ - "ABNORMAL_TEXT": "Anormal", - "ADD_FILES_MESSAGE": - "Faites glisser et déposez les fichiers ici ou cliquez pour télécharger", - "ALLOWED_FILE_TYPES": "Extensions de fichiers autorisées : pdf, jpeg, jpg", - "AVAILABLE_TESTS_LABEL": "Tests disponibles", - "CLEAR_FILTER_TEXT": "Effacer le filtre", - "DISCARD_LABEL": "Rejeter", - "DOCTOR_LIST": "liste des médecins", - "DOCTOR_NAME_ERROR": "Une erreur s'est produite lors de la récupération des noms des médecins.. . ", - "DUPLICATE_ORDER_SUBTITLE": "Vous avez sélectionné des commandes en double. Veuillez sélectionner des commandes uniques.", - "DUPLICATE_ORDER_TITLE": "Commande en double", +{ + "ABNORMAL_TEXT": "Anormal", + "ADD_FILES_MESSAGE": "Faites glisser et déposez les fichiers ici ou cliquez pour télécharger", + "ALLOWED_FILE_TYPES": "Extensions de fichiers autorisées\u00a0: pdf, jpeg, jpg", + "AVAILABLE_TESTS_LABEL": "Tests disponibles", + "CLEAR_FILTER_TEXT": "Effacer le filtre", + "DISCARD_LABEL": "Rejeter", + "DOCTOR_LIST": "liste des médecins", + "DOCTOR_NAME_ERROR": "Une erreur s'est produite lors de la récupération des noms des médecins.. . ", + "DUPLICATE_ORDER_SUBTITLE": "Vous avez sélectionné des commandes en double. Veuillez sélectionner des commandes uniques.", + "DUPLICATE_ORDER_TITLE": "Commande en double", "ENTER_TEST_RESULTS_TEXT": "Entrez les résultats des tests", - "ENTER_VALUE_KEY": "Entrer une valeur", - "ERROR_MESSAGE_PRETEXT": "Une erreur s'est produite\u00a0:", - "FILE_FORMAT_ERROR": "Seuls les fichiers avec l'extension suivante autorisés : pdf, jpg", - "FILE_SIZE_ERROR": "La taille du fichier dépasse max limit (5mb)", - "HOME_BUTTON_LABEL": "Accueil", - "HOME_PAGE_SUBTITLE": "Veuillez cliquer sur l'icône de recherche ci-dessus pour commencer", - "HOME_PAGE_TITLE": "Bienvenue à l'entrée du laboratoire", - "INVALID_DATA_ENTERED": "Veuillez saisir des données valides", - "ITEMS_MATCHING_TEXT": "éléments correspondants", - "LAB_TEST_FETCH_ERROR": "Une erreur s'est produite lors de la récupération des tests de laboratoire", + "ENTER_VALUE_KEY": "Entrer une valeur", + "ERROR_MESSAGE_PRETEXT": "Une erreur s'est produite\u00a0:", + "FILE_FORMAT_ERROR": "Seuls les fichiers avec l'extension suivante autorisés\u00a0: pdf, jpg", + "FILE_SIZE_ERROR": "La taille du fichier dépasse max limit (5mb)", + "HOME_BUTTON_LABEL": "Accueil", + "HOME_PAGE_SUBTITLE": "Veuillez cliquer sur l'icône de recherche ci-dessus pour commencer", + "HOME_PAGE_TITLE": "Bienvenue à l'entrée du laboratoire", + "INVALID_DATA_ENTERED": "Veuillez saisir des données valides", + "ITEMS_MATCHING_TEXT": "éléments correspondants", + "LAB_TEST_FETCH_ERROR": "Une erreur s'est produite lors de la récupération des tests de laboratoire", "loading": "Chargement", "LOGO_ALT_TEXT": " Logo Bahmni", - "MAX_FILE_SIZE_MESSAGE": "Taille maximale du fichier autorisée : 5 Mo", + "MAX_FILE_SIZE_MESSAGE": "Taille maximale du fichier autorisée\u00a0: 5\u00a0Mo", + "NO_MATCHING_TEXT_FOUND": "Aucun test correspondant trouvé", "NO_REPORTS_FOUND_TEXT": "Aucun rapport précédent n'a été trouvé pour ce patient", - "NO_TEST_SELECTED": "Vous n'avez sélectionné aucun test", + "NO_TEST_SELECTED": "Vous n'avez sélectionné aucun test", "PANEL_LABEL": "Panneau", "PENDING_LAB_ORDERS_ERROR": "Une erreur s'est produite lors de la récupération des commandes de laboratoire en attente...", "PENDING_LAB_ORDERS_TEXT": "Commandes de laboratoire en attente", "RECORD_CLINICAL_CONCLUSION_KEY": "Cliquez pour enregistrer la conclusion clinique", - "REPORT_CONCLUSION_KEY ": "Conclusion du rapport", + "REPORT_CONCLUSION_KEY": "Conclusión del informe", + "REPORT_DATE_LABEL": "Date du rapport", "REPORTS_ANDLAB_TESTS_FETCH_ERROR": "Une erreur s'est produite lors de la récupération des tables de rapport ou des tests de laboratoire...", - "REPORTS_TABLE_TEXT": "Tableau des rapports", - "REQUESTED_BY": "Demandé par", - "SAVE_AND_UPLOAD_LABEL": "Enregistrer et télécharger", - "SEARCH_LABEL": "Rechercher", - "SEARCH_TEST_PLACEHOLDER": "Rechercher par nom de test de laboratoire", - "SELECT_ANSWER": "Sélectionner une réponse" , - "SELECT_DOCTOR": " Sélectionnez un médecin", - "SELECT_TESTS_LABEL": "Sélectionner les tests", - "SELECTED_TESTS_LABEL": "Tests sélectionnés", + "REPORTS_TABLE_TEXT": "Tableau des rapports", + "REQUESTED_BY": "Demandé par", + "SAVE_AND_UPLOAD_LABEL": "Enregistrer et télécharger", + "SEARCH_LABEL": "Rechercher", + "SEARCH_TEST_PLACEHOLDER": "Rechercher par nom de test de laboratoire", + "SELECT_ANSWER": "Sélectionner une réponse", + "SELECT_DOCTOR": " Sélectionnez un médecin", + "SELECT_TESTS_LABEL": "Sélectionner les tests", + "SELECTED_TESTS_LABEL": "Tests sélectionnés", "UPLOAD_REPORT_TEXT": "Télécharger le rapport", - "REPORT_DATE_LABEL": "Date du rapport", - "REPORT_CONCLUSION_KEY": "Conclusión del informe", - "DATE_LABEL": "Date", - "TEST_LABEL": "Test", - "ORDERED_BY_LABEL": "Commandé par", - "ORDER_NOTES_LABEL": "Notes de commande", "TESTS_LABEL": "Tests", + "TEST_LABEL": "Test", "FILE_LABEL": "Fichier", - "REQUESTER_LABEL": "Demandeur" + "REQUESTER_LABEL": "Demandeur", + "ORDERED_BY_LABEL": "Ordonné par", + "ORDER_NOTES_LABEL": "Notes de commande", + "DATE_LABEL": "Date" } diff --git a/translations/it.json b/translations/it.json index 2dcd513..dc3d746 100644 --- a/translations/it.json +++ b/translations/it.json @@ -23,6 +23,7 @@ "loading": "Caricamento", "LOGO_ALT_TEXT": "Logo Bahmni", "MAX_FILE_SIZE_MESSAGE": "Dimensione massima consentita per il file: 5 MB", + "NO_MATCHING_TEXT_FOUND": "Nessun test corrispondente trovato", "NO_REPORTS_FOUND_TEXT": "Nessun report precedente trovato per questo paziente", "NO_TEST_SELECTED": "Non hai selezionato alcun test", "PANEL_LABEL": "Pannello", @@ -30,6 +31,7 @@ "PENDING_LAB_ORDERS_TEXT": "Ordini di laboratorio in sospeso", "RECORD_CLINICAL_CONCLUSION_KEY": "Fai clic per registrare la conclusione clinica", "REPORT_CONCLUSION_KEY": "Conclusione del report", + "REPORT_DATE_LABEL": "Data del report", "REPORTS_ANDLAB_TESTS_FETCH_ERROR": "Si è verificato un problema durante il recupero delle tabelle dei report o dei test di laboratorio...", "REPORTS_TABLE_TEXT": "Tabella dei report", "REQUESTED_BY": "Richiesto da", @@ -40,13 +42,5 @@ "SELECT_DOCTOR": "Seleziona un medico", "SELECT_TESTS_LABEL": "Seleziona test", "SELECTED_TESTS_LABEL": "Test selezionati", - "UPLOAD_REPORT_TEXT": "Carica report", - "REPORT_DATE_LABEL": "Data del report", - "DATE_LABEL": "Data", - "TEST_LABEL": "Test", - "ORDERED_BY_LABEL": "Ordinato da", - "ORDER_NOTES_LABEL": "Note sull'ordine", - "TESTS_LABEL": "Test", - "FILE_LABEL": "File", - "REQUESTER_LABEL": "Richiedente" + "UPLOAD_REPORT_TEXT": "Carica report" } diff --git a/translations/pt_BR.json b/translations/pt_BR.json index f3b0f7d..6fd79f6 100644 --- a/translations/pt_BR.json +++ b/translations/pt_BR.json @@ -23,6 +23,7 @@ "loading": "Carregando", "LOGO_ALT_TEXT": "Logotipo Bahmni", "MAX_FILE_SIZE_MESSAGE": "Tamanho máximo de ficheiro permitido: 5MB", + "NO_MATCHING_TEXT_FOUND": "Nenhum teste correspondente encontrado", "NO_REPORTS_FOUND_TEXT": "Não foi encontrado nenhum relatório anterior para este doente", "NO_TEST_SELECTED": "Não selecionou nenhum teste", "PANEL_LABEL": "Painel", @@ -30,6 +31,7 @@ "PENDING_LAB_ORDERS_TEXT": "Pedidos de laboratório pendentes", "RECORD_CLINICAL_CONCLUSION_KEY": "Clique para registar a conclusão clínica", "REPORT_CONCLUSION_KEY": "Conclusão do Relatório", + "REPORT_DATE_LABEL": "Data do relatório", "REPORTS_ANDLAB_TESTS_FETCH_ERROR": "Algo correu mal ao procurar tabelas de relatórios ou testes laboratoriais...", "REPORTS_TABLE_TEXT": "Tabela de relatórios", "REQUESTED_BY": "Solicitado por", @@ -40,13 +42,5 @@ "SELECT_DOCTOR": "Selecione um médico", "SELECT_TESTS_LABEL": "Selecionar testes", "SELECTED_TESTS_LABEL": "Testes selecionados", - "UPLOAD_REPORT_TEXT": "Carregar relatório", - "REPORT_DATE_LABEL": "Data do relatório", - "DATE_LABEL": "Data", - "TEST_LABEL": "Teste", - "ORDERED_BY_LABEL": "Ordenado por", - "ORDER_NOTES_LABEL": "Notas de encomenda", - "TESTS_LABEL": "Testes", - "FILE_LABEL": "Ficheiro", - "REQUESTER_LABEL": "Solicitante" + "UPLOAD_REPORT_TEXT": "Carregar relatório" }