" + rb.getString("HaveAccount") + "");
+ out.println("
");
diff --git a/src/java/com/juick/http/www/NewMessage.java b/src/java/com/juick/http/www/NewMessage.java
index 7ab93e1d..2c8aed9c 100644
--- a/src/java/com/juick/http/www/NewMessage.java
+++ b/src/java/com/juick/http/www/NewMessage.java
@@ -25,8 +25,6 @@ import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.sql.Connection;
import java.util.ArrayList;
-import java.util.Locale;
-import java.util.ResourceBundle;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -38,22 +36,19 @@ import javax.servlet.http.HttpServletResponse;
public class NewMessage {
protected void doGetNewMessage(Connection sql, HttpServletRequest request, HttpServletResponse response, com.juick.User visitor) throws ServletException, IOException {
- Locale locale = request.getLocale();
- ResourceBundle rbnm = ResourceBundle.getBundle("NewMessage", locale);
-
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- PageTemplates.pageHead(out, rbnm.getString("New message"), ""
+ PageTemplates.pageHead(out, "Написать", ""
+ ""
+ ""
+ "");
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageNavigation(out, visitor, null);
out.println("
");
out.println("");
out.println("");
- out.println("" + rbnm.getString("Tags") + ":
");
+ out.println("Теги:
");
printUserTags(sql, out, visitor);
out.println("");
- PageTemplates.pageFooter(request, out, locale, visitor, false);
+ PageTemplates.pageFooter(request, out, visitor, false);
PageTemplates.pageEnd(out);
} finally {
out.close();
diff --git a/src/java/com/juick/http/www/PM.java b/src/java/com/juick/http/www/PM.java
index ec51d44c..6d8e04ba 100644
--- a/src/java/com/juick/http/www/PM.java
+++ b/src/java/com/juick/http/www/PM.java
@@ -27,8 +27,6 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.util.ArrayList;
-import java.util.Locale;
-import java.util.ResourceBundle;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -40,10 +38,6 @@ import javax.servlet.http.HttpServletResponse;
public class PM {
protected void doGetInbox(Connection sql, HttpServletRequest request, HttpServletResponse response, com.juick.User visitor) throws ServletException, IOException {
- Locale locale = request.getLocale();
- ResourceBundle rbg = ResourceBundle.getBundle("Global", locale);
- ResourceBundle rb = ResourceBundle.getBundle("Blogs", locale);
-
/*
int paramBefore = 0;
String paramBeforeStr = request.getParameter("before");
@@ -62,9 +56,9 @@ public class PM {
PrintWriter out = response.getWriter();
try {
PageTemplates.pageHead(out, title, null);
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageNavigation(out, visitor, null);
- PageTemplates.pageHomeColumn(out, sql, visitor, locale);
+ PageTemplates.pageHomeColumn(out, sql, visitor);
out.println("
");
@@ -79,11 +73,11 @@ public class PM {
out.println(" ");
out.println(" ");
out.println(" ");
- out.println("
");
+ out.println("
");
out.println("
" + txt + "
");
out.println("
");
out.println("
");
@@ -101,8 +95,8 @@ public class PM {
out.println("");
- PageTemplates.pageFooter(request, out, locale, visitor, true);
- PageTemplates.pageDialogTemplate(out, locale);
+ PageTemplates.pageFooter(request, out, visitor, true);
+ PageTemplates.pageDialogTemplate(out);
PageTemplates.pageEnd(out);
} finally {
out.close();
@@ -110,10 +104,6 @@ public class PM {
}
protected void doGetSent(Connection sql, HttpServletRequest request, HttpServletResponse response, com.juick.User visitor) throws ServletException, IOException {
- Locale locale = request.getLocale();
- ResourceBundle rbg = ResourceBundle.getBundle("Global", locale);
- ResourceBundle rb = ResourceBundle.getBundle("Blogs", locale);
-
/*
int paramBefore = 0;
String paramBeforeStr = request.getParameter("before");
@@ -137,9 +127,9 @@ public class PM {
PrintWriter out = response.getWriter();
try {
PageTemplates.pageHead(out, title, null);
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageNavigation(out, visitor, null);
- PageTemplates.pageHomeColumn(out, sql, visitor, locale);
+ PageTemplates.pageHomeColumn(out, sql, visitor);
out.println("
");
@@ -162,7 +152,7 @@ public class PM {
out.println(" ");
out.println(" ");
out.println(" ");
- out.println("
");
+ out.println("
");
out.println("
" + txt + "
");
out.println("
");
out.println(" ");
@@ -179,8 +169,8 @@ public class PM {
out.println("");
- PageTemplates.pageFooter(request, out, locale, visitor, true);
- PageTemplates.pageDialogTemplate(out, locale);
+ PageTemplates.pageFooter(request, out, visitor, true);
+ PageTemplates.pageDialogTemplate(out);
PageTemplates.pageEnd(out);
} finally {
out.close();
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java
index 462fdf31..c8d47245 100644
--- a/src/java/com/juick/http/www/PageTemplates.java
+++ b/src/java/com/juick/http/www/PageTemplates.java
@@ -31,8 +31,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
-import java.util.Locale;
-import java.util.ResourceBundle;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
@@ -69,7 +67,7 @@ public class PageTemplates {
out.println("");
}
- public static void pageNavigation(PrintWriter out, Locale loc, com.juick.User visitor, String search) {
+ public static void pageNavigation(PrintWriter out, com.juick.User visitor, String search) {
out.println("
");
out.println(" ");
out.println("