Skip to content

Commit df82b9e

Browse files
committed
fix interface and import order
1 parent 97eb1c9 commit df82b9e

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

apps/back-office/src/app/components/synchronize-kobo-modal/synchronize-kobo-modal.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import {
2222
import { DIALOG_DATA } from '@angular/cdk/dialog';
2323
import { Apollo } from 'apollo-angular';
2424
import { takeUntil } from 'rxjs';
25+
import {
26+
ADD_RECORDS_FROM_KOBO,
27+
EDIT_FORM_KOBO_PREFERENCES,
28+
} from './graphql/mutations';
2529

2630
/** Form and kobo information Dialog Data */
2731
interface DialogData {
@@ -31,10 +35,6 @@ interface DialogData {
3135
apiConfiguration: ApiConfiguration;
3236
form: { id: string; name: string };
3337
}
34-
import {
35-
ADD_RECORDS_FROM_KOBO,
36-
EDIT_FORM_KOBO_PREFERENCES,
37-
} from './graphql/mutations';
3838

3939
/**
4040
* Synchronize kobo form data (modal, import data submissions from kobo)

libs/shared/src/i18n/en.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@
340340
"objectNotCreated": "The {{type}} was not created. {{error}}",
341341
"objectNotDeleted": "{{value}} deletion failed. {{error}}",
342342
"objectNotDuplicated": "The {{type}} was not duplicated. {{error}}",
343+
"objectNotEdited": "{{type}} not edited. {{error}}",
343344
"objectNotFound": "{{name}} not found.",
344345
"objectNotInvited": "{{name}} invitation failed.",
345346
"objectNotReordered": "{{type}} not reordered. {{error}}",
346-
"objectNotEdited": "{{type}} not edited. {{error}}",
347347
"objectNotRestored": "{{value}} not restored. {{error}}",
348348
"objectNotUpdated": "{{type}} not edited. {{error}}",
349349
"objectReordered": "{{type}} reordered.",
@@ -838,18 +838,18 @@
838838
"apiConfiguration": {
839839
"placeholder": "Select an api configuration"
840840
},
841-
"label": "KoboToolbox form id",
842-
"placeholder": "Enter a KoboToolbox form id",
843841
"data": {
844-
"synchronize": "Synchronize kobo data",
845-
"start": "Start synchronization",
846842
"fromFormWithVersion": "The form '{{formName}}' was created from the original Kobotoolbox form with the deploy version id {{versionId}}",
847-
"syncOnlyFromDeployedVersion": "Synchronize data submissions only from the same form deploy version",
848843
"nothingToSynchronize": "No data found for synchronization",
844+
"start": "Start synchronization",
845+
"syncOnlyFromDeployedVersion": "Synchronize data submissions only from the same form deploy version",
846+
"synchronize": "Synchronize kobo data",
849847
"tooltip": {
850848
"syncOnlyFromDeployedVersion": "Only data submissions sent when the form was in the same version as when it was imported will be used to create records. Data submissions registered in earlier or later versions will be disregarded."
851849
}
852-
}
850+
},
851+
"label": "KoboToolbox form id",
852+
"placeholder": "Enter a KoboToolbox form id"
853853
},
854854
"template": {
855855
"from": "From template",

libs/shared/src/i18n/fr.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@
340340
"objectNotCreated": "L'objet de type {{type}} n'a pas pu être créé. {{error}}",
341341
"objectNotDeleted": "L'objet {{value}} n'a pas pu être supprimé. {{error}}",
342342
"objectNotDuplicated": "L'objet de type {{type}} n'a pas pu être dupliqué. {{error}}",
343+
"objectNotEdited": "{{type}} not modifié. {{error}}",
343344
"objectNotFound": "{{name}} n'a pas été trouvé.",
344345
"objectNotInvited": "L'invitation vers {{name}} a échoué.",
345346
"objectNotReordered": "{{type}} non réorganisé. {{error}}",
346-
"objectNotEdited": "{{type}} not modifié. {{error}}",
347347
"objectNotRestored": "{{value}} non restauré. {{error}}",
348348
"objectNotUpdated": "L'objet de type {{type}} n'a pas pu être modifié. {{error}}",
349349
"objectReordered": "L'objet de type {{type}} a été réorganisé.",
@@ -849,18 +849,18 @@
849849
"apiConfiguration": {
850850
"placeholder": "Sélectionnez une configuration d'api"
851851
},
852-
"label": "Identifiant du formulaire KoboToolbox",
853-
"placeholder": "Entrez l'identifiant du formulaire KoboToolbox",
854852
"data": {
855-
"synchronize": "Synchroniser les données Kobo",
856-
"start": "Démarrer la synchronisation",
857853
"fromFormWithVersion": "Le formulaire '{{formName}}' a été créé à partir du formulaire Kobotoolbox d'origine avec l'ID de version de déploiement {{versionId}}",
858-
"syncOnlyFromDeployedVersion": "Synchronisez les soumissions de données uniquement à partir de la même version de déploiement du formulaire",
859854
"nothingToSynchronize": "Aucune donnée trouvée pour la synchronisation",
855+
"start": "Démarrer la synchronisation",
856+
"syncOnlyFromDeployedVersion": "Synchronisez les soumissions de données uniquement à partir de la même version de déploiement du formulaire",
857+
"synchronize": "Synchroniser les données Kobo",
860858
"tooltip": {
861859
"syncOnlyFromDeployedVersion": "Seules les soumissions de données envoyées lorsque le formulaire était dans la même version que lors de son importation seront utilisées pour créer des enregistrements. Les soumissions de données enregistrées dans des versions antérieures ou ultérieures seront ignorées."
862860
}
863-
}
861+
},
862+
"label": "Identifiant du formulaire KoboToolbox",
863+
"placeholder": "Entrez l'identifiant du formulaire KoboToolbox"
864864
},
865865
"template": {
866866
"from": "Depuis le modèle",

libs/shared/src/i18n/test.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@
340340
"objectNotCreated": "****** {{type}} ****** {{error}}",
341341
"objectNotDeleted": "{{value}} ****** {{error}}",
342342
"objectNotDuplicated": "****** {{type}} ****** {{error}}",
343+
"objectNotEdited": "{{type}} ****** {{error}}",
343344
"objectNotFound": "{{name}} ******",
344345
"objectNotInvited": "{{name}} ******",
345346
"objectNotReordered": "{{type}} ****** {{error}}",
@@ -837,6 +838,16 @@
837838
"apiConfiguration": {
838839
"placeholder": "******"
839840
},
841+
"data": {
842+
"fromFormWithVersion": "****** {{formName}} ****** {{versionId}}",
843+
"nothingToSynchronize": "******",
844+
"start": "******",
845+
"syncOnlyFromDeployedVersion": "******",
846+
"synchronize": "******",
847+
"tooltip": {
848+
"syncOnlyFromDeployedVersion": "******"
849+
}
850+
},
840851
"label": "******",
841852
"placeholder": "******"
842853
},

0 commit comments

Comments
 (0)