Commit 2c8bb82a authored by Stephane Glondu's avatar Stephane Glondu

Internationalization of result page

parent aae61603
......@@ -100,6 +100,16 @@ module type LocalizedStrings = sig
val come_back_later : string
val cookies_are_blocked : string
val please_enable_them : string
val election_currently_closed : string
val election_closed_being_tallied : string
val the : string
val encrypted_tally : string
val hash_is : string
val election_has_been_tallied : string
val election_archived : string
val number_accepted_ballots : string
val you_can_also_download : string
val result_with_crypto_proofs : string
val mail_password_subject : (string -> 'f, 'b, 'c, 'e, 'e, 'f) format6
val mail_password : (string -> string -> string -> string -> 'f, 'b, 'c, 'e, 'e, 'f) format6
val mail_credential_subject : (string -> 'f, 'b, 'c, 'e, 'e, 'f) format6
......
......@@ -99,6 +99,16 @@ let not_yet_open = "Entschuldigung, die Abstimmung ist noch nicht geöffnet."
let come_back_later = "Diese Abstimmung gibt es noch nicht. Bitte kommen Sie später wieder."
let cookies_are_blocked = "Cookies sind deaktiviert"
let please_enable_them = "Ihr Browser nimmt keine Cookies an, bitte aktivieren Sie diese."
let election_currently_closed = "This election is currently closed." (* FIXME *)
let election_closed_being_tallied = "The election is closed and being tallied." (* FIXME *)
let the = " The " (* FIXME *)
let encrypted_tally = "encrypted tally" (* FIXME *)
let hash_is = " hash is " (* FIXME *)
let election_has_been_tallied = "This election has been tallied." (* FIXME *)
let election_archived = "This election is archived." (* FIXME *)
let number_accepted_ballots = "Number of accepted ballots: " (* FIXME *)
let you_can_also_download = "You can also download the " (* FIXME *)
let result_with_crypto_proofs = "result with cryptographic proofs" (* FIXME *)
let mail_password_subject : ('a, 'b, 'c, 'd, 'e, 'f) format6 =
......
......@@ -99,6 +99,16 @@ let not_yet_open = "Sorry, this election is not yet open"
let come_back_later = "This election does not exist yet. Please come back later."
let cookies_are_blocked = "Cookies are blocked"
let please_enable_them = "Your browser seems to block cookies. Please enable them."
let election_currently_closed = "This election is currently closed."
let election_closed_being_tallied = "The election is closed and being tallied."
let the = " The "
let encrypted_tally = "encrypted tally"
let hash_is = " hash is "
let election_has_been_tallied = "This election has been tallied."
let election_archived = "This election is archived."
let number_accepted_ballots = "Number of accepted ballots: "
let you_can_also_download = "You can also download the "
let result_with_crypto_proofs = "result with cryptographic proofs"
let mail_password_subject : ('a, 'b, 'c, 'd, 'e, 'f) format6 =
......
......@@ -99,6 +99,16 @@ let not_yet_open = "Désolé, cette élection n'est pas encore ouverte"
let come_back_later = "Cette élection n'existe pas encore. Veuillez revenir plus tard."
let cookies_are_blocked = "Les cookies sont bloqués"
let please_enable_them = "Votre navigateur semble bloquer les cookies. Veuillez les activer."
let election_currently_closed = "Cette élection est actuellement fermée."
let election_closed_being_tallied = "L'élection est fermé et en cours de dépouillement."
let the = " L'empreinte du "
let encrypted_tally = "résultat chiffré"
let hash_is = " est "
let election_has_been_tallied = "Cette élection a été dépouillée."
let election_archived = "Cette élection est archivée."
let number_accepted_ballots = "Nombre de bulletins acceptés : "
let you_can_also_download = "Vous pouvez également télécharger le "
let result_with_crypto_proofs = "résultat avec les preuves cryptographiques"
let mail_password_subject : ('a, 'b, 'c, 'd, 'e, 'f) format6 =
......
......@@ -99,6 +99,16 @@ let not_yet_open = "Din păcate, această alegere nu este încă deschisă"
let come_back_later = "Acesta alegere nu există încă. Vă rugăm să reveniți mai târziu."
let cookies_are_blocked = "Cookie-urile sunt blocate"
let please_enable_them = "Browser-ul dumneavoastră pare să blocheze cookie-urile. Vă rugăm să le activați."
let election_currently_closed = "This election is currently closed." (* FIXME *)
let election_closed_being_tallied = "The election is closed and being tallied." (* FIXME *)
let the = " The " (* FIXME *)
let encrypted_tally = "encrypted tally" (* FIXME *)
let hash_is = " hash is " (* FIXME *)
let election_has_been_tallied = "This election has been tallied." (* FIXME *)
let election_archived = "This election is archived." (* FIXME *)
let number_accepted_ballots = "Number of accepted ballots: " (* FIXME *)
let you_can_also_download = "You can also download the " (* FIXME *)
let result_with_crypto_proofs = "result with cryptographic proofs" (* FIXME *)
let mail_password_subject : ('a, 'b, 'c, 'd, 'e, 'f) format6 =
......
......@@ -1117,31 +1117,31 @@ let election_home w state () =
| `Closed ->
[
pcdata " ";
b [pcdata "This election is currently closed."];
b [pcdata L.election_currently_closed];
]
| `Open -> []
| `EncryptedTally (_, _, hash) ->
[
pcdata " ";
b [pcdata "The election is closed and being tallied."];
pcdata " The ";
b [pcdata L.election_closed_being_tallied];
pcdata L.the;
a
~service:election_dir
[pcdata "encrypted tally"]
[pcdata L.encrypted_tally]
(W.election.e_params.e_uuid, ESETally);
pcdata " hash is ";
pcdata L.hash_is;
b [pcdata hash];
pcdata ".";
]
| `Tallied _ ->
[
pcdata " ";
b [pcdata "This election has been tallied."];
b [pcdata L.election_has_been_tallied];
]
| `Archived ->
[
pcdata " ";
b [pcdata "This election is archived."];
b [pcdata L.election_archived];
]
in
let ballots_link =
......@@ -1194,13 +1194,13 @@ let election_home w state () =
]
) questions);
div [
pcdata "Number of accepted ballots: ";
pcdata L.number_accepted_ballots;
pcdata (string_of_int r.num_tallied);
];
div [
pcdata "You can also download the ";
pcdata L.you_can_also_download;
a ~service:election_dir
[pcdata "result with cryptographic proofs"]
[pcdata L.result_with_crypto_proofs]
(W.election.e_params.e_uuid, ESResult);
pcdata ".";
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment