. "Enjoy the site.\n\n"
. " -- the SourceForge staff\n";
*/
- $link1="<https://". $GLOBALS['sys_default_domain'] ."/account/verify.php?confirm_hash=_".$this->getConfirmHash().">";
- $link2="https://". $GLOBALS['sys_default_domain']."/account/verify.php?confirm_hash=_".$this->getConfirmHash();
- $message=stripcslashes($Language->getText('account_register','message_body',array($this->getUnixName(),$link1,$link2)));
+ $message=stripcslashes($Language->getText('account_register','message_body',array($this->getUnixName(),$GLOBALS['sys_default_domain'],$this->getConfirmHash())));
util_send_mail(
$this->getEmail(),
$Language->getText('account_register','message_header'),
*
*/
function account_pwvalid($pw) {
+ global $Language;
if (strlen($pw) < 6) {
- $GLOBALS['register_error'] = "Password must be at least 6 characters.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','sixchar');
return 0;
}
return 1;
*
*/
function account_namevalid($name) {
+ global $Language;
// no spaces
if (strrpos($name,' ') > 0) {
- $GLOBALS['register_error'] = "There cannot be any spaces in the login name.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','nospace');
return 0;
}
// min and max length
if (strlen($name) < 3) {
- $GLOBALS['register_error'] = "Name is too short. It must be at least 3 characters.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','tooshort');
return 0;
}
if (strlen($name) > 15) {
- $GLOBALS['register_error'] = "Name is too long. It must be less than 15 characters.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','toolong');
return 0;
}
if (!ereg('^[a-z][-a-z0-9_]+$', $name)) {
- $GLOBALS['register_error'] = "Illegal character in name.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','illegal');
return 0;
}
return 0;
}
if (eregi("^(anoncvs_)",$name)) {
- $GLOBALS['register_error'] = "Name is reserved for CVS.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','cvsreserved');
return 0;
}
*
*/
function account_groupnamevalid($name) {
+ global $Language;
if (!account_namevalid($name)) return 0;
// illegal names
if (eregi("^((www[0-9]?)|(cvs[0-9]?)|(shell[0-9]?)|(ftp[0-9]?)|(irc[0-9]?)|(news[0-9]?)"
. "|(mail[0-9]?)|(ns[0-9]?)|(download[0-9]?)|(pub)|(users)|(compile)|(lists)"
. "|(slayer)|(orbital)|(tokyojoe)|(webdev)|(projects)|(cvs)|(slayer)|(monitor)|(mirrors?))$",$name)) {
- $GLOBALS['register_error'] = "Name is reserved for DNS purposes.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','dnsreserved');
return 0;
}
if (eregi("_",$name)) {
- $GLOBALS['register_error'] = "Group name cannot contain underscore for DNS reasons.";
+ $GLOBALS['register_error'] = $Language->getText('common_include_account','nounderscore');
return 0;
}
*
*/
function session_login_valid($loginname, $passwd, $allowpending=0) {
- global $feedback;
+ global $feedback,$Language;
if (!$loginname || !$passwd) {
- $feedback = 'Missing Password Or Users Name';
+ $feedback = $Language->getText('session','missingpasswd');
return false;
}
");
if (!$res || db_numrows($res) < 1) {
// No user by that name
- $feedback='Invalid Password Or User Name';
+ $feedback=$Language->getText('session','invalidpasswd');
return false;
} else {
// There is a user with the provided user_name, but the MD5 passwds do not match
if (crypt ($passwd, $usr['unix_pw']) != $usr['unix_pw']) {
// Even the (crypt) unix_pw does not patch
// This one has clearly typed a bas passwd
- $feedback='Invalid Password Or User Name';
+ $feedback=$Language->getText('session','invalidpasswd');
return false;
}
// User exists, (crypt) unix_pw matches
SET user_pw='OUT OF DATE'
WHERE user_id='".$usr['user_id']."'
");
- $feedback='Invalid Password Or User Name';
+ $feedback=$Language->getText('session','invalidpasswd');
return false;
}
} else {
if ($usr['status'] == 'S') {
//acount suspended
- $feedback = 'Account Suspended';
+ $feedback = $Language->getText('session','suspended');
return false;
}
if ($usr['status'] == 'P') {
//account pending
- $feedback = 'Account Pending';
+ $feedback = $Language->getText('session','pending');
return false;
}
if ($usr['status'] == 'D') {
//account deleted
- $feedback = 'Account Deleted';
+ $feedback = $Language->getText('session','deleted');
return false;
}
if ($usr['status'] != 'A') {
//unacceptable account flag
- $feedback = 'Account Not Active';
+ $feedback = $Language->getText('session','notactive');
return false;
}
}
$res = session_getdata($user_id);
if (!$res || db_numrows($res) < 1) {
- exit_error("ERROR","ERROR - Cannot initialize session: ".db_error());
+ exit_error($Language->getText('global','error'),$Language->getText('session','cannotinit').": ".db_error());
} else {
//set up the new user object
sent as e-mails (should fix Savannah bug #1401).
* [Christian] applied paddington patch #644 missing rotate_activity.php,
generate artifact stats
+ * [Christian] more i18n in account management
- -- Christian Bayle <bayle@debian.org> Mon, 11 Nov 2002 16:36:57 +0100
+ -- Christian Bayle <bayle@debian.org> Tue, 12 Nov 2002 02:36:53 +0100
sourceforge (2.6-0+13) experimental; urgency=low
$res_user = db_query("SELECT * FROM users WHERE confirm_hash='$confirm_hash'");
if (db_numrows($res_user) > 1) {
- exit_error("Error","This confirm hash exists more than once.");
+ exit_error(
+ $Language->getText('global','error'),
+ $Language->getText('account_lostlogin','severalconfirm')
+ );
}
if (db_numrows($res_user) < 1) {
- exit_error("Error","Invalid confirmation hash.");
+ exit_error(
+ $Language->getText('global','error'),
+ $Language->getText('account_lostlogin','invalidconfirm')
+ );
}
$u =& user_get_object(db_result($res_user, 0, 'user_id'), $res_user);
exit_assert_object($u, 'User');
if (strlen($passwd)<6) {
exit_error(
- 'Error',
- 'You must supply valid password (at least 6 chars).'
+ $Language->getText('global','error'),
+ $Language->getText('account_lostlogin','sixchars')
);
}
if ($passwd != $passwd2) {
exit_error(
- 'Error',
- 'New passwords do not match.'
+ $Language->getText('global','error'),
+ $Language->getText('account_lostlogin','notmatch')
);
}
$u->setNewEmailAndHash('', 0);
$HTML->header(array('title'=>"Password changed"));
- ?>
-
- <h2>Password changed</h2>
- <p>
- Congratulations, you have re-set your account password.
- You may <a href="/account/login.php">login</a> to the site
- now.
- </p>
-
- <?php
+ echo $Language->getText('account_lostlogin','passwdchanged');
$HTML->footer(array());
exit();
}
- $feedback = 'Error: '.$u->getErrorMessage();
+ $feedback = $Language->getText('global','error').': '.$u->getErrorMessage();
}
$HTML->header(array('title'=>"Lost Password Login"));
+echo $Language->getText('account_lostlogin','welcome',$u->getUnixName());
?>
-<h2>Lost Password Login</h2>
-
-<P>Welcome, <?php echo $u->getUnixName(); ?>. You may now
-change your password.
-
<FORM action="<?php echo $PHP_SELF; ?>" method="POST">
-<p>New Password (min. 6 chars):
+<p><?php echo $Language->getText('account_lostlogin','newpasswd'); ?>:
<br><input type="password" name="passwd">
-<p>New Password (repeat):
+<p><?php echo $Language->getText('account_lostlogin','newpasswd2'); ?>:
<br><input type="password" name="passwd2">
<input type="hidden" name="confirm_hash" value="<?php print $confirm_hash; ?>">
-<p><input type="submit" name="submit" value="Update">
+<p><input type="submit" name="submit" value="<?php echo $Language->getText('account_lostlogin','update'); ?>">
</form>
<?php
<FORM action="<?php echo $PHP_SELF; ?>" method="POST">
<P>
<?php echo $Language->getText('account_login', 'loginname'); ?>
-<INPUT type="text" name="loginname"><br>
+<BR>
+<INPUT type="text" name="loginname">
+<BR>
+<BR>
<INPUT type="submit" name="submit" value="<? echo $Language->getText('account_lostpw','sendhash'); ?>">
</FORM>
if (!$loginname) {
exit_error(
- 'Missing paramater',
- 'You must enter a user name.'
+ $Language->getText('account_verify','missingparam'),
+ $Language->getText('account_verify','usermandatory')
);
}
if (!$u || !is_object($u)){
exit_error(
- 'Invalid user',
- 'User does not exist.'
+ $Language->getText('account_verify','invaliduser'),
+ $Language->getText('account_verify','nouser')
);
}
if ($u->getStatus()=='A'){
exit_error(
- 'Invalid operation',
- 'Account already active.'
+ $Language->getText('account_verify','invalidop'),
+ $Language->getText('account_verify','accountactive')
);
}
if ($confirm_hash != $u->getConfirmHash()) {
exit_error(
- 'Invalid parameter',
- 'Cannot confirm account identity - invalid confirmation hash (or login name)'
+ $Language->getText('account_verify','invalidparam'),
+ $Language->getText('account_verify','cannotconfirm')
);
}
if (!session_login_valid($loginname, $passwd, 1)) {
exit_error(
- 'Access denied',
- 'Credentials you entered do not correspond to valid account.'
+ $Language->getText('account_verify','accessdenied'),
+ $Language->getText('account_verify','invalidcred')
);
}
if (!$u->setStatus('A')) {
exit_error(
- 'Could not activate account',
- 'Error while activiting account: '.$u->getErrorMessage()
+ $Language->getText('account_verify','cannotactivate'),
+ $Language->getText('account_verify','erroractivate').': '.$u->getErrorMessage()
);
}
account_lostpw notify <P>An email has been sent to the address you have on file. Follow the instructions in the email to change your account password. <P><A href="/">[ Home ]</A>
account_lostpw warn <P>Hey... losing your password is serious business. It compromises the security of your account, your projects, and this site. <P>Clicking "Send Lost PW Hash" below will email a URL to the email address we have on file for you. In this URL is a 128-bit confirmation hash for your account. Visiting the URL will allow you to change your password online and login.
account_lostpw sendhash Send Lost PW Hash
+account_lostlogin title Lost Password Confirmation
+account_lostlogin severalconfirm This confirm hash exists more than once.
+account_lostlogin invalidconfirm Invalid confirmation hash
+account_lostlogin sixchars You must supply valid password (at least 6 chars).
+account_lostlogin notmatch New passwords do not match.
+account_lostlogin passwdchanged <h2>Password changed</h2><p>Congratulations, you have re-set your account password.You may <a href="/account/login.php">login</a> to the sitenow.</p>
+account_lostlogin welcome <h2>Lost Password Login</h2><P>Welcome, $1. You may now change your password.
+account_lostlogin newpasswd New Password (min. 6 chars)
+account_lostlogin newpasswd2 New Password (repeat)
+account_lostlogin update Update
account_register title New Account Registration
account_register congrat <p>Congratulations. You have registered on $1. <p> You are now being sent a confirmation email to verify your email address. Visiting the link sent to you in this email will activate your account.
account_register iewarn <H2><FONT COLOR="RED">Internet Explorer users need to upgrade to IE 5.01 or higher, preferably with 128-bit SSL or use Netscape 4.7 or higher</FONT></H2>
account_register err_realname You must supply a real name
account_register err_passwd You must supply a password
account_register err_passwd2 Passwords do not match
-account_register err_passwd3 Password must be at least 6 characters
+account_register err_passwd3 Invalid Password:
account_register err_unixname Invalid Unix Name.
account_register err_email Invalid Email Address
account_register err_userexist That username already exists.
account_register err_mailexist User with this email already exists - use people search to recover your login.
account_register err_badinsert Insert Failed
account_register message_header SourceForge Account Registration
-account_register message_body Thank you for registering on the SourceForge web site. You have\naccount with username $1 created for you. In order\nto complete your registration, visit the following url: \n\n$2\n\n(If you don't see any URL above, it is likely due to bug in your mail client.\nUse one below, but make sure it is entered as the single line.)\n\n$3\n\nEnjoy the site.\n\n-- the SourceForge staff\n
+account_register message_body Thank you for registering on the SourceForge web site. You have\naccount with username $1 created for you. In order\nto complete your registration, visit the following url: \n\n<https://$2/account/verify.php?confirm_hash=_$3>\n\n(If you don't see any URL above, it is likely due to bug in your mail client.\nUse one below, but make sure it is entered as the single line.)\n\nhttps://$2/account/verify.php?confirm_hash=_$3\n\nEnjoy the site.\n\n-- the SourceForge staff\n
account_unsubscribe all_mailings all SourceForge mailings and notifications
account_unsubscribe site_mailings SourceForge site mailings
account_verify title SourceForge Account Verification
account_verify loginname Login Name:
account_verify password Password:
account_verify login Login
+account_verify missingparam Missing paramater
+account_verify usermandatory You must enter a user name.
+account_verify invaliduser Invalid user
+account_verify nouser User does not exist.
+account_verify invalidop Invalid operation
+account_verify accountactive Account already active.
+account_verify invalidparam Invalid parameter
+account_verify cannotconfirm Cannot confirm account identity - invalid confirmation hash (or login name)
+account_verify accessdenied Access denied
+account_verify invalidcred Credentials you entered do not correspond to valid account.
+account_verify cannotactivate Could not activate account
+account_verify erroractivate Error while activiting account
conf content_encoding iso-8859-1
conf default_font verdana,arial,helvetica,sans-serif
conf language_code en
classgroup acceptedprojecttitle SourceForge Project Approved
classgroup rejectedprojecttitle SourceForge Project Denied
classgroup newprojectnotificationtitle New SourceForge Project Submitted
+session missingpasswd Missing Password Or Users Name
+session invalidpasswd Invalid Password Or User Name
+session suspended Account Suspended
+session pending Account Pending
+session deleted Account Deleted
+session notactive Account Not Active
+session cannotinit ERROR - Cannot initialize session
+global error ERROR
+common_include_account sixchar Password must be at least 6 characters.
+common_include_account nospace There cannot be any spaces in the login name.
+common_include_account tooshort Name is too short. It must be at least 3 characters.
+common_include_account toolong Name is too long. It must be less than 15 characters.
+common_include_account illegal Illegal character in name.
+common_include_account cvsreserved Name is reserved for CVS.
+common_include_account dnsreserved Name is reserved for DNS purposes.
+common_include_account nounderscore Group name cannot contain underscore for DNS reasons.
account_lostpw notify <P>Un courrier électronique a été envoyé à l'adresse enregistrée. Suivez les instructions du courrier électronique pour changer le mot de passe de votre compte. <P><A href="/">[ Page d'acceuil ]</A>
account_lostpw warn <P>Eh... perdre son mot de passe est une chose sérieuse. Cela compromet la sécurité de votre compte, de vos projets, et de ce site. <P>Cliquez sur "Envoyer une clé de Hachage pour mot de passe perdu" ci-dessous vous enverra un lien à l'adresse de courrier électronique enregistrée. Dans ce lien il y a une clé de Hachage de 128 bits pour votre compte. Suivre le lien vous autorisera à changer votre mot de passe en ligne et à vous connecter.
account_lostpw sendhash Envoyer une clé de Hachage pour mot de passe perdu
+account_lostlogin title Confirmation pour mot de passe perdu
+account_lostlogin severalconfirm Il existe plus d'un hash de confirmation.
+account_lostlogin invalidconfirm Hash de confirmation invalide
+account_lostlogin sixchars Vous devez fournir un mot de passe valide (Au moins 6 caractères).
+account_lostlogin notmatch Les nouveaux mots de passe diffèrent.
+account_lostlogin passwdchanged <h2>Mot de passe changé</h2><p>Félicitation, vous avez reinitialisé votre mot de passe.Vous pouvez <a href="/account/login.php">vous connecter</a> au site\nmaintenant.</p>
+account_lostlogin welcome <h2>Mot de passe perdu</h2><P>Bienvenu, $1. vous pouvez changer votre mot de passe maintenant.
+account_lostlogin newpasswd Nouveau mot de passe (6 caractères minimum)
+account_lostlogin newpasswd2 Nouveau mot de passe (confirmation)
+account_lostlogin update Valider
account_register title Enregistrement d'un nouvel utilisateur Sourceforge
account_register congrat <p>Félicitations. Vous venez de vous enregistrer sur $1. <p> Vous allez recevoir un courrier électronique de confirmation pour verifier votre adresse. Suivez le lien qui vous sera envoyé pour valider votre compte.
account_register iewarn <H2><FONT COLOR="RED">Les utilisateurs de Internet Explorer doivent utiliser IE 5.01 ou supérieur, de préference avec SSL 128-bit ou utiliser Netscape 4.7 ou supérieur</FONT></H2>
account_register err_realname Vous devez entrer votre nom
account_register err_passwd Vous devez fournir un mot de passe
account_register err_passwd2 Les mots de passe ne concordent pas
-account_register err_passwd3 Le mot de passe doit avoir au moins 6 caractères
+account_register err_passwd3 Mot de passe non valide:
account_register err_unixname Nom unix invalide
account_register err_email Courriel invalide
account_register err_userexist Ce nom d'utilisateur existe déjà.
account_register err_mailexist Un utilisateur a deja cette adresse - utiliser la recherche sur utilisateur pour retrouver votre login.
account_register err_badinsert L'insertion a échouée.
account_register message_header Enregistrement au site SourceForge
-account_register message_body Merci de vous être enregistré au site Sourceforge. \nVous avez maintenant un compte avec pour nom $1. \nPour terminer votre inscription suivez le lien: \n\n$2\n\n(Si vous ne voyez rien ci-dessus, c'est probablement un bug de votre logiciel de mail.\nUtilisez le lien ci-dessous, mais assurez vous qu'il est sur une seule ligne.)\n\n$3\n\nProfiter du site.\n\n-- l'équipe SourceForge\n
+account_register message_body Merci de vous être enregistré au site Sourceforge. \nVous avez maintenant un compte avec pour nom $1. \nPour terminer votre inscription suivez le lien: \n\n<https://$2/account/verify.php?confirm_hash=_$3>\n\n(Si vous ne voyez rien ci-dessus, c'est probablement un bug de votre logiciel de mail.\nUtilisez le lien ci-dessous, mais assurez vous qu'il est sur une seule ligne.)\n\nhttps://$2/account/verify.php?confirm_hash=_$3\n\nProfiter du site.\n\n-- l'équipe SourceForge\n
account_unsubscribe all_mailings toutes les notifications concernant Sourceforge
account_unsubscribe site_mailings les messages concernant le site Sourceforge
account_verify title Vérification de votre compte Sourceforge
account_verify loginname Nom de login:
account_verify password Mot de passe:
account_verify login Connexion
+account_verify missingparam Paramètre manquant
+account_verify usermandatory Vous devez rentrer un nom de user
+account_verify invaliduser Utilisateur non valide
+account_verify nouser L'utilisateur n'existe pas
+account_verify invalidop Opération non valide
+account_verify accountactive Le compte est déjà activé.
+account_verify invalidparam Paramètre non valide
+account_verify cannotconfirm Ne peut confirmer l'identité du compte - hash erroné ou login non valide
+account_verify accessdenied Accés interdit
+account_verify invalidcred Le mot de passe entré n'est pas valide.
+account_verify cannotactivate Impossible d'activer le compte
+account_verify erroractivate Erreur durant l'activation du compte
conf content_encoding iso-8859-1
conf default_font verdana,arial,helvetica,sans-serif
conf language_code fr
classgroup acceptedprojecttitle Projet SourceForge Approuvé
classgroup rejectedprojecttitle Projet SourceForge Refusé
classgroup newprojectnotificationtitle Projet SourceForge Soumis
+session missingpasswd Mot de passe ou Login manquant
+session invalidpasswd Mot de passe ou Login non valide
+session suspended Compte suspendu
+session pending Compte en attente
+session deleted Compte supprimé
+session notactive Compte non actif
+session cannotinit ERREUR - Impossible d'initialiser la session
+global error ERREUR
+common_include_account sixchar Le mot de passe doit comporter au moins 6 caractères.
+common_include_account nospace Il ne peut y avoir d'espace dans un nom de login.
+common_include_account tooshort Le nom est trop court, il doit comporter au moins 3 caractères.
+common_include_account toolong Le nom est trop long, il doit comporter au plus 15 caractères.
+common_include_account illegal Caractère interdit dans le nom.
+common_include_account cvsreserved Nom réservé pour CVS.
+common_include_account dnsreserved Nom réservé pour le DNS.
+common_include_account nounderscore Le nom de groupe ne peut comporter de caractère souligné à cause des règles imposées par la DNS.