Dear Nicolas, Dear Rishi,

I guess you were trying to reply me on the topic "How to change 
defaultOrganizationPartyCurrencyUomId" instead of the current one 
"groovy.lang.MissingMethodException: No signature of method".
If so, to your question, I did configure both start.properties and 
general.properties as shown by you below.
However, when I go to Party Manager and create a new person, it's still 
"American Dollar - USD" shown in the field captioned "Preferred Currency Uom 
Id".
As I check the PartyForms.xml, I find it's using the field 
"defaultOrganizationPartyCurrencyUomId".
So I think there must be somewhere where I can set the field value.
Thanks

Schumann

-----邮件原件-----
发件人: Nicolas Malin <nicolas.ma...@nereide.fr> 
发送时间: 2018年3月27日 19:43
收件人: user@ofbiz.apache.org; Schumann Ye <schumanny...@hotmail.com>
主题: Re: groovy.lang.MissingMethodException: No signature of method

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

Reply via email to