Author: jacopoc
Date: Wed Oct 4 01:29:02 2006
New Revision: 452792
URL:
http://svn.apache.org/viewvc?view=rev&rev=452792Log:
In the attached patch there is a very simple way to fix the old and
known bug that makes impossible to display the English labels when OFBiz
is run in an operating system with a system language (different from
English) that is available in the OFBiz ui lables property files.
The bug is caused by the way the Java localization routines search for
localized files and by the fact that in OFBiz we don't maintain the en_EN
files, because the labels are in the default properties files (without
locale extension).
The proposed solution (as also suggested by Jacques LeRoux) is to use the -Duser.language=en parameter when invoking the
java command (in the OFBiz startup files): in this way the default system locale will be the English one, and everything will work as expected.
Modified:
incubator/ofbiz/trunk/startofbiz.bat
incubator/ofbiz/trunk/startofbiz.sh
Modified: incubator/ofbiz/trunk/startofbiz.bat
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/startofbiz.bat?view=diff&rev=452792&r1=452791&r2=452792==============================================================================
--- incubator/ofbiz/trunk/startofbiz.bat (original)
+++ incubator/ofbiz/trunk/startofbiz.bat Wed Oct 4 01:29:02 2006
@@ -16,8 +16,8 @@
REM #####################################################################
ECHO ON
-"%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -jar ofbiz.jar > framework\logs\console.log
+"%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Duser.language=en -jar ofbiz.jar > framework\logs\console.log
REM This one is for more of a debugging mode
-REM "%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > framework\logs\console.log
+REM "%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Duser.language=en -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > framework\logs\console.log
Modified: incubator/ofbiz/trunk/startofbiz.sh
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/startofbiz.sh?view=diff&rev=452792&r1=452791&r2=452792==============================================================================
--- incubator/ofbiz/trunk/startofbiz.sh (original)
+++ incubator/ofbiz/trunk/startofbiz.sh Wed Oct 4 01:29:02 2006
@@ -30,7 +30,8 @@
#DEBUG="-Dsun.rmi.server.exceptionTrace=true"
#RMIIF="-Djava.rmi.server.hostname=<set your IP address here>"
MEMIF="-Xms128M -Xmx256M"
-VMARGS="$MEMIF $DEBUG $RMIIF $ADMIN"
+LANGUAGE="-Duser.language=en"
+VMARGS="$MEMIF $DEBUG $RMIIF $ADMIN $LANGUAGE"
# Worldpay Config
#VMARGS="-Xbootclasspath/p:applications/accounting/lib/cryptix.jar $VMARGS"