Browse Source

update number of votes

master
Pierre-Louis Guhur 1 year ago
parent
commit
91e2bdd76a
  1. 8
      components/layouts/Footer.jsx
  2. 6
      package-lock.json
  3. 2
      pages/result/[pid]/[[...tid]].jsx
  4. 2
      public/locales/de/resource.json
  5. 2
      public/locales/en/resource.json
  6. 2
      public/locales/es/resource.json
  7. 2
      public/locales/fr/resource.json
  8. 2
      public/locales/ru/resource.json

8
components/layouts/Footer.jsx

@ -1,11 +1,11 @@
import Link from "next/link";
import {useTranslation} from "next-i18next";
import { useTranslation } from "next-i18next";
import Paypal from "../banner/Paypal";
import {useBbox} from "./useBbox";
import { useBbox } from "./useBbox";
const Footer = () => {
const linkStyle = {whiteSpace: "nowrap"};
const {t} = useTranslation();
const linkStyle = { whiteSpace: "nowrap" };
const { t } = useTranslation();
const [bboxLink1, link1] = useBbox();
const [bboxLink2, link2] = useBbox();

6
package-lock.json

@ -1685,9 +1685,9 @@
}
},
"@types/node": {
"version": "15.0.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.3.tgz",
"integrity": "sha512-/WbxFeBU+0F79z9RdEOXH4CsDga+ibi5M8uEYr91u3CkT/pdWcV8MCook+4wDPnZBexRdwWS+PiVZ2xJviAzcQ=="
"version": "15.3.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-15.3.0.tgz",
"integrity": "sha512-8/bnjSZD86ZfpBsDlCIkNXIvm+h6wi9g7IqL+kmFkQ+Wvu3JrasgLElfiPgoo8V8vVfnEi0QVS12gbl94h9YsQ=="
},
"@types/parse-json": {
"version": "4.0.0",

2
pages/result/[pid]/[[...tid]].jsx

@ -134,7 +134,7 @@ const Result = ({ candidates, numGrades, title, pid, err }) => {
</ol>
<h5>
<small>
{t("Number of votes:")}
{t("resource.numVotes")}
{" " + numVotes}
</small>
</h5>

2
public/locales/de/resource.json

@ -62,7 +62,7 @@
"resource.thanks": " 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!",
"Number of votes:": "Anzahl der Stimmen:",
"resource.numVotes": "Anzahl der Stimmen:",
"Unknown error. Try again please.": "Unbekannter Fehler. Bitte versuchen Sie es erneut.",
"Ending date:": "Enddatum:",
"If you list voters' emails, only them will be able to access the election": "Wenn Sie die E-Mails der Wähler auflisten, haben nur diese Zugriff auf die Wahl",

2
public/locales/en/resource.json

@ -89,7 +89,7 @@
"The parameters of the election are incorrect.": "The parameters of the vote are incorrect.",
"Support us !": "Support us!",
"PayPal - The safer, easier way to pay online!": "PayPal - The safer, easier way to pay online!",
"Number of votes:": "Number of votes:",
"resource.numVotes": "Number of votes:",
"Access to results": "Results availability",
"Immediately": "Immediately",
"At the end of the election": "At the end of the vote",

2
public/locales/es/resource.json

@ -82,7 +82,7 @@
"Unknown error. Try again please.": "Error desconocido. Inténtelo de nuevo, por favor.",
"If you list voters' emails, only them will be able to access the election": "Si enumera los correos electrónicos de los votantes, sólo ellos podrán acceder a la elección",
"Voters received a link to vote by email. Each link can be used only once!": "Los votantes recibieron un enlace para votar por correo electrónico. ¡Cada enlace puede ser usado sólo una vez!",
"Number of votes:": "Número de votos:",
"resource.numVotes": "Número de votos:",
"Oops... The election is unknown.": "Oops... La elección es desconocida",
"The election is still going on. You can't access now to the results.": "La elección sigue en marcha. No puedes acceder ahora a los resultados.",
"No votes have been recorded yet. Come back later.": "Aún no se han registrado votos. Vuelva más tarde.",

2
public/locales/fr/resource.json

@ -87,7 +87,7 @@
"The parameters of the election are incorrect.": "Les paramètres de vote 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 !",
"Number of votes:": "Nombre de votes :",
"resource.numVotes": "Nombre de votes :",
"Access to results": "Accès aux résultats",
"Immediately": "Immédiatement",
"At the end of the election": "A la clôture du vote",

2
public/locales/ru/resource.json

@ -89,7 +89,7 @@
"The parameters of the election are incorrect.": "Параметры голосвания неверны.",
"Support us !": "Поддержите нас !",
"PayPal - The safer, easier way to pay online!": "PayPal - Безопасный и простой способ платить онлайн!",
"Number of votes:": "Количество голосов:",
"resource.numVotes": "Количество голосов:",
"Access to results" : "Доступ к результатам",
"Immediately": "Немедленно",
"At the end of the election": "По окончании выборов",

Loading…
Cancel
Save