diff options
author | Ugnich Anton | 2014-01-31 21:44:51 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-01-31 21:44:51 +0700 |
commit | ab78d170650106d1d1113282598b6d8270ef2e76 (patch) | |
tree | 4ee839ab0d00cc4cec8ec55e94929cedd782302f /src/java/com/juick/http/www/Login.java | |
parent | cd7016bd09dd1fc21f375765d5cc510a1ad0656b (diff) |
Russian as default
Diffstat (limited to 'src/java/com/juick/http/www/Login.java')
-rw-r--r-- | src/java/com/juick/http/www/Login.java | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/java/com/juick/http/www/Login.java b/src/java/com/juick/http/www/Login.java index 954d21c9..a24eac2b 100644 --- a/src/java/com/juick/http/www/Login.java +++ b/src/java/com/juick/http/www/Login.java @@ -22,8 +22,6 @@ import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; -import java.util.Locale; -import java.util.ResourceBundle; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; @@ -42,10 +40,6 @@ public class Login { return; } - Locale locale = request.getLocale(); - ResourceBundle rb = ResourceBundle.getBundle("Login", locale); - ResourceBundle rbg = ResourceBundle.getBundle("Global", locale); - response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); try { @@ -168,27 +162,20 @@ public class Login { out.println(" <li><a href=\"/tag/учеба\" style=\"left: 616px; top: 84px; width: 43px; height: 17px\">учеба</a></li>"); out.println("</ul>"); - out.println("<div id=\"bottom1\">juick.com © 2008-2013 <a href=\"/help/ru/contacts\" rel=\"nofollow\">" + rbg.getString("Contacts") + "</a> · <a href=\"/help/\" rel=\"nofollow\">" + rbg.getString("Help") + "</a></div>"); - - if (PageTemplates.sape != null) { - String links = PageTemplates.sape.getPageLinks(request.getRequestURI(), request.getCookies()).render(); - if (links != null && !links.isEmpty()) { - out.println("<div id=\"bottom2\">" + rbg.getString("Sponsored by") + ": " + links + "</div>"); - } - } + out.println("<div id=\"bottom1\">juick.com © 2008-2014 <a href=\"/help/ru/contacts\" rel=\"nofollow\">Контакты</a> · <a href=\"/help/\" rel=\"nofollow\">Помощь</a></div>"); out.println("<div id=\"signup\">"); - out.println(" " + rb.getString("SignUp") + ":"); + out.println(" Зарегистрироваться:"); out.println(" <div id=\"facebook\"><a href=\"/_fblogin\" rel=\"nofollow\">Facebook</a></div>"); - out.println(" <div id=\"vk\"><a href=\"/_vklogin\" rel=\"nofollow\">" + rb.getString("VKontakte") + "</a></div>"); + out.println(" <div id=\"vk\"><a href=\"/_vklogin\" rel=\"nofollow\">ВКонтакте</a></div>"); out.println(" <div id=\"xmpp\"><a href=\"#\" onclick=\"$('#xmppinfo').toggle(); return false\">XMPP</a>"); - out.println(" <div id=\"xmppinfo\">" + rb.getString("XMPPLogin") + " <a href=\"xmpp:juick@juick.com?message;body=LOGIN\">juick@juick.com</a></div>"); + out.println(" <div id=\"xmppinfo\">Отправьте <b>LOGIN</b> на <a href=\"xmpp:juick@juick.com?message;body=LOGIN\">juick@juick.com</a></div>"); out.println(" </div>"); out.println("</div>"); - out.println("<div id=\"signin\"><a href=\"#\" onclick=\"$('#signinform').toggle(); $('#nickinput').focus(); return false\">" + rb.getString("HaveAccount") + "</a>"); + out.println("<div id=\"signin\"><a href=\"#\" onclick=\"$('#signinform').toggle(); $('#nickinput').focus(); return false\">Уже зарегистрированы?</a>"); out.println("<div id=\"signinform\"><form action=\"/login\" method=\"POST\">"); - out.println("<input class=\"txt\" type=\"text\" name=\"username\" placeholder=\"" + rb.getString("Username") + "\" id=\"nickinput\"/>"); - out.println("<input class=\"txt\" type=\"password\" name=\"password\" placeholder=\"" + rb.getString("Password") + "\"/>"); + out.println("<input class=\"txt\" type=\"text\" name=\"username\" placeholder=\"Имя пользователя\" id=\"nickinput\"/>"); + out.println("<input class=\"txt\" type=\"password\" name=\"password\" placeholder=\"Пароль\"/>"); out.println("<input class=\"submit\" type=\"submit\" value=\"OK\"/>"); out.println("</form></div>"); out.println("</div>"); |