Index: lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/CSSBundler.java =================================================================== RCS file: /usr/local/cvsroot/lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/CSSBundler.java,v diff -u -r1.4 -r1.5 --- lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/CSSBundler.java 24 Oct 2006 05:38:48 -0000 1.4 +++ lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/CSSBundler.java 21 Nov 2006 06:54:45 -0000 1.5 @@ -46,17 +46,20 @@ import org.lamsfoundation.lams.util.Configuration; import org.lamsfoundation.lams.util.ConfigurationKeys; import org.lamsfoundation.lams.util.HttpUrlConnectionUtil; +import org.lamsfoundation.lams.web.filter.LocaleFilter; public class CSSBundler { private static Logger log = Logger.getLogger(CSSBundler.class); + private static final String RTL_DIR = "rtl"; // right-to-left direction Map filesToCopy = null; List directoriesRequired = null; HttpServletRequest request = null; Cookie[] cookies = null; String outputDirectory = null; String centralPath = null; + boolean rtl = false; /** * @param centralPath the directory path to the lams-central.war. Assumes that it is an expanded war. @@ -74,6 +77,12 @@ } else { centralPath = centralPath + File.separator + "lams-central.war"; } + + String pageDirection = (String) request.getSession().getAttribute(LocaleFilter.DIRECTION); // RTL or LTR (default) + if(pageDirection != null) + if(pageDirection.toLowerCase().equals(RTL_DIR)) + this.rtl = true; + } /** Bundle the stylesheets. @@ -111,7 +120,7 @@ String cssDirectory = outputDirectory+File.separator+"css"; File cssDirectoryFile = new File(cssDirectory); cssDirectoryFile.mkdirs(); - + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort(); List themeList = CSSThemeUtil.getAllUserThemes(); @@ -122,11 +131,11 @@ { String theme = (String)i.next(); - String url = basePath + "/lams/css/" + theme + ".css"; - HttpUrlConnectionUtil.writeResponseToFile(url, cssDirectory, theme + ".css", cookies); //cookies aren't really needed here. + String url = (!rtl)? basePath + "/lams/css/" + theme + ".css" : basePath + "/lams/css/" + theme + "_" + RTL_DIR + ".css"; + HttpUrlConnectionUtil.writeResponseToFile(url, cssDirectory, (!rtl)? theme + ".css" : theme + "_" + RTL_DIR + ".css", cookies); //cookies aren't really needed here. - url = basePath + "/lams/css/" + theme + "_learner.css"; - HttpUrlConnectionUtil.writeResponseToFile(url, cssDirectory, theme + "_learner.css", cookies); //cookies aren't really needed here. + url = (!rtl)? basePath + "/lams/css/" + theme + "_learner.css" : basePath + "/lams/css/" + theme + "_" + RTL_DIR + "_learner.css" ; + HttpUrlConnectionUtil.writeResponseToFile(url, cssDirectory, (!rtl)? theme + "_learner.css" : theme + "_" + RTL_DIR + "_learner.css", cookies); //cookies aren't really needed here. } // include the special IE stylesheet @@ -169,10 +178,10 @@ { String theme = (String)i.next(); - String themeFilename = theme + ".css"; + String themeFilename = (!rtl) ? theme + ".css" : theme + "_" + RTL_DIR + ".css"; addThemeFile(cssDirectory, themeFilename); - themeFilename = theme + "_learner.css"; + themeFilename = theme + "_" + RTL_DIR + "_learner.css"; addThemeFile(cssDirectory, themeFilename); } Index: lams_tool_chat/web/pages/learning/notebook.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/pages/learning/notebook.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_chat/web/pages/learning/notebook.jsp 27 Oct 2006 08:27:07 -0000 1.5 +++ lams_tool_chat/web/pages/learning/notebook.jsp 21 Nov 2006 06:54:43 -0000 1.6 @@ -14,7 +14,7 @@ -
+
Index: lams_tool_larsrc/web/pages/export/exportportfolio.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/export/exportportfolio.jsp,v diff -u -r1.12 -r1.13 --- lams_tool_larsrc/web/pages/export/exportportfolio.jsp 17 Nov 2006 07:29:38 -0000 1.12 +++ lams_tool_larsrc/web/pages/export/exportportfolio.jsp 21 Nov 2006 06:54:44 -0000 1.13 @@ -9,6 +9,7 @@ + <fmt:message key="export.title" /> Index: lams_tool_nb/web/exportPortfolio.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/web/exportPortfolio.jsp,v diff -u -r1.12 -r1.13 --- lams_tool_nb/web/exportPortfolio.jsp 2 Nov 2006 04:42:32 -0000 1.12 +++ lams_tool_nb/web/exportPortfolio.jsp 21 Nov 2006 06:54:45 -0000 1.13 @@ -6,7 +6,8 @@ - + + <c:out value="${NbExportForm.title}"/> Index: lams_tool_sbmt/web/export/exportportfolio.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/web/export/exportportfolio.jsp,v diff -u -r1.16 -r1.17 --- lams_tool_sbmt/web/export/exportportfolio.jsp 17 Nov 2006 07:29:13 -0000 1.16 +++ lams_tool_sbmt/web/export/exportportfolio.jsp 21 Nov 2006 06:54:43 -0000 1.17 @@ -11,6 +11,7 @@ "http://www.w3.org/TR/html4/loose.dtd"> + <fmt:message key="activity.title" /> Index: lams_tool_vote/web/export/exportportfolio.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/web/export/exportportfolio.jsp,v diff -u -r1.13 -r1.14 --- lams_tool_vote/web/export/exportportfolio.jsp 17 Oct 2006 20:29:43 -0000 1.13 +++ lams_tool_vote/web/export/exportportfolio.jsp 21 Nov 2006 06:54:41 -0000 1.14 @@ -26,6 +26,7 @@ + <fmt:message key="label.export"/>