From ab78d170650106d1d1113282598b6d8270ef2e76 Mon Sep 17 00:00:00 2001
From: Ugnich Anton
Date: Fri, 31 Jan 2014 21:44:51 +0700
Subject: Russian as default
---
src/java/com/juick/http/www/Discover.java | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
(limited to 'src/java/com/juick/http/www/Discover.java')
diff --git a/src/java/com/juick/http/www/Discover.java b/src/java/com/juick/http/www/Discover.java
index 4fb4c9c0..4e4a6b3d 100644
--- a/src/java/com/juick/http/www/Discover.java
+++ b/src/java/com/juick/http/www/Discover.java
@@ -25,8 +25,6 @@ import java.net.URLDecoder;
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;
@@ -39,8 +37,6 @@ public class Discover {
protected void doGet(Connection sql, Connection sqlSearch, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
- Locale locale = request.getLocale();
- ResourceBundle rb = ResourceBundle.getBundle("Blogs", locale);
String requesturi = request.getRequestURI();
@@ -77,15 +73,15 @@ public class Discover {
canonical = "";
}
PageTemplates.pageHead(out, title, canonical);
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageNavigation(out, visitor, null);
- PageTemplates.pageHomeColumn(out, sql, visitor, locale);
+ PageTemplates.pageHomeColumn(out, sql, visitor);
out.println("");
if (mids.size() > 0) {
out.println("");
- PageTemplates.printMessages(out, sql, null, mids, visitor, locale, visitor == null ? 2 : 3, 0);
+ PageTemplates.printMessages(out, sql, null, mids, visitor, visitor == null ? 2 : 3, 0);
out.println("
");
}
@@ -96,8 +92,8 @@ public class Discover {
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();
--
cgit v1.2.3