summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/webapp/help.jsp
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-27 15:25:58 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-27 15:25:58 +0000
commit66e441c808de4269103cecf31ffd09252983917e (patch)
treeccba03a0f7e8fc7389491e37fec4b8b0c13aa0d0 /BKUOnline/src/main/webapp/help.jsp
parent959130f29903568c6b7fe3d6538b33887b3b1aaf (diff)
downloadmocca-66e441c808de4269103cecf31ffd09252983917e.tar.gz
mocca-66e441c808de4269103cecf31ffd09252983917e.tar.bz2
mocca-66e441c808de4269103cecf31ffd09252983917e.zip
locale config
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@222 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/webapp/help.jsp')
-rw-r--r--BKUOnline/src/main/webapp/help.jsp18
1 files changed, 12 insertions, 6 deletions
diff --git a/BKUOnline/src/main/webapp/help.jsp b/BKUOnline/src/main/webapp/help.jsp
index 72781e38..d7dbf0ef 100644
--- a/BKUOnline/src/main/webapp/help.jsp
+++ b/BKUOnline/src/main/webapp/help.jsp
@@ -16,14 +16,20 @@
-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
-<%@ page import="java.util.Locale"%>
+<%@ page import="java.io.File"%>
<%
- String pathInfo[] = (request.getPathInfo() != null) ? request
+ String pathInfo[] = (request.getPathInfo() != null) ? request
.getPathInfo().split("/") : new String[] {};
- String language = pathInfo[1].split("_")[0];
- String filename = pathInfo[2];
- String path = "/helpfiles/" + language.toLowerCase() + "/" + filename;
- System.out.println(path);
+ String language = pathInfo[1].split("_")[0];
+ String filename = pathInfo[2];
+ String helpDir = "/helpfiles";
+ String path;
+ if ((new File(helpDir + "/" + language.toLowerCase())).isDirectory()) {
+ path = helpDir + "/" + language.toLowerCase() + "/" + filename;
+ } else {
+ path = helpDir + "/de/" + filename;
+ }
+ System.out.println(path);
%>
<jsp:include page="<%=path%>" flush="true"/>