diff --git a/public/locale/i18n/de/resource.json b/public/locale/i18n/de/resource.json index 525a816..2502ddb 100644 --- a/public/locale/i18n/de/resource.json +++ b/public/locale/i18n/de/resource.json @@ -1,7 +1,7 @@ { "Homepage": " Homepage ", "Source code": "Quellcode", - "Who are we": "Wer wir sind", + "Who are we?": "Wer wir sind?", "BetterVote": " BetterVote", "Voting platform": "Wahlplattform", "Majority Judgment": " Mehrheitswahl ", @@ -51,5 +51,6 @@ "Your participation was recorded with success!": " Ihre Teilnahme wurde gespeichert!", "Thanks for your participation.": " Vielen Dank für Ihre Teilnahme.", "Support us !" : "Unterstützen Sie uns!", - "PayPal - The safer, easier way to pay online!" : "PayPal - Die sicherere und einfachere Art, online zu bezahlen!" + "PayPal - The safer, easier way to pay online!" : "PayPal - Die sicherere und einfachere Art, online zu bezahlen!", + "Number of votes:" : "Anzahl der Stimmen:" } diff --git a/public/locale/i18n/en/resource.json b/public/locale/i18n/en/resource.json index c80e6f4..2bc1c4d 100644 --- a/public/locale/i18n/en/resource.json +++ b/public/locale/i18n/en/resource.json @@ -1,7 +1,7 @@ { "Homepage": "Homepage", "Source code": "Source code", - "Who are we": "Who are we", + "Who are we?": "Who are we?", "BetterVote": "BetterVote", "Voting platform": "Voting platform", "Majority Judgment": "Majority Judgment", @@ -79,6 +79,6 @@ "You seem to have already voted.": "You seem to have already voted.", "The parameters of the election are incorrect.": "The parameters of the election are incorrect.", "Support us !" : "Support us !", - "PayPal - The safer, easier way to pay online!" : "PayPal - The safer, easier way to pay online!" - + "PayPal - The safer, easier way to pay online!" : "PayPal - The safer, easier way to pay online!", + "Number of votes:" : "Number of votes:" } diff --git a/public/locale/i18n/es/resource.json b/public/locale/i18n/es/resource.json index 0295b61..5b06cfd 100644 --- a/public/locale/i18n/es/resource.json +++ b/public/locale/i18n/es/resource.json @@ -1,7 +1,7 @@ { "Homepage": "Página de inicio", "Source code": "Código fuente", - "Who are we": "Quiénes somos", + "Who are we?": "¿Quiénes somos?", "BetterVote": "VotarMejor", "Voting platform": "Plataforma de votación", "Majority Judgment": "Juicio Mayoritario", @@ -79,5 +79,6 @@ "You seem to have already voted.": "__STRING_NOT_TRANSLATED__", "The parameters of the election are incorrect.": "__STRING_NOT_TRANSLATED__", "Support us !" : "¡Apóyanos!", - "PayPal - The safer, easier way to pay online!" : "PayPal - ¡La forma más segura y fácil de pagar en línea!" + "PayPal - The safer, easier way to pay online!" : "PayPal - ¡La forma más segura y fácil de pagar en línea!", + "Number of votes:" : "Número de votos:" } diff --git a/public/locale/i18n/fr/resource.json b/public/locale/i18n/fr/resource.json index a6af78c..54d5578 100644 --- a/public/locale/i18n/fr/resource.json +++ b/public/locale/i18n/fr/resource.json @@ -1,7 +1,7 @@ { "Homepage": "Accueil", "Source code": "Code source", - "Who are we": "Qui sommes-nous", + "Who are we?": "Qui sommes-nous ?", "BetterVote": "MieuxVoter", "Voting platform": "Plateforme de vote", "Majority Judgment": "Jugement Majoritaire", @@ -79,5 +79,6 @@ "You seem to have already voted.": "Il semble que vous ayez déjà voté.", "The parameters of the election are incorrect.": "Les paramètres de l'élection sont incorrects.", "Support us !" : "Soutenez-nous !", - "PayPal - The safer, easier way to pay online!" : "PayPal - Le moyen le plus sûr et le plus simple de payer en ligne !" + "PayPal - The safer, easier way to pay online!" : "PayPal - Le moyen le plus sûr et le plus simple de payer en ligne !", + "Number of votes:" : "Nombre de votes :" } diff --git a/src/components/layouts/Footer.jsx b/src/components/layouts/Footer.jsx index 17ce388..671e2c3 100644 --- a/src/components/layouts/Footer.jsx +++ b/src/components/layouts/Footer.jsx @@ -22,7 +22,7 @@ class Footer extends Component { - {t("Source code")} - - {t("Who are we")} + {t("Who are we?")}
diff --git a/src/components/views/Result.jsx b/src/components/views/Result.jsx index 173b123..450ed9a 100644 --- a/src/components/views/Result.jsx +++ b/src/components/views/Result.jsx @@ -35,6 +35,7 @@ class Result extends Component { collapseProfiles: false, electionGrades: i18nGrades(), errorMessage: "", + numVotes:"..." }; } @@ -60,7 +61,7 @@ class Result extends Component { numVotes: c.num_votes })); console.log(response); - this.setState(state => ({ candidates: candidates })); + this.setState(state => ({ candidates: candidates, numVotes : candidates[0].numVotes })); return response; }; @@ -196,6 +197,8 @@ class Result extends Component {

{t("Results of the election:")}

+
{t("Number of votes:")}{" "+this.state.numVotes}
+
    {candidates.map((candidate, i) => { console.log(candidate);