Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009503Openbravo ERPA. Platformpublic2009-06-16 17:352009-07-27 00:00
AinhoaPagola 
alostale 
urgentmajoralways
closedfixed 
20Ubuntu 8.4
main 
2.50MP3 
Core
No
0009503: Messages not translated using setTitle function of OBError
If I throw an OBError setting the title with setTitle function, the message will not be translated.

Example:
      final OBError msg = new OBError();
      msg.setType("Success");
      msg.setTitle("@Success@");
      msg.setMessage("");

The error will display in the UI with the following message "@Success@" instead of its corresponding translation: Process Completed Succesfully.

On the other hand, the setMessage() part is correctly translated. If I do it this way:

      final OBError msg = new OBError();
      msg.setType("Success");
      msg.setTitle("");
      msg.setMessage("@Success@");
It is properly translated.
Create a java file and throw an error using the code above.
250MP3releasecandidate
Issue History
2009-06-16 17:35AinhoaPagolaNew Issue
2009-06-16 17:35AinhoaPagolaAssigned To => rafaroda
2009-06-30 19:14psarobeStatusnew => scheduled
2009-06-30 19:14psarobeAssigned Torafaroda => alostale
2009-06-30 19:14psarobefix_in_branch => pi
2009-06-30 19:15psarobePrioritynormal => urgent
2009-06-30 19:15psarobeSeverityminor => major
2009-06-30 19:15psarobefix_in_branchpi =>
2009-07-01 09:16alostaleNote Added: 0017713
2009-07-01 10:15hgbotCheckin
2009-07-01 10:15hgbotNote Added: 0017720
2009-07-01 10:15hgbotStatusscheduled => resolved
2009-07-01 10:15hgbotResolutionopen => fixed
2009-07-01 10:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/486e0ca2fdb660936c357d4376ab8a90a42b0fc2 [^]
2009-07-03 12:34AinhoaPagolaNote Added: 0017785
2009-07-21 16:24psarobeFixed in Version => 2.50MP3
2009-07-21 16:26psarobeTag Attached: 250MP3releasecandidate
2009-07-26 22:02psarobeStatusresolved => closed
2009-07-26 22:02psarobeNote Added: 0018622
2009-07-27 00:00anonymoussf_bug_id0 => 2827487

Notes
(0017713)
alostale   
2009-07-01 09:16   
This is only applicable to Standard UI processes implemented by java classes
(0017720)
hgbot   
2009-07-01 10:15   
Repository: erp/devel/pi
Changeset: 486e0ca2fdb660936c357d4376ab8a90a42b0fc2
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jul 01 10:15:05 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/486e0ca2fdb660936c357d4376ab8a90a42b0fc2 [^]

fixed bug 0009503: Messages not translated using setTitle function of OBError

---
M src-wad/src/org/openbravo/wad/ActionButtonJava_Responser.javaxml
M src-wad/src/org/openbravo/wad/javasource.javaxml
---
(0017785)
AinhoaPagola   
2009-07-03 12:34   
It is working fine for me now. Thanks!
(0018622)
psarobe   
2009-07-26 22:02   
Thanks Ainhoa