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

Adds translation of form #237

Merged
merged 56 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d98f970
Traduction des élections
Khadija21102 Nov 5, 2022
e168e0e
Traduction élection
Khadija21102 Nov 5, 2022
cea5f48
Traduction election
Khadija21102 Nov 5, 2022
5a3e789
Merge branch 'main' of https://github.com/dedis/d-voting into tagemou…
Khadija21102 Nov 6, 2022
347735e
Resolve conflicts with main
Khadija21102 Nov 13, 2022
c55d0c0
affichage du sondage dans la bonne langue
Khadija21102 Nov 13, 2022
e5689ef
Parse subjects part1
Khadija21102 Nov 24, 2022
5f1a327
choices changes to map
Khadija21102 Nov 30, 2022
d3eb5a7
Merge branch 'main' of https://github.com/dedis/d-voting into tagemou…
Khadija21102 Nov 30, 2022
8590b8c
merge node modules changes
Khadija21102 Nov 30, 2022
3a0e213
Try to modularize, marshall and unmarshall subject, add the ability t…
Khadija21102 Dec 11, 2022
3570041
Add languages to Hint and try to fix the bug of the map
Khadija21102 Dec 19, 2022
fbf1110
nul
Khadija21102 Dec 20, 2022
f6b2883
add strict mode to some files
Khadija21102 Dec 21, 2022
22c3b7e
Resolve warnings
Khadija21102 Dec 21, 2022
6f89b79
Updates mockData.ts
Khadija21102 Dec 21, 2022
cb89c35
Merge branch 'main' of https://github.com/dedis/d-voting into tagemou…
Khadija21102 Dec 22, 2022
71e1050
Pull from main and resolve conflicts
Khadija21102 Dec 22, 2022
5e03863
Linting and a minor change to the server file
Khadija21102 Dec 23, 2022
023e17b
Merge branch 'main' into tagemoua-patch1
nkcr Dec 23, 2022
c351897
Fixes choices map deserialization and display
nkcr Dec 23, 2022
af2ec14
Display the GroupedResult correctly
Khadija21102 Dec 25, 2022
f4473e7
display correctly the IndividualResult page and resolve the bug of th…
Khadija21102 Dec 26, 2022
c29902d
Resolve some translation and linting issues
Khadija21102 Dec 29, 2022
839a37b
Linting
Khadija21102 Dec 29, 2022
47b53f8
Linting
Khadija21102 Dec 29, 2022
ff27921
Re-commit
Khadija21102 Dec 29, 2022
620caba
some minor language changes and parse the hint
Khadija21102 Jan 3, 2023
6784acb
minor changes on a translation
Khadija21102 Jan 4, 2023
0b966a6
resolve some problems with the mocks
Khadija21102 Jan 9, 2023
61ec465
Delete .package-lock.json
Khadija21102 Jan 12, 2023
89f2eb5
Delete package.json
Khadija21102 Jan 12, 2023
e3ec4d0
Some translation changes and delete node_modules
Khadija21102 Jan 12, 2023
eb9d035
Merge branch 'tagemoua-patch1' of https://github.com/dedis/d-voting i…
Khadija21102 Jan 12, 2023
59b0461
Try to remove node_modules
Khadija21102 Jan 12, 2023
0df53de
delete node modules
Khadija21102 Jan 12, 2023
4ecc5cb
improve error handling
Khadija21102 Jan 12, 2023
a09d523
Improve code quality
Khadija21102 Jan 13, 2023
1262499
Improve error handling
Khadija21102 Jan 13, 2023
d3108fe
Handle some errors that happends when we run the frontend only
Khadija21102 Jan 15, 2023
7d77b07
Create package-lock.json
Khadija21102 Jan 16, 2023
feeb100
Delete package-lock.json
Khadija21102 Jan 16, 2023
2493c3c
Update package.json
Khadija21102 Jan 16, 2023
5e1f7be
revert pacjage-lock.json
Khadija21102 Jan 16, 2023
6a2e3f4
revert package-lock.json and package.json to previous version
Khadija21102 Jan 16, 2023
4e88fbc
Merge branch 'tagemoua-patch1' of https://github.com/dedis/d-voting i…
Khadija21102 Jan 16, 2023
2317411
Formating and resolving some errors
Khadija21102 Jan 16, 2023
7809b33
Merge branch 'main' into tagemoua-patch1
Khadija21102 Jan 18, 2023
e9f634b
linting
Khadija21102 Jan 18, 2023
03387be
Merge branch 'main' into tagemoua-patch1
Khadija21102 Jan 18, 2023
da7521c
linting
Khadija21102 Jan 18, 2023
38f0846
Merge branch 'tagemoua-patch1' of https://github.com/dedis/d-voting i…
Khadija21102 Jan 18, 2023
4d590ad
linting
Khadija21102 Jan 18, 2023
385e704
modularize isJson function
Khadija21102 Jan 18, 2023
05d188f
linnting
Khadija21102 Jan 18, 2023
a47107b
modularize
Khadija21102 Jan 18, 2023
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
1 change: 1 addition & 0 deletions web/frontend/src/components/buttons/HintButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const HintButton: FC<HintButtonProps> = ({ text }) => {
};

return (
text !== undefined &&
text.length !== 0 && (
<Popover className="relative ">
{({ open }) => {
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/components/utils/ElectionFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useFillLightFormInfo } from './FillFormInfo';
* @returns the fields of a form and a function to change the status field
*/
const FormFields = (formData: LightFormInfo) => {
const { title, id, status, pubKey, setStatus } = useFillLightFormInfo(formData);
const { title, titleFr, titleDe, id, status, pubKey, setStatus } = useFillLightFormInfo(formData);
return { title, id, status, pubKey, setStatus };
};

Expand Down
33 changes: 20 additions & 13 deletions web/frontend/src/components/utils/FillFormInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@ const useFillFormInfo = (formData: FormInfo) => {
const [isResultSet, setIsResultSet] = useState<boolean>(false);

useEffect(() => {
if (formData !== null) {
setId(formData.FormID);
setStatus(formData.Status);
setPubKey(formData.Pubkey);
setRoster(formData.Roster);
setResult(formData.Result);
setChunksPerBallot(formData.ChunksPerBallot);
setBallotSize(formData.BallotSize);
setConfigObj(formData.Configuration);
setVoters(formData.Voters);
if (formData === null) {
return;
}
setId(formData.FormID);
setStatus(formData.Status);
setPubKey(formData.Pubkey);
setRoster(formData.Roster);
setResult(formData.Result);
setChunksPerBallot(formData.ChunksPerBallot);
setBallotSize(formData.BallotSize);
setConfigObj(formData.Configuration);
setVoters(formData.Voters);

if (formData.Result.length > 0) {
setIsResultSet(true);
}
if (formData.Result.length > 0) {
setIsResultSet(true);
}
}, [formData]);

Expand All @@ -52,6 +53,8 @@ const useFillFormInfo = (formData: FormInfo) => {
const useFillLightFormInfo = (formData: LightFormInfo) => {
const [id, setId] = useState<ID>('');
const [title, setTitle] = useState<string>('');
const [titleFr, setTitleFr] = useState<string>('');
const [titleDe, setTitleDe] = useState<string>('');
const [status, setStatus] = useState<Status>(null);
const [pubKey, setPubKey] = useState<string>('');

Expand All @@ -61,12 +64,16 @@ const useFillLightFormInfo = (formData: LightFormInfo) => {
setTitle(formData.Title);
setStatus(formData.Status);
setPubKey(formData.Pubkey);
setTitleFr(formData.TitleFr);
setTitleDe(formData.TitleDe);
}
}, [formData]);

return {
id,
title,
titleFr,
titleDe,
status,
setStatus,
pubKey,
Expand Down
49 changes: 27 additions & 22 deletions web/frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import App from 'layout/App';
import reportWebVitals from 'reportWebVitals';
import ShortUniqueId from 'short-unique-id';

import { useTranslation } from 'react-i18next';

import * as endpoints from 'components/utils/Endpoints';

const flashTimeout = 4000;
Expand Down Expand Up @@ -105,30 +107,33 @@ export const ProxyContext = createContext<ProxyState>(defaultProxyState);

// A small elements to display that the page is loading, should be something
// more elegant in the future and be its own component.
const Loading: FC = () => (
<div className="flex h-screen">
<div className="m-auto">
<div className="text-center pb-2">
<svg
role="status"
className="inline w-16 h-16 mr-2 text-gray-200 animate-spin dark:text-gray-400 fill-indigo-600"
viewBox="0 0 100 101"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor"
/>
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill"
/>
</svg>
const Loading: FC = () => {
const { t } = useTranslation();
return (
<div className="flex h-screen">
<div className="m-auto">
<div className="text-center pb-2">
<svg
role="status"
className="inline w-16 h-16 mr-2 text-gray-200 animate-spin dark:text-gray-400 fill-indigo-600"
viewBox="0 0 100 101"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor"
/>
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill"
/>
</svg>
</div>
<p>{t('loading')}</p>
</div>
<p>App is loading...</p>
</div>
</div>
);
);
};

const Failed: FC = ({ children }) => (
<div className="flex items-center justify-center w-screen h-screen bg-gradient-to-r from-red-600 to-red-700">
Expand Down
21 changes: 14 additions & 7 deletions web/frontend/src/language/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"enterMinN": "Eingabe der MinN",
"enterMaxN": "Eingabe der MaxN",
"enterRegex": "Geben Sie Ihre Regex ein",
"enterTitle": "Geben Sie Ihren Titel ein",
"mainProperties": "Wichtigste Eigenschaften",
"additionalProperties": "Zusätzliche Eigenschaften",
"removeSubject": "Betreff entfernen",
Expand Down Expand Up @@ -90,12 +89,15 @@
"noFile": "Keine Datei gefunden",
"createElecDesc": "Erstellen Sie ein neues Formular, indem Sie die untenstehenden Informationen ausfüllen oder indem Sie",
"uploadJSON": "Hochladen einer JSON-Datei",
"enterMainTitleLg1": "Geben Sie den Haupttitel auf Deutsch ein ",
"enterMainTitleLg2": "Geben Sie den Haupttitel auf Deutsch ein ",
"enterMainTitleLg": "Geben Sie den Haupttitel auf Englisch ein",
"enterMainTitleLg2": "Geben Sie den Haupttitel auf Französisch",
"enterSubjectTitleLg1": "Geben Sie den Titel des Themas Deutsch ein",
"enterMainTitleLg1": "Geben Sie den Haupttitel auf Französisch",
"enterSubjectTitleLg2": "Geben Sie den Titel des Themas Deutsch ein",
"enterSubjectTitleLg": "Geben Sie den Titel des Themas Englisch ein",
"enterSubjectTitleLg2": "Geben Sie den Titel des Themas Französisch ein",
"enterSubjectTitleLg1": "Geben Sie den Titel des Themas Französisch ein",
"enterTitleLg2": "Geben Sie den Titel Deutsch ein",
"enterTitleLg": "Geben Sie den Titel Englisch ein",
"enterTitleLg1": "Geben Sie den Titel Französisch ein",
"errorCandidates": "Sie müssen mindestens einen Kandidaten hinzufügen!",
"errorNewCandidate": "Sind Sie sicher, dass Sie nichts hinzufügen möchten?",
"errorRetrievingForms": "Beim Abrufen aller Formulare von unserem Server scheint ein Fehler aufgetreten zu sein. Wenden Sie sich an den Administrator dieser Website. Fehler:",
Expand Down Expand Up @@ -263,7 +265,12 @@
"actionTextVoter1": "Das Formular ist noch nicht geöffnet, Sie können später wiederkommen, um abzustimmen, sobald es geöffnet ist.",
"actionTextVoter2": "Die Ergebnisse des Formulars liegen noch nicht vor.",
"choice": "Auswahl",
"logoutWarning": "Sie sind dabei, sich abzumelden. Sind Sie sicher, dass Sie fortfahren möchten?",
"continue": "Fortfahren"
"logoutWarning": "Sie sind dabei, sich abzumelden. Wenn Sie gerade ein Formular ausfüllen, empfehlen wir Ihnen, das Formular als JSON zu exportieren, da Sie sonst Ihre Änderungen verlieren. Sind Sie sicher, dass Sie fortfahren möchten?",
"continue": "Fortfahren",
"enterHintLg1": "Geben Sie einen Hinweis auf Französisch ein (optional)",
"enterHintLg": "Geben Sie einen Hinweis auf Englisch ein (optional)",
"enterHintLg2": "Geben Sie einen Hinweis auf Deutsch ein (optional)",
"hint": "Hinweis",
"invalidInput": "Bitte geben Sie eine Zahl zwischen 1 und {{max}} ein."
}
}
19 changes: 12 additions & 7 deletions web/frontend/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
"enterMinN": "Enter the MinN",
"enterMaxN": "Enter the MaxN",
"enterRegex": "Enter your regex",
"enterTitle": "Enter your Title",
"enterHint": "Enter your Hint (optionnal)",
"enterHintLg": "Enter a Hint in English (optionnal)",
"enterHintLg1": "Enter a Hint in French (optionnal)",
"enterHintLg2": "Enter a Hint in German (optionnal)",
"mainProperties": "Main properties",
"additionalProperties": "Additional properties",
"removeSubject": "Remove subject",
Expand All @@ -66,7 +67,7 @@
"namePlaceHolder": "Enter the name",
"addCandidate": "Add a candidate",
"addUser": "Add user",
"role": "Role",
"role": "Role ",
"roles": "Roles",
"edit": "Edit",
"nothingToAdd": "There is nothing to add.",
Expand All @@ -89,10 +90,13 @@
"uploadJSON": "uploading a JSON file",
"enterMainTitleLg": "Enter the Main Title in English",
"enterMainTitleLg1": "Enter the Main Title in French",
"enterMainTitleLg2": "Enter the Main Title in Deutsch",
"enterMainTitleLg2": "Enter the Main Title in German",
"enterSubjectTitleLg1": "Enter the Subject Title in French",
"enterSubjectTitleLg": "Enter the Subject Title in English",
"enterSubjectTitleLg2": "Enter the Subject Title in Deutsch",
"enterSubjectTitleLg2": "Enter the Subject Title in German",
"enterTitleLg": "Enter the Title in English",
"enterTitleLg1": "Enter the Title in French",
"enterTitleLg2": "Enter the Title in German",
"errorCandidates": "You must add at least one candidate!",
"errorNewCandidate": "Are you sure you don't want to add ",
"errorRetrievingForms": "An error seems to have occurred while retrieving all the forms from our server. Contact the administrator of this website. Error: ",
Expand Down Expand Up @@ -265,8 +269,9 @@
"resIndiv": "Individual",
"resGroup": "Grouped",
"choice": "Choice",
"logoutWarning": "You are about to log out. Are you sure you want to continue?",
"logoutWarning": "You are about to log out. If you are currently filling a form, we suggest you to export the form as a JSON, otherwise you will lose your modifications. Are you sure you want to continue?",
"continue": "Continue",
"invalidInput": "Please enter a number between 1 and {{max}}."
"invalidInput": "Please enter a number between 1 and {{max}}.",
"hint": "Hint"
}
}
47 changes: 27 additions & 20 deletions web/frontend/src/language/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"showing": "Montrer",
"saveQuestion": "Enregistrer",
"addRank": "Ajouter un rang",
"editrank": "Modifier un rang",
"removerank": "Enlever un rang",
"addSelect": "Ajouter la sélection",
"editrank": "Modifier le rang",
"removerank": "Supprimer le rang",
"addSelect": "Ajouter une sélection",
"editselect": "Modifier la sélection",
"removeselect": "Supprimer la sélection",
"addText": "Ajouter un texte",
"edittext": "Modifier un texte",
"removetext": "Supprimer un texte",
"edittext": "Modifier le texte",
"removetext": "Supprimer le texte",
"subject": "Sujet",
"choices": "Choix",
"answers": "Réponses",
Expand All @@ -44,16 +44,15 @@
"enterMinN": "Entrer le MinN",
"enterMaxN": "Entrer le MaxN",
"enterRegex": "Entrer votre regex",
"enterTitle": "Entrer votre Titre",
"mainProperties": "Principales propriétés",
"additionalProperties": "Propriétés additionnels",
"removeSubject": "Suprimer un sujet",
"removeSubject": "Suprimer le sujet",
"addSubject": "Ajouter un sujet",
"addQuestionrank": "Rang",
"addQuestionselect": "Sélectionner",
"addQuestionselect": "Selection",
"addQuestiontext": "Texte",
"importFile": "Importer le fichier JSON ",
"enterSciper": "Merci de donner le sciper de l'utilisateur",
"enterSciper": "Merci de rentrer le sciper de l'utilisateur",
"adminDetails": "Ajouter ou supprimer les rôles des utilisateurs du tableau de l'admin",
"navBarCreateForm": "Créer un sondage",
"homeTitle": "Bienvenue dans notre platforme de e-voting!",
Expand All @@ -73,7 +72,7 @@
"roles": "Rôles",
"edit": "Editer",
"nothingToAdd": "Il y a rien à ajouter.",
"duplicateCandidate": "Ce candidat a déjà été ajouter.",
"duplicateCandidate": "Ce candidat a déjà été ajouté.",
"add": "Ajouter",
"exportJSON": "Exporter en JSON",
"delete": "Supprimer",
Expand All @@ -96,6 +95,9 @@
"enterSubjectTitleLg1": "Entrer le Titre du sujet en Français",
"enterSubjectTitleLg": "Entrer le Titre du sujet en Anglais",
"enterSubjectTitleLg2": "Entrer le Titre du sujet en Allemand",
"enterTitleLg1": "Entrer le Titre en Français",
"enterTitleLg": "Entrer le Titre en Anglais",
"enterTitleLg2": "Entrer le Titre en Allemand",
"errorCandidates": "Vous devez ajouter au moins un candidat!",
"errorNewCandidate": "Vous êtes de sûr de ne pas vouloir ajouter ",
"errorRetrievingForms": "Une erreur semble s'être produite lors de la récupération des sondages sur notre serveur. Contactez l'administrateur de ce site. Erreur: ",
Expand Down Expand Up @@ -133,7 +135,7 @@
"statusInitial": "Créé",
"statusInitializedNodes": "Noeuds initialisés",
"initializeNode": "Initialiser les noeuds",
"initialized": "Initializé",
"initialized": "Initialisé",
"initializing": "Initialisation...",
"settingUp": "Mise en place...",
"statusSetup": "Configuration",
Expand All @@ -147,10 +149,10 @@
"opening": "Ouverture...",
"statusClose": "Fermé",
"closing": "Fermeture...",
"shuffling": "Mélangé...",
"statusShuffle": "Les ballots ont été mélangé",
"shuffling": "Mélange...",
"statusShuffle": "Les votes ont été mélangé",
"decrypting": "Décryptage...",
"statusDecrypted": "Les ballots ont été décrypté",
"statusDecrypted": "Les votes ont été décrypté",
"statusPubSharesSubmitted": "PubShares ont été soumis",
"combine": "Combiner",
"combining": "Combiné...",
Expand All @@ -175,7 +177,7 @@
"successRemoveUser": "Utilisateur supprimé avec succès!",
"errorRemoveUser": "Erreur lors de la suppression de l'utilisateur",
"errorFetchingUsers": "Erreur lors de la récupération des utilisateurs",
"voteFailure": "Votre ballot n'a pas été pris en compte. C'est possible que le sondage a été fermé ou annulé. Essayez de rafraichir la page.",
"voteFailure": "Votre vote n'a pas été pris en compte. C'est possible que le sondage a été fermé ou annulé. Essayez de rafraichir la page.",
"ballotFailure": "Une erreur est survenu lors de l'envoi de votre ballot. Merci de contacter l'administrateur de ce site. ",
"incompleteBallot": "Certaines réponses ne sont pas complète.",
"selectMin": "Selectionnez {{minSelect}} {{singularPlural}}. ",
Expand All @@ -192,16 +194,16 @@
"pluralAnswers": "réponses",
"rankRange": "La réponse doit être entre 1 et {{max}}. ",
"castVote": "Voter",
"voteExplanation": "Vous pouvez voter autant de fois que vous le souhaitez tant que le sondage est ouverte. Seul votre dernier vote sera pris en compte.",
"voteExplanation": "Vous pouvez voter autant de fois que vous le souhaitez tant que le sondage est ouvert. Seul votre dernier vote sera pris en compte.",
"noVote": "Il y a actuellement rien à voter.",
"voteAllowed": "Vous êtes autorisés à voter sur les sondages ci-dessous. Cliquez sur le titre d'un sondage pour afficher son bulletin de vote et voter.",
"displayResults": "Les résultats de(s) sondage(s) listé(s) ci-dessous sont disponibles. Clique sur le titre d'un sondage pour y avoir accès.",
"noResultsAvailable": "Il y a actuellement aucuns résultats disponibles.",
"resultExplanation1": "Les résultats des questions sélectives et textuelles sont donnés en pourcentage du nombre de voix pour un candidat divisé par le nombre de bulletins de vote. ",
"resultExplanation2": "Les résultats de la question de classement correspondent au pourcentage de la note d'un candidat. Chaque électeur donne des points aux candidats en les classant de 1 à N (le plus bas est le mieux). ",
"resultExplanation3": "Le score correspond à la somme des points obtenus par un candidat et est divisé par le nombre total de points attribués sur l'ensemble des bulletins, puis soustrait à un",
"shuffle": "Mélangez",
"decrypt": "Décryptez",
"shuffle": "Mélange",
"decrypt": "Décryptage",
"seeResult": "Voir les résultats",
"totalNumberOfVotes": "Nombre total de votes : {{votes}}",
"notEnoughBallot": "L'opération a échoué parce que moins 2 votes ont été enregistré.",
Expand Down Expand Up @@ -263,7 +265,12 @@
"actionTextVoter1": "Le sondage n'est pas encore ouvert, vous pouvez revenir plus tard pour voter lorsque ce sera ouvert.",
"actionTextVoter2": "Les résultats du sondage ne sont pas encore disponible.",
"choice": "Choix",
"logoutWarning": "Vous êtes sur le point de vous déconnecter. Êtes vous sûr de vouloir continuer ?",
"continue": "Continuer"
"logoutWarning": "Vous êtes sur le point de vous déconnecter. Si vous êtes en train de remplir un sondage, nous vous suggérons d'exporter le sondage en JSON, sinon vous perdrez vos modifications. Êtes vous sûr de vouloir continuer ?",
"continue": "Continuer",
"hint": "Indication",
"enterHintLg": "Entrer une indication en Anglais (optionnel)",
"enterHintLg1": "Entrer une indication en Français (optionnel)",
"enterHintLg2": "Entrer une indication en Allemand (optionnel)",
"invalidInput": "Entrer s'il vous plaît un nombre entre 1 et {{max}}"
}
}
1 change: 0 additions & 1 deletion web/frontend/src/layout/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const App = () => {
let location = useLocation();

const authCtx = useContext(AuthContext);

if (!authCtx.isLogged) {
return <Navigate to={ROUTE_LOGIN} state={{ from: location }} replace />;
} else {
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/layout/components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { UserCircleIcon } from '@heroicons/react/outline';
type ProfileProps = {
authCtx: AuthState;
handleLogout: (e: any) => Promise<void>;
handleLogin: (FlashState) => Promise<void>;
handleLogin: (arg0: FlashState) => Promise<void>;
fctx: FlashState;
};

Expand Down
Loading