Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007030
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfacemajoralways2009-01-20 16:132014-08-21 15:48
ReporternetworkbView Statuspublic 
Assigned Toiperdomo 
PriorityimmediateResolutionout of dateFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerOBPS
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007030: Language translations are not working in Jasper-subreports

DescriptionLanguage translations are not working in Jasper-subreports
Steps To ReproduceTo 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.
TagsNo tags attached.
Attached Filespng file icon Pantallazo.png [^] (179,908 bytes) 2009-01-20 16:13

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0007086 closediperdomo Language translations are not working in Jasper-subreports 

-  Notes
(0012410)
emartinez (viewer)
2009-01-20 18:37

My case is the following: I am developing a Jasper Report, and the workaround you proposed only worked for the PARENT Report, not for the subreports.

Besides that, some many static fields of these subreports were not automatically detected when compiling the application and thus added to the table AD_TEXTINTERFACES, so for these cases, I could not even apply the workaround.
(0012438)
rafaroda (viewer)
2009-01-21 11:14

Hi Elena,

Is this subreport that you created a pre-compiled sub-report? I mean, it is not compiled at execution time but the *.jasper is already prepared.

If this is the case, I'm afraid that the translation of the sub-report will not be possible.

Provide feedback as soon as possible.

Thanks.
(0012439)
networkb (viewer)
2009-01-21 11:17

Yes, this kind of subreport causes the problem
(0012484)
rafaroda (viewer)
2009-01-21 18:42

Please provide the steps to reproduce this issue. Thank you.
(0012502)
emartinez (viewer)
2009-01-22 09:55
edited on: 2009-01-22 09:56

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.

Hope this helps.

(0012507)
iperdomo (viewer)
2009-01-22 10:23

@emartinez:

The jrxml files are *always* parsed and translated. The problem is that your original definition of your parent report is pointing to the 'english' subreport.

If using iReport you defined in the subreport properties: $P{BASE_DESING}+'path/to/your/subreport/mySubreport.jasper' you are defining that the subreport to be displayed is the one in $P{BASE_DESIGN} 'src-loc/desing/path/to/your/subreport'... when using a different language than english, the location of the resource files $P{BASE_DESING} is changed to 'src-loc/es_ES/path/to/your/subreport' (in the spanish Spain case).

You need to open the jrxml template in WebContent/src-loc/es_ES and compile it with iReport, also modify the parent template to use this new location.

With the current release of Openbravo, you can't define the location of the subreports, that is why you define to point the .jasper directly.

Best Regards,

Iván
(0012570)
iperdomo (viewer)
2009-01-23 13:40

A new task was added to compile all the reports in ad_reports folder. Check the attached file in the 2.40 backport.

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)

Important: New .jasper files will be created for header reports, even if those are not used.
(0012713)
iperdomo (viewer)
2009-01-27 20:11

This issue is not reproducible in trunk
(0069578)
SephShom (viewer)
2014-08-21 15:48

Please. I Couldn't find another post so clear about this issue. I need to ask if to version 3 something has been changed about translation subreports, couse i have this: protected String getBaseDesignPath(String language) {
    if (log4j.isDebugEnabled()) {
      log4j.debug("*********************Base path: " + globalParameters.strBaseDesignPath);
    }
    String strNewAddBase = globalParameters.strDefaultDesignPath;
    String strFinal = globalParameters.strBaseDesignPath;
    // if (!language.equals("") && !language.equals("en_US")) {
    // strNewAddBase = language;
    // }
Those lines shouldn be commented if is necesary to find some es_ES directory. Language translations are not working with Jasper Subreports. Please some help.

- Issue History
Date Modified Username Field Change
2009-01-20 16:13 networkb New Issue
2009-01-20 16:13 networkb Assigned To => rafaroda
2009-01-20 16:13 networkb sf_bug_id 0 => 2523893
2009-01-20 16:13 networkb File Added: Pantallazo.png
2009-01-20 16:13 networkb OBNetwork customer => Yes
2009-01-20 16:13 networkb Regression testing => No
2009-01-20 18:31 emartinez Issue Monitored: emartinez
2009-01-20 18:37 emartinez Note Added: 0012410
2009-01-21 11:14 rafaroda Note Added: 0012438
2009-01-21 11:14 rafaroda Status new => feedback
2009-01-21 11:17 networkb Note Added: 0012439
2009-01-21 11:17 networkb Status feedback => new
2009-01-21 16:01 rafaroda Assigned To rafaroda => gorkaion
2009-01-21 18:42 rafaroda Note Added: 0012484
2009-01-21 18:42 rafaroda Assigned To gorkaion => iperdomo
2009-01-21 18:42 rafaroda Status new => feedback
2009-01-22 09:55 emartinez Note Added: 0012502
2009-01-22 09:56 emartinez Note Edited: 0012502
2009-01-22 09:58 networkb Status feedback => new
2009-01-22 09:59 rafaroda Summary Language translations for special characters are not working => Language translations are not working in Jasper-subreports
2009-01-22 09:59 rafaroda Description Updated
2009-01-22 09:59 rafaroda Proposed Solution updated
2009-01-22 09:59 rafaroda Steps to Reproduce Updated
2009-01-22 10:23 iperdomo Note Added: 0012507
2009-01-22 10:23 iperdomo Status new => feedback
2009-01-23 10:53 iperdomo Status feedback => scheduled
2009-01-23 10:53 iperdomo fix_in_branch => trunk
2009-01-23 13:40 iperdomo Note Added: 0012570
2009-01-23 13:40 iperdomo Status scheduled => feedback
2009-01-27 20:11 iperdomo Status feedback => closed
2009-01-27 20:11 iperdomo Note Added: 0012713
2009-01-27 20:11 iperdomo Resolution open => out of date
2014-08-21 15:48 SephShom Note Added: 0069578


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker