Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007086Openbravo ERPB. User interfacepublic2009-01-20 16:132009-03-05 09:48
networkb 
iperdomo 
immediatemajoralways
closedfixed 
5
2.40 
2.40MP3 
OBPS
Core
No
0007086: Language translations are not working in Jasper-subreports
Language translations are not working in Jasper-subreports
To generate this bug please reproduce the following steps:
-Create a jasper report by means of iReport with this structure: one parent report and two sub-reports.
-Create three *.jrxml files. These files should contain static texts and text fields that need to be automatically translated by the ERP application. Once finished, compile the three *.jrxml in order to create the corresponding *.jasper files.
-Upload them (in total 6 files) into the environment (/ad_reports).
-Compile complete (my case is 2.40 Network).
-Go to the ERP and generate the corresponding report.
-See that some sub-report fields have not been translated automatically.
No tags attached.
depends on defect 00072982.40MP2 closed jpabloae Openbravo Deployment Options Locales set to ASCII when compiling from the web console 
depends on defect 00072992.40MP2 closed jpabloae Openbravo Deployment Options The custom web console compilation task fails with -D ant options 
blocks defect 0007030 closed iperdomo Openbravo ERP Language translations are not working in Jasper-subreports 
diff compile.jasper.diff (1,889) 2009-01-23 13:12
https://issues.openbravo.com/file_download.php?file_id=711&type=bug
Issue History
2009-01-23 10:53iperdomoTypedefect => backport
2009-01-23 10:53iperdomofix_in_branch => 2.40
2009-01-23 13:12iperdomoFile Added: compile.jasper.diff
2009-01-23 13:39iperdomoNote Added: 0012569
2009-01-27 18:33networkbNote Added: 0012705
2009-01-27 18:35networkbNote Added: 0012706
2009-01-27 18:38networkbNote Added: 0012708
2009-01-27 20:11svnbotCheckin
2009-01-27 20:11svnbotNote Added: 0012712
2009-01-27 20:11svnbotStatusscheduled => resolved
2009-01-27 20:11svnbotResolutionopen => fixed
2009-01-27 20:11svnbotsvn_revision => 12338
2009-01-29 17:33networkbNote Added: 0012842
2009-01-29 21:21iperdomoNote Added: 0012861
2009-01-30 10:11rafarodaStatusresolved => new
2009-01-30 10:11rafarodaResolutionfixed => open
2009-01-30 10:11rafarodaNote Added: 0012870
2009-01-30 10:12rafarodaStatusnew => acknowledged
2009-01-30 11:07jpabloaeNote Added: 0012873
2009-01-30 13:58iperdomoStatusacknowledged => scheduled
2009-01-30 13:58iperdomofix_in_branch2.40 => trunk
2009-01-30 13:59iperdomofix_in_branchtrunk => 2.40
2009-01-31 10:55jpabloaeRelationship addeddepends on 0007298
2009-01-31 10:58jpabloaeRelationship addeddepends on 0007299
2009-01-31 11:06jpabloaeNote Added: 0012962
2009-02-02 07:19svnbotCheckin
2009-02-02 07:19svnbotNote Added: 0012976
2009-02-02 07:19svnbotStatusscheduled => resolved
2009-02-02 07:19svnbotResolutionopen => fixed
2009-02-02 07:19svnbotsvn_revision12338 => 12621
2009-02-02 10:22svnbotCheckin
2009-02-02 10:22svnbotNote Added: 0012985
2009-02-02 10:22svnbotsvn_revision12621 => 12634
2009-02-02 12:03svnbotCheckin
2009-02-02 12:03svnbotNote Added: 0013002
2009-02-02 12:03svnbotsvn_revision12634 => 12642
2009-03-03 17:32psarobeFixed in Version => 2.40MP3
2009-03-05 09:48psarobeStatusresolved => closed

Notes
(0012569)
iperdomo   
2009-01-23 13:39   
A new task was added to compile all the reports in ad_reports folder.
Usage:

ant compile.jasper -Dlang=es_ES

Where es_ES is the language installed in the system on which we want to generate the .jasper from .jrxml

This will delete all the .jasper files in WebContent/src-loc/es_ES/org/openbravo/erpCommon/ad_reports and recompile them (create a .jasper)

Note: New .jasper files will be created for header reports, even if those are not used.
(0012705)
networkb   
2009-01-27 18:33   
I have followed this steps:

Modify build.xml and /src/build.xml files (using .diff file)
Compile using: ant compile.jasper -Dlang=es_ES
ant war
Restart Tomcat.
Using the application in Spanish, execute "Cash" report (ReportCashJR) and texts are not translated.
(0012706)
networkb   
2009-01-27 18:35   
Sorry, the report is translated
(0012708)
networkb   
2009-01-27 18:38   
Only one thing: erpReports folder is not included in new ant task.
It should contain it.
(0012712)
svnbot   
2009-01-27 20:11   
Repository: openbravo
Revision: 12338
Author: iperdomo
Date: 2009-01-27 20:11:00 +0100 (Tue, 27 Jan 2009)

Fixes issue 7086: Added new compilation task for jasper reports

---
U branches/r2.40/build.xml
U branches/r2.40/src/build.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12338&sc=1 [^]
(0012842)
networkb   
2009-01-29 17:33   
I would like to know how this solution can be applied in OBN SMB. A new task for compilation is required?
(0012861)
iperdomo   
2009-01-29 21:21   
I'm trying to figure out how can you execute this task from OBN web admin console.
(0012870)
rafaroda   
2009-01-30 10:11   
A solution has to be found in order the fix to work using Openbravo Network administration console.
(0012873)
jpabloae   
2009-01-30 11:07   
There are 2 issues:

1) The first one has been solved with the addition of the new ant task.
2) The other one is that the web console has a bug when running custom tasks.

I think we should not work around the 2nd issue, but solve it in the web console. The solution to be able to run the ant task from the web console is to fix the web console.
(0012962)
jpabloae   
2009-01-31 11:06   
The fixes on the OBN web console side will be available in the 2.40MP2 release. 2 issues linked.
(0012976)
svnbot   
2009-02-02 07:19   
Repository: openbravo
Revision: 12621
Author: iperdomo
Date: 2009-02-02 07:19:37 +0100 (Mon, 02 Feb 2009)

Fixes issue 7086: JRXML templates are compiled on translation process. Removed compile.jasper task because is not longer useful

---
U branches/r2.40/build.xml
U branches/r2.40/src/build.xml
A branches/r2.40/src-trl/lib/jasperreports-1.3.3.jar
U branches/r2.40/src-trl/src/org/openbravo/translate/Translate.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12621&sc=1 [^]
(0012985)
svnbot   
2009-02-02 10:22   
Repository: openbravo
Revision: 12634
Author: rafaroda
Date: 2009-02-02 10:22:05 +0100 (Mon, 02 Feb 2009)

Fixes issue 7086 Included classpathentry for jasperreports-1.3.3.jar in OpenbravoTrl project .classpath

---
U branches/r2.40/src-trl/.classpath
---

https://dev.openbravo.com/websvn/openbravo/?rev=12634&sc=1 [^]
(0013002)
svnbot   
2009-02-02 12:03   
Repository: openbravo
Revision: 12642
Author: iperdomo
Date: 2009-02-02 12:03:52 +0100 (Mon, 02 Feb 2009)

Fixes issue 7086: Solved problem when no system language is installed

---
U branches/r2.40/src-trl/src/org/openbravo/translate/Translate.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12642&sc=1 [^]