Skip to content

Commit b694f6d

Browse files
migration of filter translations (#559)
Signed-off-by: Mathieu DEHARBE <[email protected]>
1 parent 29632a5 commit b694f6d

14 files changed

+227
-0
lines changed

demo/src/app.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ import {
5353
filter_fr,
5454
filter_expert_en,
5555
filter_expert_fr,
56+
description_en,
57+
description_fr,
58+
equipments_en,
59+
equipments_fr,
60+
csv_en,
61+
csv_fr,
5662
flat_parameters_en,
5763
flat_parameters_fr,
5864
login_en,
@@ -117,6 +123,9 @@ const messages = {
117123
...equipment_search_en,
118124
...filter_en,
119125
...filter_expert_en,
126+
...description_en,
127+
...equipments_en,
128+
...csv_en,
120129
...card_error_boundary_en,
121130
...flat_parameters_en,
122131
...multiple_selection_dialog_en,
@@ -132,6 +141,9 @@ const messages = {
132141
...element_search_fr,
133142
...equipment_search_fr,
134143
...filter_fr,
144+
...description_fr,
145+
...equipments_fr,
146+
...csv_fr,
135147
...filter_expert_fr,
136148
...card_error_boundary_fr,
137149
...flat_parameters_fr,

src/components/translations/common-button-en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
const commonButtonEn = {
99
cancel: 'Cancel',
1010
validate: 'Validate',
11+
'button.changeType': 'Change',
12+
'button.changeOperator': 'Change',
1113
};
1214

1315
export default commonButtonEn;

src/components/translations/common-button-fr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
const commonButtonFr = {
99
cancel: 'Annuler',
1010
validate: 'Valider',
11+
'button.changeType': 'Modifier',
12+
'button.changeOperator': 'Modifier',
1113
};
1214

1315
export default commonButtonFr;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const csvEn = {
9+
ImportCSV: 'Import CSV',
10+
noDataInCsvFile: 'No data found in this file',
11+
wrongCsvHeadersError:
12+
'This CSV file has the wrong headers. Use Generate CSV Skeleton button to get supported CSV format',
13+
keepCSVDataMessage: 'Do you want to replace or add the new data to the current list ?',
14+
GenerateCSV: 'Generate CSV skeleton',
15+
UploadCSV: 'Upload CSV',
16+
uploadMessage: ' No file selected',
17+
};
18+
19+
export default csvEn;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const csvFr = {
9+
ImportCSV: 'Import CSV',
10+
noDataInCsvFile: 'Aucune donnée trouvée dans ce fichier',
11+
wrongCsvHeadersError:
12+
'Les en-têtes du fichier CSV sont incorrects. Utilisez le bouton Générer le squelette CSV pour obtenir le format CSV pris en charge',
13+
keepCSVDataMessage: 'Voulez-vous remplacer la liste existante ou y ajouter les nouvelles données ?',
14+
GenerateCSV: 'Générer le squelette CSV',
15+
UploadCSV: 'Télécharger le CSV',
16+
uploadMessage: ' Aucun fichier sélectionné',
17+
};
18+
19+
export default csvFr;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const descriptionEn = {
9+
description: 'Description',
10+
descriptionProperty: 'Description (optional)',
11+
descriptionModificationError: 'An error occurred while editing the description',
12+
descriptionLimitError: 'Description exceeds character limit',
13+
};
14+
15+
export default descriptionEn;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const descriptionFr = {
9+
description: 'Description',
10+
descriptionProperty: 'Description (optionnel)',
11+
descriptionModificationError: 'Erreur lors de la modification de la description',
12+
descriptionLimitError: 'La description dépasse la limite de caractères',
13+
};
14+
15+
export default descriptionFr;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const equipmentsEn = {
9+
Substations: 'Substations',
10+
VoltageLevels: 'Voltage levels',
11+
Lines: 'Lines',
12+
TwoWindingsTransformers: 'Two windings transformers',
13+
ThreeWindingsTransformers: 'Three windings transformers',
14+
Generators: 'Generators',
15+
Loads: 'Loads',
16+
Batteries: 'Batteries',
17+
ShuntCompensators: 'Shunt compensators',
18+
Hydro: 'Hydro',
19+
Nuclear: 'Nuclear',
20+
Wind: 'Wind',
21+
Thermal: 'Thermal',
22+
Solar: 'Solar',
23+
Other: 'Other',
24+
LccConverterStations: 'LCC converter stations',
25+
VscConverterStations: 'VSC converter stations',
26+
StaticVarCompensators: 'Static var compensators',
27+
};
28+
29+
export default equipmentsEn;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright (c) 2024, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
const equipmentsFr = {
9+
Substations: 'Sites',
10+
VoltageLevels: 'Postes',
11+
Lines: 'Lignes',
12+
TwoWindingsTransformers: 'Transfos à 2 enroulements',
13+
ThreeWindingsTransformers: 'Transfos à 3 enroulements',
14+
Generators: 'Groupes',
15+
Loads: 'Consommations',
16+
Batteries: 'Batteries',
17+
ShuntCompensators: 'Moyens de compensation',
18+
Hydro: 'Hydraulique',
19+
Nuclear: 'Nucléaire',
20+
Wind: 'Eolien',
21+
Thermal: 'Thermique',
22+
Solar: 'Solaire',
23+
Other: 'Autre',
24+
LccConverterStations: 'Stations de conversion LCC',
25+
VscConverterStations: 'Stations de conversion VSC',
26+
StaticVarCompensators: 'CSPR',
27+
};
28+
29+
export default equipmentsFr;

src/components/translations/filter-en.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,35 @@ const filterEn = {
2626
betweenRule: "Left value of 'between' rule have to be lower than the right value",
2727
emptyGroup: 'Filter contains an empty group. Consider removing it or adding rules to this group',
2828
Hvdc: 'HVDC',
29+
'filter.criteriaBased': 'Criteria based',
30+
'filter.expert': 'Expert',
31+
'filter.explicitNaming': 'Explicit naming',
32+
nameEmpty: 'The name is empty',
33+
equipmentType: 'Equipment type',
34+
changeTypeMessage: 'The equipment type will be changed and the current configuration will be erased.',
35+
PropertyValues: 'Property values',
36+
PropertyValues1: 'Property values 1',
37+
PropertyValues2: 'Property values 2',
38+
FreePropsCrit: 'By properties filtering',
39+
AddFreePropCrit: 'Add a filtering by property',
40+
FreeProps: 'Equipment properties',
41+
SubstationFreeProps: 'Equipment substation properties',
42+
YupRequired: 'This field is required',
43+
filterPropertiesNameUniquenessError: 'It is not possible to add multiple filters for the same property',
44+
emptyFilterError: 'Filter should contain at least one equipment',
45+
distributionKeyWithMissingIdError: 'Missing ID with defined distribution key',
46+
missingDistributionKeyError: 'Missing distribution key',
47+
filterCsvFileName: 'filterCreation',
48+
createNewFilter: 'Create a filter',
49+
nameProperty: 'Name',
50+
Countries: 'Countries',
51+
Countries1: 'Countries 1',
52+
Countries2: 'Countries 2',
53+
nominalVoltage: 'Nominal voltage',
54+
EnergySourceText: 'Energy source',
55+
nameAlreadyUsed: 'This name is already used',
56+
nameValidityCheckErrorMsg: 'Error while checking name validity',
57+
cantSubmitWhileValidating: 'Impossible to submit the form while validating a field',
2958
};
3059

3160
export default filterEn;

0 commit comments

Comments
 (0)