Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031947Openbravo ERPE. Translationpublic2016-01-19 14:182016-01-20 09:27
vmromanos 
caristu 
normalmajoralways
closedfixed 
5
 
3.0PR15Q4.23.0PR15Q4.2 
alostale
Core
Production - Confirmed Stable
2014-11-27
3.0PR15Q2
https://code.openbravo.com/erp/devel/pi/rev/ac68a43ce6569746a77f67d78906d7addbac841b [^]
No
0031947: Labels in AD_TextInterfaces linked to a concrete file are not translated
The labels in AD_TextInterfaces linked to a concrete file, i.e. which are used only in just one file, are not properly translated.

However, the labels that are not linked to a concrete file (AD_TextInterfaces.filename is null because they are used in more than one report) are properly translated
Install the Spanish Translation Pack in a recent PI (3.0PR15Q2 or higher)

Login as Openbravo Admin and select Spanish Language

Access "Diario asientos" report. Set date from 01-01-2015 to 31-12-2015 and run report in PDF (printer icon)

Realize that title appears as "Journal Entries Report" instead of Spanish translation available in the AD_TextInterfaces ("Libro diario")
ReportingUtils.java, method generateJasperPrint():
 String strBaseDesign = DalContextListener.getServletContext().getRealPath("")

Value of strBaseDesign is wrong and it should finish with "/src-loc/design"
No tags attached.
blocks defect 0031944 closed caristu Labels in AD_TextInterfaces linked to a concrete file are not translated 
Issue History
2016-01-19 14:57alostaleTypedefect => backport
2016-01-19 14:57alostaleTarget Version => 3.0PR15Q4.2
2016-01-19 17:42caristuRelationship addedhas duplicate 0031954
2016-01-19 17:50caristuRelationship deletedhas duplicate 0031954
2016-01-19 17:52hgbotCheckin
2016-01-19 17:52hgbotNote Added: 0083415
2016-01-19 17:52hgbotStatusscheduled => resolved
2016-01-19 17:52hgbotResolutionopen => fixed
2016-01-19 17:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.2/rev/47332a87a79795c8fa74d67693aacae2c521d86c [^]
2016-01-19 17:52caristuReview Assigned To => alostale
2016-01-19 17:52caristuIssue Monitored: alostale
2016-01-19 18:27caristuRegression introduced by commithttps://code.openbravo.com/erp/devel/main/rev/56f321248289#l10.113 [^] => https://code.openbravo.com/erp/devel/pi/rev/ac68a43ce6569746a77f67d78906d7addbac841b [^]
2016-01-20 09:27alostaleNote Added: 0083435
2016-01-20 09:27alostaleStatusresolved => closed
2016-01-20 09:27alostaleFixed in Version => 3.0PR15Q4.2

Notes
(0083415)
hgbot   
2016-01-19 17:52   
Repository: erp/backports/3.0PR15Q4.2
Changeset: 47332a87a79795c8fa74d67693aacae2c521d86c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Jan 19 17:51:29 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.2/rev/47332a87a79795c8fa74d67693aacae2c521d86c [^]

fixes issue 31947: Labels linked to a concrete file are not translated

The translation engine requires the base design path to retrieve the ad_textinterfaces linked to a particular report. This path was not being sent properly in ReportinUtils class. Now the path is generated correctly making use of a new method called getBaseDesignPath.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
---
(0083435)
alostale   
2016-01-20 09:27   
code reviewed + tested