Hello Schumann
On 27/03/2018 13:31, Schumann Ye wrote:
I tried to use groovy file to customize the back-end language setting with the
following steps:
Did you try to configure your locale from general.properties ? and
start.properties ?
git diff
./framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties
framework/common/config/general.properties
diff --git a/framework/common/config/general.properties
b/framework/common/config/general.properties
index e77ae9d8d82..74c29574375 100644
--- a/framework/common/config/general.properties
+++ b/framework/common/config/general.properties
@@ -51,7 +51,7 @@ locale.properties.fallback=en
# which locales the user can select from. If this property is not used,
# then the user will be able to select from all the locales available
# in the JVM. The list below corresponds to the languages really
available OOTB (2010-16-02)
-#locales.available=ar,de,en,es,fr,hi,it,nl,pt,ro,ru,th,zh
+locales.available=zh
# -- Time zones made available, separated by commas. This property
controls
# which time zones the user can select from. If this property is
not used,
diff --git
a/framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties
b/framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties
index e1bf39d12ab..67bc2d9fd8e 100644
---
a/framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties
+++
b/framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties
@@ -56,7 +56,7 @@ ofbiz.admin.key=so3du5kasd5dn
#java.awt.headless=false
# -- The locale for this OFBiz instance. Default is en
-#ofbiz.locale.default=en_US
+ofbiz.locale.default=zh
# -- The time zone for this OFBiz instance. Default depends on JVM
environment
#ofbiz.timeZone.default=GMT
Nicolas