aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Settings.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-01-31 21:44:51 +0700
committerGravatar Ugnich Anton2014-01-31 21:44:51 +0700
commitab78d170650106d1d1113282598b6d8270ef2e76 (patch)
tree4ee839ab0d00cc4cec8ec55e94929cedd782302f /src/java/com/juick/http/www/Settings.java
parentcd7016bd09dd1fc21f375765d5cc510a1ad0656b (diff)
Russian as default
Diffstat (limited to 'src/java/com/juick/http/www/Settings.java')
-rw-r--r--src/java/com/juick/http/www/Settings.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/java/com/juick/http/www/Settings.java b/src/java/com/juick/http/www/Settings.java
index 5273507e..de37bdd0 100644
--- a/src/java/com/juick/http/www/Settings.java
+++ b/src/java/com/juick/http/www/Settings.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;
@@ -37,28 +35,26 @@ public class Settings {
protected void doGet(Connection sql, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
- Locale locale = request.getLocale();
- ResourceBundle rb = ResourceBundle.getBundle("Login", locale);
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- PageTemplates.pageHead(out, rb.getString("Login"), "");
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageHead(out, "Логин", "");
+ PageTemplates.pageNavigation(out, visitor, null);
out.println("<div id=\"topwrapper\">");
out.println("<div id=\"wrapper\">");
out.println("<div id=\"content\">");
out.println("<form action=\"/login\" method=\"post\">");
- out.println("<p>" + rb.getString("Username") + ": <input type=\"text\" name=\"username\"/></p>");
- out.println("<p>" + rb.getString("Password") + ": <input type=\"password\" name=\"password\"/></p>");
+ out.println("<p>Имя пользователя: <input type=\"text\" name=\"username\"/></p>");
+ out.println("<p>Пароль: <input type=\"password\" name=\"password\"/></p>");
out.println("<p><input type=\"submit\" value=\" OK \"/></p>");
out.println("</form>");
out.println("</div>");
out.println("</div>");
out.println("</div>"); // topwrapper
- PageTemplates.pageFooter(request, out, locale, visitor, false);
+ PageTemplates.pageFooter(request, out, visitor, false);
PageTemplates.pageEnd(out);
} finally {
out.close();