Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016526Openbravo ERPA. Platformpublic2011-03-25 15:542011-05-24 17:28
egoitz 
alostale 
highminoralways
closedfixed 
5
2.50MP25 
2.50MP30 
Core
No
0016526: The forms are not properly translated with ad_textinterfaces defined for a file when the module does not extart with org
The forms are not properly translated with ad_textinterfaces defined for a file when the module does not extart with org.

The problema is that in the xmlDocument, the filepath received, is modified by replacing designorg/ with /org/,
but in this case, the filepath starts with
designcom/ so it is not modified.

Then this filepath is used to find the correct textiterface translation, but it does not exit.

The file is:

src-core/src/org/openbravo/xmlEngine/XmlDocument.java

lines 232 and 233 on pi.
In an application with a translation installed, for example spain:
-Create a new modules wich package name starts with com.
for example: com.openbravo.gps
-Create a form and define it on the application.
-Compile the whole application.
-Go the the textinterfaces window, and translate the new entries for the new form.
(see that the file starts with /com/openbravo/gps/...)
-Execute the form using spanish and see that the text is not translated.

No tags attached.
blocks defect 00164932.50MP30 closed alostale The forms are not properly translated with ad_textinterfaces defined for a file when the module does not extart with org 
Issue History
2011-03-29 09:09alostaleTypedefect => backport
2011-03-29 09:09alostalefix_in_branch => 2.50
2011-04-26 16:20dalsasuaIssue Monitored: networkb
2011-05-17 15:45hgbotCheckin
2011-05-17 15:45hgbotNote Added: 0037084
2011-05-17 15:45hgbotStatusscheduled => resolved
2011-05-17 15:45hgbotResolutionopen => fixed
2011-05-17 15:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/df4ea4945c391b8e9579a44bc7b1aaf788418670 [^]
2011-05-24 07:17dalsasuaIssue Monitored: dalsasua
2011-05-24 17:28shuehnerNote Added: 0037398
2011-05-24 17:28shuehnerStatusresolved => closed

Notes
(0037084)
hgbot   
2011-05-17 15:45   
Repository: erp/stable/2.50
Changeset: df4ea4945c391b8e9579a44bc7b1aaf788418670
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue May 17 15:44:58 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/df4ea4945c391b8e9579a44bc7b1aaf788418670 [^]

fixed bug 16526: Fixed translation of 2.50 forms within non org.* modules

---
M src-core/src/org/openbravo/xmlEngine/XmlDocument.java
---
(0037398)
shuehner   
2011-05-24 17:28   
Reviewed and tested using module provided by reporter in stable/2.50 (rev: ed0418b01ffc). Now working fine the translations are also applied in case the java-package does not start with 'org.'