Commit 5b99ba62 authored by Stephane Glondu's avatar Stephane Glondu Committed by Stéphane Glondu

Cosmetic changes in translated strings

parent d313c1b1
Pipeline #177254 passed with stage
in 32 minutes and 44 seconds
......@@ -94,7 +94,7 @@ let extractQuestion q =
if (q_max = 0) then
failwith (s_ "Maximum number of choices must be greater than 0!");
if (q_max > Array.length q_answers) then
failwith (s_ "Maximum number of choices is greater than number of choices!");
failwith (s_ "The given maximum is greater than the number of choices!");
let open Question_h_t in
return (Question.Homomorphic {q_question; q_blank; q_min; q_max; q_answers})
| None ->
......
......@@ -49,7 +49,7 @@ let tkeygen _ =
let fill_interactivity () =
document##getElementById (Js.string "interactivity") >>== fun e ->
let b = Dom_html.createButton document in
let t = document##createTextNode (Js.string (s_ "Generate a new keypair")) in
let t = document##createTextNode (Js.string (s_ "Generate a key")) in
b##.onclick := Dom_html.handler tkeygen;
Dom.appendChild b t;
Dom.appendChild e b
......
......@@ -597,7 +597,7 @@ let mail_trustee_generation_basic_body l link =
add_newline b; add_string b "4. ";
add_sentence b (s_ "Save the fingerprint of your verification key. Once the election is open, you must check that it is present in the set of verification keys published by the server.");
add_newline b; add_string b "5. ";
add_sentence b (s_ "Click on \"Submit\" to send your verification key, used to encrypt the votes.");
add_sentence b (s_ "Click on \"Submit\" to send your verification key.");
add_newline b; add_newline b;
add_sentence b (s_ "Regarding your private key, it is crucial you save it (otherwise the election will be canceled) and store it securely (if your private key is known together with the private keys of the other trustees, then vote privacy is no longer guaranteed).");
add_sentence b (s_ "We suggest two options:");
......@@ -1958,7 +1958,7 @@ let mail_trustee_tally_body l link =
add_newline b; add_string b "1. ";
add_sentence b (s_ "Follow the link.");
add_newline b; add_string b "2. ";
add_sentence b (s_ "Enter your private decryption key in the first box and click on \"Generate decryption factors\".");
add_sentence b (s_ "Enter your private decryption key in the first box and click on \"Generate your contribution to decryption\".");
add_newline b; add_string b "3. ";
add_sentence b (s_ "The second box is now filled with crypto material. Please press the button \"Submit\".");
add_newline b; add_newline b;
......@@ -1998,7 +1998,7 @@ let mail_shuffle_body l link =
add_newline b; add_string b "3. ";
add_sentence b (s_ "The fingerprint of your shuffle will appear. Save it.");
add_newline b; add_string b "4. ";
add_sentence b (s_ "When the election result is published, make sure that the fingerprint of your shuffle appears in the result.");
add_sentence b (s_ "When the election result is published, make sure that the fingerprint of your shuffle appears in the result page.");
add_newline b; add_newline b;
add_sentence b (s_ "Thank you for your help,");
add_newline b;
......@@ -2727,7 +2727,7 @@ let tally_trustees election trustee_id token () =
button_no_value
~a:[a_id "compute"]
~button_type:`Button
[txt (s_ "Compute decryption factors")];
[txt (s_ "Generate your contribution to decryption")];
];
br ();
];
......
......@@ -630,7 +630,7 @@ let () =
let open (val l) in
if PString.length name > max_election_name_size then (
let msg =
Printf.sprintf (f_ "The election name must be %d bytes or less!")
Printf.sprintf (f_ "The election name must be %d characters or less!")
max_election_name_size
in
Pages_common.generic_page ~title:(s_ "Error") msg () >>= Html.send
......
......@@ -386,9 +386,9 @@ The election administrator.\
election_url_content = election_url_element.get_attribute('innerText').strip()
assert election_url_content == self.election_page_url
# He clicks on the "Generate a new keypair" button
# He clicks on the "Generate a key" button
generate_button_css_selector = "#interactivity button"
generate_button_expected_label = "Generate a new keypair"
generate_button_expected_label = "Generate a key"
generate_button_element = wait_for_element_exists_and_contains_expected_text(browser, generate_button_css_selector, generate_button_expected_label)
generate_button_element.click()
......
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