Presto Administration : Presto Server Configuration : Support International Character Sets and Locales : Message Log and Default Locales
Message Log and Default Locales
Presto uses the default locale defined for the JVM for all messages that are added to Presto logs. These defaults may also be used as the locale for artifacts if no locale is defined by users or provided by the client browser.
To set the locale for the JVM for Presto using Java properties
1. In a text editor of your choice, open the setenv.bat file, for Windows systems, or the setenv.sh file, for Linux, OS/X or UNIX systems, in the presto-install/apache-tomee-jaxrs/bin folder.
2. Add a line just below the initial lines which set the JAVA_OPTS environmental variable.
*For Windows, add:
set JAVA_OPTS=%JAVA_OPTS% -Duser.county=country-code-Duser.language=language-code
*For Linux, OS/X or UNIX, add:
JAVA_OPTS="$JAVA_OPTS -Duser.county=country-code-Duser.language=language-code"
For example:
JAVA_OPTS="-XX:PermSize=128M -XX:MaxPermSize=256M -Xms512m -Xmx1G"
JAVA_OPTS="$JAVA_OPTS -DPRESTO_HOME=$CATALINA_BASE"
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
JAVA_OPTS="$JAVA_OPTS -Dpresto.raql.udf.libsReload=false
-Dpresto.raql.udf.libsDir=$CATALINA_BASE/../raql-udfs"
JAVA_OPTS="$JAVA_OPTS
-Dlog4j.configuration=file://$CATALINA_BASE/conf/log4j.properties"
JAVA_OPTS="$JAVA_OPTS -Duser.country=CA -Duser.language=fr"

# (this is set by the installer)
JAVA_HOME=${JAVA_HOME}
...
3. Save your changes to the file.
4. Restart the Presto Server. See Start and Stop the Presto Server for instructions.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback