Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006833Openbravo ERPA. Platformpublic2009-01-09 18:592009-04-21 12:36
shuehner 
shuehner 
normalmajorhave not tried
closedfixed 
5
pi 
 
Core
No
0006833: Some printing + outgoing Email (i.e. from Sales invoice) does not work with Language != en_US
The outgoing Email project was not updated for the new-style translation management which does translation at runtime and not compilation time.

=> Does not work with language != english
=> Ignores translation
Install any extra translation
Change language to this new translation
Go to i.e. Sales Invoice
Use either the print button or the email button in the toolbar.
Adapt PrintController/ReportManager classes to new-style translation.
No tags attached.
Issue History
2009-01-09 18:59shuehnerNew Issue
2009-01-09 18:59shuehnerAssigned To => shuehner
2009-01-09 18:59shuehnersf_bug_id0 => 2496196
2009-01-09 18:59shuehnerRegression testing => No
2009-01-09 19:03shuehnerNote Added: 0012074
2009-01-19 10:10psarobeStatusnew => scheduled
2009-01-19 10:10psarobefix_in_branch => trunk
2009-01-20 18:31svnbotCheckin
2009-01-20 18:31svnbotNote Added: 0012409
2009-01-20 18:31svnbotStatusscheduled => resolved
2009-01-20 18:31svnbotResolutionopen => fixed
2009-01-20 18:31svnbotsvn_revision => 12074
2009-04-21 12:36psarobeStatusresolved => closed

Notes
(0012074)
shuehner   
2009-01-09 19:03   
First problem is that this code tries to look for the templates/reports in src-loc/<language code> , but now all templates are always underneath src-loc/design.

Second problem is that PrintController/ReportManager do not use the TranslationHandler for online-translating the templates. They should be adapted similar to HttpSecureAppServlet.renderJR or both codepath be perhaps merged.
(0012409)
svnbot   
2009-01-20 18:31   
Repository: openbravo
Revision: 12074
Author: huehner
Date: 2009-01-20 18:31:09 +0100 (Tue, 20 Jan 2009)

Fixed 6833
Unify the jrxml file-loading copies in three places:
- HttpSecureAppServlet.renderJR, ReportManager, JasperProcess (currently unused)
- fix two copies ReportManager, JasperProcess to use the new translation handling in trunk
  fixing them with language != en_US

---
U trunk/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
U trunk/src/org/openbravo/erpCommon/ad_process/JasperProcess.java
U trunk/src/org/openbravo/erpCommon/utility/Utility.java
U trunk/src/org/openbravo/erpCommon/utility/reporting/ReportManager.java
---

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