From 5c3d3dbdbebea08d2b329a4bdfec2c8af15d9343 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 25 Sep 2017 22:08:40 -0700 Subject: [PATCH] Web: change account creation page to use tooltips for details --- html/inc/account.inc | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/html/inc/account.inc b/html/inc/account.inc index 1064a84dc2..4dc9c53e16 100644 --- a/html/inc/account.inc +++ b/html/inc/account.inc @@ -30,17 +30,26 @@ function create_account_form($teamid, $next_url) { // if (defined('INVITE_CODES')) { form_input_text( - tra("Invitation Code")."
".tra("An invitation code is required to create an account.")."", - "invite_code" + sprintf('%s', + tra("An invitation code is required to create an account."), + tra("Invitation code") + ), + "invite_code" ); } form_input_text( - tra("Screen name")."
".tra("Identifies you on our web site. Use your real name or a nickname.")."", + sprintf('%s', + tra("Identifies you on our web site. Use your real name or a nickname."), + tra("Screen name") + ), "new_name" ); form_input_text( - tra("Email Address")."
".tra("Must be a valid address of the form 'name@domain'.")."", + sprintf('%s', + tra("Must be a valid address of the form 'name@domain'."), + tra("Email address") + ), "new_email_addr" ); $min_passwd_length = parse_element(get_config(), ""); @@ -49,13 +58,18 @@ function create_account_form($teamid, $next_url) { } form_input_text( - tra("Password") - ."
".tra("Must be at least %1 characters", $min_passwd_length)."", + sprintf('%s', + tra("Must be at least %1 characters", $min_passwd_length), + tra("Password") + ), "passwd", "", "password" ); form_input_text(tra("Confirm password"), "passwd2", "", "password"); form_select( - tra("Country")."
".tra("Select the country you want to represent, if any.")."", + sprintf('%s', + tra("Select the country you want to represent, if any."), + tra("Country") + ), "country", country_select_options() );