Skip to content
Open
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
27 changes: 25 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2025-11-19T17:15:26.356Z\n"
"PO-Revision-Date: 2025-11-19T17:15:26.356Z\n"
"POT-Creation-Date: 2026-06-30T17:31:02.698Z\n"
"PO-Revision-Date: 2026-06-30T17:31:02.699Z\n"

msgid "Events - Create/update"
msgstr ""
Expand Down Expand Up @@ -97,6 +97,29 @@ msgstr ""
msgid "Tracker Program"
msgstr ""

msgid "cell {{ref}}"
msgstr ""

msgid "cells {{refs}}"
msgstr ""

msgid "row {{ref}}"
msgstr ""

msgid "rows {{refs}}"
msgstr ""

msgid "and {{count}} more"
msgid_plural "and {{count}} more"
msgstr[0] ""
msgstr[1] ""

msgid "sheet {{sheet}}, {{lines}}"
msgstr ""

msgid "Found in {{locations}} of the Excel file"
msgstr ""

msgid "Cannot read data form id"
msgstr ""

Expand Down
53 changes: 45 additions & 8 deletions i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Bulk Load\n"
"POT-Creation-Date: 2025-11-19T17:15:26.356Z\n"
"POT-Creation-Date: 2026-06-30T17:31:02.698Z\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -109,6 +109,30 @@ msgstr "Programa de eventos"
msgid "Tracker Program"
msgstr "Programa de tracker"

msgid "cell {{ref}}"
msgstr ""

msgid "cells {{refs}}"
msgstr ""

msgid "row {{ref}}"
msgstr ""

msgid "rows {{refs}}"
msgstr ""

#, fuzzy
msgid "and {{count}} more"
msgid_plural "and {{count}} more"
msgstr[0] "Borrar {{count}} temas"
msgstr[1] ""

msgid "sheet {{sheet}}, {{lines}}"
msgstr ""

msgid "Found in {{locations}} of the Excel file"
msgstr ""

msgid "Cannot read data form id"
msgstr "No se pueden leer los datos del formulario id"

Expand Down Expand Up @@ -1031,7 +1055,9 @@ msgid "Synchronization Results"
msgstr "Resultados de la sincronización"

msgid "Selected template has unsupported period type: {{periodType}}"
msgstr "La plantilla seleccionada tiene el tipo de período no soportado: {{periodType}}"
msgstr ""
"La plantilla seleccionada tiene el tipo de período no soportado: "
"{{periodType}}"

msgid "Select organisation unit to populate data"
msgstr "Seleccione la unidad de organización para rellenar los datos"
Expand Down Expand Up @@ -1330,9 +1356,9 @@ msgid ""
"Samaritan’s Purse, Medecins Sans Frontières (MSF), the the Norwegian Refugee "
"Council (NRC) and the Clinton Health Access Initiative (CHAI) to support "
"countries in strengthening the collection and use of health data by using "
"DHIS2. The application has been developed by [EyeSeeTea SL](http://eyeseetea."
"com). Source code, documentation and release notes can be found at the "
"[EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"DHIS2. The application has been developed by [EyeSeeTea SL](http://"
"eyeseetea.com). Source code, documentation and release notes can be found at "
"the [EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"blessed/)."
msgstr ""

Expand Down Expand Up @@ -1427,19 +1453,30 @@ msgid ""
"All data values in the spreadsheet will be imported to the system, but any "
"data that was existing for such organisation unit and periods in the system "
"will be deleted first, so none will be kept before doing the import."
msgstr "Todos los valores de la hoja de cálculo se importarán al sistema, pero cualquier dato existente para dicha unidad organizativa y periodos se eliminará primero, por lo que no se conservará nada antes de realizar la importación."
msgstr ""
"Todos los valores de la hoja de cálculo se importarán al sistema, pero "
"cualquier dato existente para dicha unidad organizativa y periodos se "
"eliminará primero, por lo que no se conservará nada antes de realizar la "
"importación."

msgid ""
"Import only new data values, without updating nor deleting any existing one. "
"Only values in the spreadsheet that do not currently exist in the system "
"will be imported"
msgstr "Importar solo valores de datos nuevos, sin actualizar ni eliminar los existentes. Solo se importarán los valores de la hoja de cálculo que no existan actualmente en el sistema."
msgstr ""
"Importar solo valores de datos nuevos, sin actualizar ni eliminar los "
"existentes. Solo se importarán los valores de la hoja de cálculo que no "
"existan actualmente en el sistema."

msgid ""
"Import new data values and also update existing ones. All data values in the "
"spreadsheet will be imported to the system, but other data values present in "
"the system that are not provided in the spreadsheet will be kept."
msgstr "Importar nuevos valores de datos y actualizar los existentes. Todos los valores de la hoja de cálculo se importarán al sistema, pero se mantendrán los demás valores presentes en el sistema que no figuren en la hoja de cálculo."
msgstr ""
"Importar nuevos valores de datos y actualizar los existentes. Todos los "
"valores de la hoja de cálculo se importarán al sistema, pero se mantendrán "
"los demás valores presentes en el sistema que no figuren en la hoja de "
"cálculo."

msgid "Warning: Your upload may result in the generation of duplicates"
msgstr "Alerta: Su importación puede generar duplicados"
Expand Down
54 changes: 41 additions & 13 deletions i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Bulk Load App\n"
"POT-Creation-Date: 2025-11-19T17:15:26.356Z\n"
"POT-Creation-Date: 2026-06-30T17:31:02.698Z\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -103,6 +103,30 @@ msgstr "Programme"
msgid "Tracker Program"
msgstr "Programme"

msgid "cell {{ref}}"
msgstr ""

msgid "cells {{refs}}"
msgstr ""

msgid "row {{ref}}"
msgstr ""

msgid "rows {{refs}}"
msgstr ""

#, fuzzy
msgid "and {{count}} more"
msgid_plural "and {{count}} more"
msgstr[0] "Supprimer {{count}} thèmes"
msgstr[1] ""

msgid "sheet {{sheet}}, {{lines}}"
msgstr ""

msgid "Found in {{locations}} of the Excel file"
msgstr ""

msgid "Cannot read data form id"
msgstr ""

Expand Down Expand Up @@ -1050,7 +1074,8 @@ msgid "Synchronization Results"
msgstr ""

msgid "Selected template has unsupported period type: {{periodType}}"
msgstr "Modèle sélectionné avec un type de période non supporté: {{periodType}}"
msgstr ""
"Modèle sélectionné avec un type de période non supporté: {{periodType}}"

msgid "Select organisation unit to populate data"
msgstr ""
Expand Down Expand Up @@ -1349,9 +1374,9 @@ msgid ""
"Samaritan’s Purse, Medecins Sans Frontières (MSF), the the Norwegian Refugee "
"Council (NRC) and the Clinton Health Access Initiative (CHAI) to support "
"countries in strengthening the collection and use of health data by using "
"DHIS2. The application has been developed by [EyeSeeTea SL](http://eyeseetea."
"com). Source code, documentation and release notes can be found at the "
"[EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"DHIS2. The application has been developed by [EyeSeeTea SL](http://"
"eyeseetea.com). Source code, documentation and release notes can be found at "
"the [EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"blessed/)."
msgstr ""

Expand Down Expand Up @@ -1450,26 +1475,29 @@ msgid ""
"data that was existing for such organisation unit and periods in the system "
"will be deleted first, so none will be kept before doing the import."
msgstr ""
"Toutes les données de la feuille de calcul seront importées dans le système,"
"mais les données existantes pour ces unités d'organisation et ces périodes seront d'abord supprimées"
"; aucune donnée existante ne sera donc conservée avant l'importation."
"Toutes les données de la feuille de calcul seront importées dans le "
"système,mais les données existantes pour ces unités d'organisation et ces "
"périodes seront d'abord supprimées; aucune donnée existante ne sera donc "
"conservée avant l'importation."

msgid ""
"Import only new data values, without updating nor deleting any existing one. "
"Only values in the spreadsheet that do not currently exist in the system "
"will be imported"
msgstr ""
"Importer uniquement les nouvelles valeurs, sans mettre à jour ni supprimer les données existantes."
"Seules les valeurs de la feuille de calcul qui n'existent pas encore dans le système seront importées."
"Importer uniquement les nouvelles valeurs, sans mettre à jour ni supprimer "
"les données existantes.Seules les valeurs de la feuille de calcul qui "
"n'existent pas encore dans le système seront importées."

msgid ""
"Import new data values and also update existing ones. All data values in the "
"spreadsheet will be imported to the system, but other data values present in "
"the system that are not provided in the spreadsheet will be kept."
msgstr ""
"Importer les nouvelles valeurs et mettre à jour les valeurs existantes."
"Toutes les données de la feuille de calcul seront importées,"
"mais les autres valeurs présentes dans le système et absentes de la feuille de calcul seront conservées."
"Importer les nouvelles valeurs et mettre à jour les valeurs "
"existantes.Toutes les données de la feuille de calcul seront importées,mais "
"les autres valeurs présentes dans le système et absentes de la feuille de "
"calcul seront conservées."

msgid "Warning: Your upload may result in the generation of duplicates"
msgstr ""
Expand Down
32 changes: 28 additions & 4 deletions i18n/pt.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Bulk Load\n"
"POT-Creation-Date: 2025-11-19T17:15:26.356Z\n"
"POT-Creation-Date: 2026-06-30T17:31:02.698Z\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -111,6 +111,30 @@ msgstr "Programa"
msgid "Tracker Program"
msgstr "Programa"

msgid "cell {{ref}}"
msgstr ""

msgid "cells {{refs}}"
msgstr ""

msgid "row {{ref}}"
msgstr ""

msgid "rows {{refs}}"
msgstr ""

#, fuzzy
msgid "and {{count}} more"
msgid_plural "and {{count}} more"
msgstr[0] "Excluir {{count}} temas"
msgstr[1] ""

msgid "sheet {{sheet}}, {{lines}}"
msgstr ""

msgid "Found in {{locations}} of the Excel file"
msgstr ""

msgid "Cannot read data form id"
msgstr "Não é possível ler os dados do formulário de identificação"

Expand Down Expand Up @@ -1385,9 +1409,9 @@ msgid ""
"Samaritan’s Purse, Medecins Sans Frontières (MSF), the the Norwegian Refugee "
"Council (NRC) and the Clinton Health Access Initiative (CHAI) to support "
"countries in strengthening the collection and use of health data by using "
"DHIS2. The application has been developed by [EyeSeeTea SL](http://eyeseetea."
"com). Source code, documentation and release notes can be found at the "
"[EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"DHIS2. The application has been developed by [EyeSeeTea SL](http://"
"eyeseetea.com). Source code, documentation and release notes can be found at "
"the [EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"blessed/)."
msgstr ""

Expand Down
34 changes: 30 additions & 4 deletions i18n/ru.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Bulk Load\n"
"POT-Creation-Date: 2025-11-19T17:15:26.356Z\n"
"POT-Creation-Date: 2026-06-30T17:31:02.698Z\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -113,6 +113,32 @@ msgstr "Программа"
msgid "Tracker Program"
msgstr "Программа"

msgid "cell {{ref}}"
msgstr ""

msgid "cells {{refs}}"
msgstr ""

msgid "row {{ref}}"
msgstr ""

msgid "rows {{refs}}"
msgstr ""

#, fuzzy
msgid "and {{count}} more"
msgid_plural "and {{count}} more"
msgstr[0] "Удалить {{count}} темы"
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""

msgid "sheet {{sheet}}, {{lines}}"
msgstr ""

msgid "Found in {{locations}} of the Excel file"
msgstr ""

msgid "Cannot read data form id"
msgstr "Невозможно прочитать данные формы id"

Expand Down Expand Up @@ -1390,9 +1416,9 @@ msgid ""
"Samaritan’s Purse, Medecins Sans Frontières (MSF), the the Norwegian Refugee "
"Council (NRC) and the Clinton Health Access Initiative (CHAI) to support "
"countries in strengthening the collection and use of health data by using "
"DHIS2. The application has been developed by [EyeSeeTea SL](http://eyeseetea."
"com). Source code, documentation and release notes can be found at the "
"[EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"DHIS2. The application has been developed by [EyeSeeTea SL](http://"
"eyeseetea.com). Source code, documentation and release notes can be found at "
"the [EyeSeetea GitHub Project Page](https://eyeseetea.github.io/Bulk-Load-"
"blessed/)."
msgstr ""

Expand Down
8 changes: 7 additions & 1 deletion src/data/Dhis2Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import { SynchronizationResult } from "../domain/entities/SynchronizationResult"
import i18n from "../utils/i18n";
import { promiseMap } from "../utils/promises";
import { ImportPostResponse, postImport } from "./Dhis2Import";
import { ImportRowLookup } from "../domain/entities/ImportRowLookup";

export async function postEvents(api: D2Api, events: Event[]): Promise<SynchronizationResult[]> {
export async function postEvents(
api: D2Api,
events: Event[],
rowLookup?: ImportRowLookup
): Promise<SynchronizationResult[]> {
return promiseMap(_.chunk(events, 200), eventsToSave => {
return postImport(
api,
Expand All @@ -15,6 +20,7 @@ export async function postEvents(api: D2Api, events: Event[]): Promise<Synchroni
title: i18n.t("Events - Create/update"),
model: i18n.t("Event"),
splitStatsList: true,
rowLookup,
}
);
});
Expand Down
Loading
Loading