You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Schumann Ye <Sc...@hotmail.com> on 2018/03/27 14:27:30 UTC
答复: groovy.lang.MissingMethodException: No signature of method
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 <ni...@nereide.fr>
发送时间: 2018年3月27日 19:43
收件人: user@ofbiz.apache.org; Schumann Ye <Sc...@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
Re: 答复: groovy.lang.MissingMethodException: No signature of method
Posted by Rishi Solanki <ri...@gmail.com>.
Schumann,
I replied you in another thread where you asked for currency. As I asked
you what you want to achieve with set of options, to help you better.
Anyways, if you are looking for in which entity this data store against
party then it is PartyAcctgPreference. If you are looking for something
else then please let me know.
Thanks!
Regards,
Rishi Solanki
On 27 Mar 2018 7:57 pm, "Schumann Ye" <Sc...@hotmail.com> wrote:
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 <ni...@nereide.fr>
发送时间: 2018年3月27日 19:43
收件人: user@ofbiz.apache.org; Schumann Ye <Sc...@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