- labels: --> PostgreSQL
- assigned_to: nobody --> vpj-cd
- status: open --> open-accepted
Hi,
anythings goes wrong in importing a translation (here
the german translation). The conversion routines (or
anything else) converts the message template strings.
So the 'number' is misleadingly converted to
'numeric'. But 'number' here doesn't mean a database
datetype and needn't to be converted. And so a lot of
exception like - see error stack - occurs.
A workaround to solve this problem can be:
(1) Get the affected records, using the below statement:
select msgtext from compiere.ad_message_trl where
msgtext like '%NUMERIC%';
(2) Update all these records, using a statement like this:
update compiere.ad_message_trl
set msgtext='{0} Zeile(n) - {1,number,#,##0.00} -
Gesamt: {4,number,#,##0.00} Euro = {2,number,#,##0.00} {3}'
where msgtext='{0} Zeile(n) - {1,NUMERIC,#,##0.00} -
Gesamt: {4,NUMERIC,#,##0.00} Euro =
{2,NUMERIC,#,##0.00} {3}'
Regards
Gunther
error log:
(Points to the tooltip text of the memory status bar)
===========> Msg.getMsg: Totaler Virtueller Speicher
{0,NUMERIC,integer} kB - Frei {1,NUMERIC,integer} kB
java.lang.IllegalArgumentException: unknown format type at
at
java.text.MessageFormat.makeFormat(MessageFormat.java:1433)
at
java.text.MessageFormat.applyPattern(MessageFormat.java:450)
at
java.text.MessageFormat.<init>(MessageFormat.java:350)
at
java.text.MessageFormat.format(MessageFormat.java:803)
at org.compiere.util.Msg.getMsg(Msg.java:379)
at org.compiere.util.Msg.getMsg(Msg.java:346)
at
org.compiere.apps.AMenu.updateInfo(AMenu.java:521)
at org.compiere.apps.AMenu.<init>(AMenu.java:103)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.compiere.Compiere.main(Compiere.java:507)