[sword-svn] r416 - trunk/webapp/admin
scribe at crosswire.org
scribe at crosswire.org
Mon Jul 7 17:50:55 MST 2014
Author: scribe
Date: 2014-07-07 17:50:54 -0700 (Mon, 07 Jul 2014)
New Revision: 416
Modified:
trunk/webapp/admin/translate.jsp
Log:
updated to use en_US if no lang is selected
Modified: trunk/webapp/admin/translate.jsp
===================================================================
--- trunk/webapp/admin/translate.jsp 2014-06-27 06:47:33 UTC (rev 415)
+++ trunk/webapp/admin/translate.jsp 2014-07-08 00:50:54 UTC (rev 416)
@@ -24,6 +24,8 @@
lang = (String)session.getAttribute("lang");
}
+ if (lang == null) lang = "en_US";
+
if (request.getParameter("t0") != null) {
Properties locale = TranslateTag.getSessionLocale(pageContext);
for (int i = 0; i < pageTags.size(); i++) {
@@ -35,8 +37,7 @@
}
}
- String localeName = (String)session.getAttribute("lang");
- File propName = new File(pageContext.getServletContext().getRealPath("/WEB-INF/classes/trans_"+localeName+".properties"));
+ File propName = new File(pageContext.getServletContext().getRealPath("/WEB-INF/classes/trans_"+lang+".properties"));
FileOutputStream propFile = new FileOutputStream(propName);
locale.store(propFile, null);
propFile.close();
More information about the sword-cvs
mailing list