diff options
Diffstat (limited to 'src/java/com/juick/http/www/Help.java')
-rw-r--r-- | src/java/com/juick/http/www/Help.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/java/com/juick/http/www/Help.java b/src/java/com/juick/http/www/Help.java index c6a64622..101988bb 100644 --- a/src/java/com/juick/http/www/Help.java +++ b/src/java/com/juick/http/www/Help.java @@ -23,8 +23,6 @@ import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; -import java.util.Locale; -import java.util.ResourceBundle; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -36,17 +34,11 @@ import javax.servlet.http.HttpServletResponse; public class Help { protected void doRedirectToHelpIndex(Connection sql, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - String lang = request.getLocale().getLanguage(); - if (!(lang.equals("ru") || lang.equals("fr"))) { - lang = "en"; - } - Utils.sendTemporaryRedirect(response, "/help/" + lang + "/"); + Utils.sendTemporaryRedirect(response, "/help/ru/"); } protected void doGetHelp(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("Global", locale); String path[] = request.getRequestURI().split("/"); String page; @@ -74,8 +66,8 @@ public class Help { response.setContentType("text/html; charset=UTF-8"); PrintWriter out = response.getWriter(); try { - PageTemplates.pageHead(out, rb.getString("Help"), ""); - PageTemplates.pageNavigation(out, locale, visitor, null); + PageTemplates.pageHead(out, "Помощь", ""); + PageTemplates.pageNavigation(out, visitor, null); out.println("<aside id=\"column\">"); printFile(out, new File("/var/www/juick.com/help3/" + path[2] + "/navigation")); @@ -87,7 +79,7 @@ public class Help { printFile(out, f); out.println("</section>"); - PageTemplates.pageFooter(request, out, locale, visitor, false); + PageTemplates.pageFooter(request, out, visitor, false); PageTemplates.pageEnd(out); } finally { out.close(); |