log.saveError: problem with translation ?
Description
Environment
relates to
Activity
Caused by message formatting using message format patterns
http://docs.oracle.com/javase/6/docs/api/java/text/MessageFormat.html#patterns
added here
https://bitbucket.org/idempiere/idempiere/commits/ccd924ab57d4/
It's causing problems to any message with single quotes - probably also to messages with ;
Debugged in weekly meeting
http://www.globalqss.com/wiki/index.php/IDempiere/FullMeeting20130501

Hi,
I've added the French language on demo.idempiere.com
But error is hard to reproduce as i did not manage to create a line for a completed journal (another control happens for preventing new lines on processed documents).
But you can reproduce it on user :
Log in 'Français' with GardenAdmin
Select a user ; eg: Carl Boss.
Add him an email and a password.
Then copy the record ; save. You should see the 'wrong' error message : "Impossible denregistrer les modifications : {0}"
Regards,
Nicolas
Nicolas, can you please upload french language in demo.idempiere.com
I think your error could be tried to reproduce - in MJournalLine and MUser there are log.saveError(SaveError references
Regards,
Carlos Ruiz

Hi Richard,
Thanks for testing it.
And i've tested in spanish in my version and it went fine !!!
This is only present in French sessions.
What is surprising is that in the log, i can read the 'right' message : "ATTENTION: SaveError - bla bla bla".
Any ideas ?
Thanks,
Nicolsa

Hi Nicolas,
Can't reproduce this problem, testing with :
log.saveError("Error", "bla bla bla") , I have a message like "Error : bla bla bla"
*log.saveError("SaveError", "bla bla bla) , I have a message like "SaveError : bla bla bla"
in my case, not get "Error : {0}" when logged in Spanish
Details
Details
Assignee
Reporter

Hi,
I've created a plugin and add a new M class.
In the beforeSave method, i noticed something strange:
if I write :
log.saveError("Error", "bla bla bla);
return false;
I have a message like "Error : bla bla bla"
But if I write :
log.saveError("SaveError", "bla bla bla);
return false;
I get "Error : {0}" when logged in French (it's ok English).
Note that it should display "bla bla bla" instead of {0}.
I guess it is for all translated sessions.
Regards,
Nicolas