Commit 6bac561b authored by Loui Chang's avatar Loui Chang
Browse files

Rework login form.



Correct some xhtml validation errors.
Correct translation usage.

Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent ff3a29ea
......@@ -187,7 +187,7 @@ $_t["Password:"] = "Contrasenya:";
$_t["Registered Users"] = "Usuaris registrats";
$_t["Logged-in as: %h%s%h"] = "Identificat com: %h%s%h";
$_t["Logged-in as: %s"] = "Identificat com: %s";
$_t["Incorrect password for username, %s."] = "Contrasenya incorrecta per a l'usuari, %s.";
......
......@@ -190,7 +190,7 @@ $_t["Password:"] = "Passwort";
$_t["Registered Users"] = "Registrierte Benutzer";
$_t["Logged-in as: %h%s%h"] = "Angemeldet als: %h%s%h";
$_t["Logged-in as: %s"] = "Angemeldet als: %s";
$_t["Incorrect password for username, %s."] = "Falsches Passwort für Benutzername %s.";
......@@ -350,8 +350,6 @@ $_t["Search Criteria"] = "Suchkriterien";
$_t["Notify"] = "Benachrichtigen";
$_t["O%hut-of-Date"] = "V%heraltet";
$_t["Vote"] = "Abstimmen";
$_t["Adopt Packages"] = "Pakete übernehmen";
......@@ -402,8 +400,6 @@ $_t["Required by"] = "Benötigt von";
$_t["Accounts"] = "Konten";
$_t["None of the selected packages could be deleted."] = "Keines der markierten Pakete konnte gelöscht werden.";
$_t["Your votes have been removed from the selected packages."] = "Deine Stimmen wurden von den markierten Paketen entfernt.";
......
......@@ -189,7 +189,7 @@ $_t["Password:"] = "Contraseña:";
$_t["Registered Users"] = "Usuarios Registrados";
$_t["Logged-in as: %h%s%h"] = "Identificado como: %h%s%h";
$_t["Logged-in as: %s"] = "Identificado como: %s";
$_t["Incorrect password for username, %s."] = "Contraseña incorrecta para el usuario, %s.";
......
......@@ -199,7 +199,7 @@ $_t["Password:"] = "Mot de passe:";
$_t["Registered Users"] = "Utilisateurs enregistrés";
$_t["Logged-in as: %h%s%h"] = " Connecté en tant que: %h%s%h";
$_t["Logged-in as: %s"] = " Connecté en tant que: %s";
$_t["Incorrect password for username, %s."] = "Mot de passe incorrect pour l'utilisateur, %s.";
......
......@@ -161,7 +161,7 @@ $_t["You must supply a username."] = "È necessario inserire il nome utente.";
$_t["After that, this can be filled in with more meaningful text."] = "Dopotutto, questo potrebbe essere riempito con un messaggio più significativo.";
$_t["Logged-in as: %h%s%h"] = "Connesso con il nome utente: %h%s%h";
$_t["Logged-in as: %s"] = "Connesso con il nome utente: %s";
$_t["Your account has been suspended."] = "L'account è stato sospeso.";
......
......@@ -181,7 +181,7 @@ $_t["Email Address:"] = "Adres e-mail:";
$_t["You must supply an email address."] = "Musisz podać adres e-mail.";
$_t["Incorrect password for email address, %s."] = "Nieprawidłowe hasło dla adresu %s.";
$_t["Incorrect password for username, %s."] = "Nieprawidłowe hasło dla użytkownika %s.";
$_t["Logged in as: %h%s%h"] = "Zalogowany jako: %h%s%h";
$_t["Logged in as: %s"] = "Zalogowany jako: %s";
$_t["Error looking up username, %s."] = "Błąd podczas wyszukiwania użytkownika %s.";
$_t["Welcome to the AUR! If you're a newcomer, you may want to read the %hGuidelines%h."] = "Witamy w AUR! Jeżeli jesteś tu po raz pierwszy, być może zechcesz przeczytać %hInstrukcję%h.";
......
......@@ -147,15 +147,13 @@ $_t["Create"] = "Criar";
$_t["More"] = "Mais";
$_t["You must supply a password."] = "Você deve informar uma senha.";
$_t["You must supply a username."] = "Você deve informar um usuário.";
$_t["After that, this can be filled in with more meaningful text."] = "Depois, isso pode ter um texto mais significativo.";
$_t["Logged-in as: %h%s%h"] = "Logado como: %h%s%h";
$_t["Logged-in as: %s"] = "Logado como: %s";
$_t["Your account has been suspended."] = "Sua conta foi suspensa.";
......
......@@ -199,7 +199,7 @@ $_t["Password:"] = "Пароль:";
$_t["Registered Users"] = "Зарегистрированных пользователей";
$_t["Logged-in as: %h%s%h"] = "Вошли как: %h%s%h";
$_t["Logged-in as: %s"] = "Вошли как: %s";
$_t["Incorrect password for username, %s."] = "Неверный пароль для пользователя %s.";
......
......@@ -149,15 +149,13 @@ $_t["Create"] = "Oluştur";
$_t["More"] = "Sonraki";
$_t["You must supply a password."] = "Bir parola belirlemelisiniz.";
$_t["You must supply a username."] = "Bir kullanıcı adı belirlemelisiniz.";
$_t["After that, this can be filled in with more meaningful text."] = "Eksiklikleri tamamladıktan sonra, bu kısma anlamlı bir açıklama yazabilirsiniz.";
$_t["Logged-in as: %h%s%h"] = "%h%s%h olarak giriş yapıldı";
$_t["Logged-in as: %s"] = "%s olarak giriş yapıldı";
$_t["Your account has been suspended."] = "Hesabınız donduruldu.";
......
......@@ -68,7 +68,6 @@ if (isset($_COOKIE["AURSID"])) {
</div>
</div>
<div id="lang_login_sub">
<span id="lang_bar">
<ul>
<li>Lang: </li>
<?php
......@@ -81,7 +80,6 @@ foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
}
?>
</ul>
</span>
<?php include("login_form.php"); ?>
</div>
<div id="maincontent">
......
<span id="login_bar">
<?php
if (isset($_COOKIE["AURSID"])) {
print __("Logged-in as: %h%s%h", array("<b>", username_from_sid($_COOKIE["AURSID"]), "</b>"));
<div id="login_bar">
<?php
if (isset($_COOKIE["AURSID"])) {
print __("Logged-in as: %s", '<b>' . username_from_sid($_COOKIE["AURSID"]) . '</b>');
?>
<br /><a href="logout.php"><?php print __("Logout"); ?></a>
<a href="logout.php">[<?php print __("Logout"); ?>]</a>
<?php
}
else {
if ($login_error) {
print "<span class='error'>" . $login_error . "</span><br />\n";
}
?>
<form method="post">
<label><?php print __('Username') . ':'; ?></label>
<input type="text" name="user" size="30" maxlength="<?php print USERNAME_MAX_LEN; ?>" value="<?php
if (isset($_POST['user'])) {
print htmlspecialchars($_POST['user'], ENT_QUOTES);
} ?>" />
<label><?php print __('Password') . ':'; ?></label>
<input type="password" name="passwd" size="30" maxlength="<?php print PASSWD_MAX_LEN; ?>" />
<input type="checkbox" name="remember_me" /><?php print __("Remember me"); ?>
<input type="submit" class="button" value="<?php print __("Login"); ?>" />
</form>
<?php } ?>
</span>
}
else {
if ($login_error) {
print "<span class='error'>" . $login_error . "</span><br />\n";
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<div>
<?php print __('Username') . ':'; ?>
<input type="text" name="user" size="30" maxlength="<?php print USERNAME_MAX_LEN; ?>" value="<?php
if (isset($_POST['user'])) {
print htmlspecialchars($_POST['user'], ENT_QUOTES);
} ?>" />
<?php print __('Password') . ':'; ?>
<input type="password" name="passwd" size="30" maxlength="<?php print PASSWD_MAX_LEN; ?>" />
<input type="checkbox" name="remember_me" /><?php print __("Remember me"); ?>
<input type="submit" class="button" value="<?php print __("Login"); ?>" />
</div>
</form>
<?php } ?>
</div>
Supports Markdown
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