diff options
author | root <root@adnab.me> | 2014-01-31 17:30:35 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 17:30:35 +0100 |
commit | 1ed8a37bea8882cd3a1aa0f421dbc15493a781a0 (patch) | |
tree | d014616096b7f8b94b707626cae46cff0e0608ce /lib/account | |
parent | b0c23ea84327d48e3a4383fac3e795c2dc0a1215 (diff) | |
download | Bits-1ed8a37bea8882cd3a1aa0f421dbc15493a781a0.tar.gz Bits-1ed8a37bea8882cd3a1aa0f421dbc15493a781a0.zip |
Traduction into french of some parts of the site.
Diffstat (limited to 'lib/account')
-rw-r--r-- | lib/account/new.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/account/new.php b/lib/account/new.php index 2366fbb..63ec85e 100644 --- a/lib/account/new.php +++ b/lib/account/new.php @@ -1,6 +1,6 @@ <?php -$title = "Register"; +$title = "Création d'un compte"; $login = ""; $email = ""; @@ -10,29 +10,29 @@ if (isset($_POST['login']) && isset($_POST['pw1']) && isset($_POST['pw2'])) { $pw1 = esc($_POST["pw1"]); $pw2 = esc($_POST["pw2"]); if ($login == "") { - $error = "You must enter a username."; + $error = "Vous devez entrer un nom d'utilisateur."; } else if (!preg_match('#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#', $email)) { - $error = "You must enter a valid email address."; + $error = "Vous devez entrer une adresse e-mail correcte."; } else if ($pw1 != $pw2) { - $error = "You must enter twice the same password."; + $error = "Vous devez entrer deux fois le même mot de passe."; } else if ($pw1 == "") { - $error = "You must enter a password"; + $error = "Vous devez entrer un mot de passe."; } else { sql("INSERT INTO account(login, password, email, reg_date) ". "VALUES('" . escs($login) . "', PASSWORD('$pw1'), '" . escs($email) . "', NOW())"); - $message = "Your account has been created. Please log in now."; + $message = "Votre compte a été créé, merci de vous identifier."; $url = $homepage; require("tpl/account/login.php"); } } -$form_message = "Please fill in the following form to create an account :"; +$form_message = "Merci de remplire le formulaire suivant afin de créer un compte :"; $fields = array( - array("label" => "Username : ", "name" => "login", "value" => $login), - array("label" => "Password : ", "name" => "pw1", "type" => "password"), - array("label" => "Confirm password : ", "name" => "pw2", "type" => "password"), - array("label" => "Email address : ", "name" => "email", "value" => $email) + array("label" => "Nom d'utilisateur : ", "name" => "login", "value" => $login), + array("label" => "Mot de passe : ", "name" => "pw1", "type" => "password"), + array("label" => "Confirmation : ", "name" => "pw2", "type" => "password"), + array("label" => "Adresse e-mail : ", "name" => "email", "value" => $email) ); -$validate = "Create an account"; +$validate = "Envoyer"; require("tpl/general/form.php"); |